/* =============================================================
   SERVICE LANDING PAGE — Gutenberg blocks
   Upload to assets/. Loaded by page-service-landing.php and the editor.

   Card, heading and body type comes from the .comp-* rules in
   homepage.css. This file adapts them to core blocks, using the class
   each block has under Advanced > Additional CSS class(es):

     Top label             comp-eyebrow
     Main title (H1)       comp-h1
     Section intro         comp-subhead, then comp-body
     Section title (H3)    comp-group-title
     Row of cards          Columns block: svc-cards  (add svc-cards-4 for 4 across)
     One card              Column block: comp-card
     Pull quote            svc-quote, then svc-attribution
     Button row            Buttons block: comp-cta-row
     Each button           svc-btn-primary or svc-btn-secondary
============================================================= */

/* ---------- Type ---------- */
.comp-h1 {
  max-width: 75%;
}

.comp-subhead,
.comp-body {
  max-width: 856px;
  margin-left: auto;
  margin-right: auto;
}
.comp-subhead {
  line-height: 1.15;
}

/* px floor: the root font is 13px at 1024px wide and below */
.comp-body,
.comp-card p {
  font-size: clamp(16px, 1.25vw, 1.5rem);
}
.comp-eyebrow {
  font-size: max(14px, 1rem);
}
.comp-card h4 {
  font-size: max(20px, 1.4rem);
}

.svc-quote {
  margin-top: 4.5rem;
  margin-bottom: 1rem;
}
.svc-attribution {
  text-align: center;
  margin-bottom: 3rem;
}

/* ---------- Card rows ---------- */
.wp-block-columns.svc-cards {
  gap: 24px;
  align-items: stretch !important;
  margin: 0 0 24px;
}
.wp-block-column.comp-card {
  height: auto;                   /* homepage.css's 100% stops equal-height cards */
}

/* 4 across gets cramped on small laptops and tablets */
@media (min-width: 782px) and (max-width: 991px) {
  .wp-block-columns.svc-cards-4 {
    flex-wrap: wrap !important;
  }
  .wp-block-columns.svc-cards-4 > .wp-block-column {
    flex: 0 0 calc(50% - 12px) !important;
  }
}

/* ---------- Buttons (same look as .btn-morse) ---------- */
.wp-block-buttons.comp-cta-row {
  justify-content: center;
  gap: 16px;
}

.svc-btn-primary .wp-block-button__link,
.svc-btn-secondary .wp-block-button__link {
  border-radius: 25px;
  padding: 15px 28px;
  font-family: Arial, sans-serif;
  font-size: max(16px, 1rem);
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.svc-btn-primary .wp-block-button__link:hover,
.svc-btn-secondary .wp-block-button__link:hover {
  opacity: .88;
}

.svc-btn-primary .wp-block-button__link {
  background: #0758f5;
  color: #fff;
}
.svc-btn-primary .wp-block-button__link::after {
  content: "\f061";
  margin-left: 12px;
  font-family: "Font Awesome 6 Free";
  font-size: .75rem;
  font-weight: 900;
}

.svc-btn-secondary .wp-block-button__link {
  background: #fff;
  color: #0758f5;
}

/* ---------- Phones ---------- */
@media (max-width: 781px) {
  .comp-h1 {
    max-width: none;
  }
  .wp-block-buttons.comp-cta-row {
    flex-direction: column;
    align-items: center;
  }
}


/* =============================================================
   SECTION LAYOUTS — added Nov 2026
   Split list (What I Take On), white band with numbered steps
   (How It Works) and sticky notes (Where I've Done This).

     Two-column split       Columns block: svc-split
       left column          Column: svc-split-intro  (title: svc-split-title,
                            italic words show in blue; text: svc-split-text)
       right column         Column: svc-split-list, holding Group blocks: svc-item
     White band             Group block: svc-band
       steps                Columns block: svc-steps, each Column: svc-step
     Sticky notes           Columns block: svc-cards svc-cards-4 svc-notes,
                            each Column: svc-note (colors cycle automatically)
============================================================= */

.top-content {
  overflow-x: clip;               /* the white band is full-bleed */
}

/* ---------- What I Take On: split layout ---------- */
.wp-block-columns.svc-split {
  gap: 0;
  align-items: flex-start !important;
  margin: 5rem 0;
}
.wp-block-columns.svc-split > .svc-split-intro {
  padding-right: 64px;
}
.wp-block-columns.svc-split > .svc-split-list {
  padding-left: 64px;
  border-left: 1px solid rgba(0, 0, 0, .15);
}
/* widths only above phone size, so the columns still stack on phones */
@media (min-width: 782px) {
  .wp-block-columns.svc-split > .svc-split-intro {
    flex: 0 0 44% !important;
    position: sticky;
    top: 110px;                   /* stays in view while the list scrolls */
  }
  .wp-block-columns.svc-split > .svc-split-list {
    flex: 1 1 0 !important;
  }
}

.svc-split-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 1.5rem;
}
.svc-split-title em {
  display: block;
  font-style: normal;
  color: #0758f5;
}
.svc-split-text {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.35vw, 1.5rem);
  color: #000;
  line-height: 1.6;
  max-width: 30rem;
  margin: 0 0 2rem;
}

.svc-item {
  position: relative;
  padding-top: 56px;
  margin: 0 0 56px;
}
.svc-item:last-child {
  margin-bottom: 0;
}
.svc-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  background: #0758f5;
  -webkit-mask: var(--svc-icon) center / contain no-repeat;
  mask: var(--svc-icon) center / contain no-repeat;
}
.svc-split-list > .svc-item:nth-child(1) { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E"); } /* compass (strategy) */
.svc-split-list > .svc-item:nth-child(2) { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); } /* magnifier (research) */
.svc-split-list > .svc-item:nth-child(3) { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 12.5l9 5 9-5'/%3E%3Cpath d='M3 16.5l9 5 9-5'/%3E%3C/svg%3E"); } /* layers (design systems) */
.svc-split-list > .svc-item:nth-child(4) { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16.5 14.2c2.9.3 5 2.4 5 5.8'/%3E%3C/svg%3E"); } /* people (team) */

.svc-item h4,
.svc-step h4,
.svc-note h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  padding: 0;
}
.svc-item h4 {
  font-size: max(22px, 1.75rem);
  color: #000;
  margin: 0 0 .75rem;
}
.svc-item p,
.svc-step p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 1.5rem);
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ---------- How It Works: white band + numbered steps ---------- */
.svc-band {
  background: #fff;
  margin: 5rem calc(50% - 50vw);
  padding: 110px calc(50vw - 50%) 120px;
}
.svc-band > .comp-group-title {
  margin-top: 0;
  margin-bottom: 3.5rem;
}

.wp-block-columns.svc-steps {
  gap: 48px;
  counter-reset: svc-step;
  margin: 0;
}
.svc-step {
  counter-increment: svc-step;
  border-top: 1px solid rgba(0, 0, 0, .15);
  padding-top: 28px;
}
.svc-step::before {
  content: counter(svc-step);
  display: block;
  font-family: var(--font-display);
  font-size: max(44px, 3.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 20px;
}
.svc-step h4 {
  font-size: max(20px, 1.5rem);
  color: #000;
  margin: 0 0 .75rem;
}

/* ---------- Where I've Done This: sticky notes ----------
   Colors are the notes in the homepage hero collage, plus the site blue. */
.wp-block-columns.svc-notes {
  gap: 32px;
  padding: 18px 0 8px;
}
.svc-note {
  --note: #f5b21b;
  position: relative;
  padding: 46px 26px 40px;
  background-color: var(--note);
  background-image: url('img/white_bg.jpg');
  background-size: 900px auto;
  background-blend-mode: multiply;   /* paper grain from the site texture */
  border-radius: 2px;
  box-shadow: 0 12px 18px -10px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .12);
  transform: rotate(-1.5deg);
  transition: transform .25s ease;
}
.svc-note:nth-child(4n+2) { --note: #ee4d9b; transform: rotate(1.25deg); }
.svc-note:nth-child(4n+3) { --note: #a6d63b; transform: rotate(-.75deg); }
.svc-note:nth-child(4n+4) { --note: #0758f5; transform: rotate(1.75deg); }
.svc-note:hover {
  transform: rotate(0deg);
}

/* red pin on notes 1 and 3, tape on notes 2 and 4 */
.svc-note::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff5a5a, #d9161c 60%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.svc-note:nth-child(even)::before {
  top: -12px;
  right: auto;
  left: 50%;
  width: 86px;
  height: 26px;
  border-radius: 0;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transform: translateX(-50%) rotate(-3deg);
}

/* curled bottom-right corner */
.svc-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(315deg, #f4f3ef 50%, rgba(255, 255, 255, .45) 50%);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, .12);
}

.svc-note h4 {
  font-size: max(20px, 1.4rem);
  color: #111;
  margin: 0 0 .85rem;
}
.svc-note p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 1.4rem);
  color: #1a1a1a;
  line-height: 1.55;
  margin: 0;
  padding: 0;
}
.svc-note:nth-child(4n+4) h4,
.svc-note:nth-child(4n+4) p {
  color: #fff;
}

/* ---------- Phones ---------- */
@media (max-width: 781px) {
  .wp-block-columns.svc-split > .svc-split-intro {
    padding-right: 0;
  }
  .wp-block-columns.svc-split > .svc-split-list {
    padding: 40px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .15);
  }
  .svc-band {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .wp-block-columns.svc-notes {
    gap: 36px;
  }
}