/* ==========================================================================
 * Service sub-pages — Page Service.dc.html
 *
 * Loads after pages.css so a service rule can win over a page-level one.
 * Everything here is scoped to a section the service template renders; the
 * shared primitives (.sf-wrap, .sf-navy, .sf-btn, .sf-acc, .sf-ph …) come
 * from base/components and are reused rather than restated.
 *
 * The handoff was drawn with container queries; like the rest of the theme
 * this uses viewport units, which compute the same at the 1440 and 390
 * design widths. One breakpoint, 768px.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------ */
.sf-h1__sub { color: var(--sf-orange); }

.sf-svc-hero__h2 {
  font-family: var(--sf-font-head);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin: 0 0 18px;
  opacity: .92;
}

.sf-svc-hero__p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
  opacity: .92;
}
.sf-svc-hero__p a { color: var(--sf-orange); font-weight: 700; }
.sf-svc-hero__p a:hover { color: var(--sf-white); }

/* Check-bullet grid — Web Hosting only. */
.sf-checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
  font-size: 17px;
  font-weight: 600;
}
.sf-checks li { display: flex; align-items: center; gap: 10px; }
.sf-checks__mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sf-orange);
  color: var(--sf-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
 * Audio — hero card, copy-section card, playlist
 * ------------------------------------------------------------------------ */
.sf-audio {
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-audio--hero {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  margin-bottom: 8px;
}
.sf-audio__title {
  font-family: var(--sf-font-head);
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: var(--sf-orange);
}
.sf-audio audio { width: 100%; }

/* --------------------------------------------------------------------------
 * Steps / feature cards
 *
 * Open on desktop and collapsed on mobile. The `open` attribute is set on the
 * first card only; the rule below force-opens the rest above 768px so the
 * grid reads as cards, and lets them collapse to accordions below it.
 * ------------------------------------------------------------------------ */
.sf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.sf-step {
  background: var(--sf-surface);
  border-radius: 12px;
  padding: 24px 28px;
}
.sf-step > summary { display: flex; align-items: center; gap: 14px; }
.sf-step__num {
  font-family: var(--sf-font-head);
  color: var(--sf-orange);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
}
.sf-step__title {
  font-family: var(--sf-font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--sf-navy);
  margin: 0;
  letter-spacing: .02em;
  flex: 1;
  line-height: 1.25;
}
.sf-step__body { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }

@media (min-width: 769px) {
  /*
   * Desktop shows every card expanded; the marker is hidden with .sf-acc__plus.
   *
   * `display: block` on the body is not enough on its own. A closed <details>
   * hides its children through the ::details-content pseudo-element, which
   * current Chrome gives `content-visibility: hidden` — a child's own display
   * cannot override that. The result was that every card after the first
   * rendered as a bare number and heading with its copy missing, on all 14
   * service pages.
   *
   * Both declarations are kept: the pseudo-element for engines that implement
   * it, and display for those that do not. main.js also syncs the open
   * attribute so assistive technology is not told "collapsed" while the copy
   * is on screen; this rule is what keeps the copy visible without JS.
   */
  .sf-step::details-content { content-visibility: visible; }
  .sf-step > summary { cursor: default; }
  .sf-step > .sf-step__body { display: block; }
}

/* --------------------------------------------------------------------------
 * Mosaic — Photography / Videographer / Jingles
 * ------------------------------------------------------------------------ */
.sf-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.sf-mosaic__cell { border-radius: 12px; overflow: hidden; }
.sf-mosaic__cell--lead { grid-column: span 2; grid-row: span 2; }
.sf-mosaic figure { margin: 0; height: 100%; }
.sf-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.sf-mosaic__cell:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .sf-mosaic { grid-auto-rows: 180px; }
  .sf-mosaic__cell--lead { grid-column: span 2; grid-row: span 1; }
}

/* Instagram callout under the mosaic. */
.sf-igbar {
  margin-top: 28px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--sf-navy);
  color: var(--sf-white);
  border-radius: 14px;
  padding: 22px 28px;
}
.sf-igbar__label {
  font-family: var(--sf-font-head);
  font-weight: 800;
  font-size: 20px;
  margin: 0;
}

/* --------------------------------------------------------------------------
 * Playlist — Jingles
 * ------------------------------------------------------------------------ */
.sf-playlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.sf-track {
  background: rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.sf-track__disc {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sf-orange);
  color: var(--sf-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}
.sf-track__body { flex: 1; min-width: 0; }
.sf-track__title {
  font-family: var(--sf-font-head);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
}
.sf-track audio { width: 100%; }

/* --------------------------------------------------------------------------
 * Category galleries — Photography / Videographer
 * ------------------------------------------------------------------------ */
.sf-group + .sf-group { margin-top: 40px; }
.sf-group__title {
  font-family: var(--sf-font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--sf-navy);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sf-group__title::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--sf-orange);
  flex: 0 0 auto;
}
.sf-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.sf-group__img { margin: 0; border-radius: 12px; overflow: hidden; }
.sf-group__img img {
  width: 100%; aspect-ratio: 3/2;
  object-fit: cover; display: block;
}

/* --------------------------------------------------------------------------
 * Industries — pill chips
 * ------------------------------------------------------------------------ */
.sf-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
}
.sf-industries__head { flex: 1 1 260px; margin: 0; }
.sf-chips {
  flex: 2 1 420px;
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 12px;
}
.sf-chip {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-r-pill);
  padding: 12px 18px;
  font-family: var(--sf-font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--sf-navy);
}

/* --------------------------------------------------------------------------
 * Guarantee cards
 * ------------------------------------------------------------------------ */
.sf-guarantee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.sf-gcard {
  border-radius: 14px;
  padding: 28px;
}
.sf-gcard .sf-fox { opacity: .06; }
.sf-gcard__icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 16px; }
.sf-gcard__title {
  font-family: var(--sf-font-head);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
}
.sf-gcard__body { font-size: 15px; line-height: 1.6; opacity: .92; margin: 0; }

/* --------------------------------------------------------------------------
 * Pricing plans — Web Hosting
 * ------------------------------------------------------------------------ */
.sf-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: start;
}
.sf-plan {
  position: relative;
  background: var(--sf-surface);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-plan--popular { background: var(--sf-navy); color: var(--sf-white); }
.sf-plan__pill {
  position: absolute; top: 18px; right: 18px;
  background: var(--sf-orange);
  color: var(--sf-white);
  border-radius: var(--sf-r-pill);
  padding: 5px 12px;
  font-family: var(--sf-font-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.sf-plan__name {
  font-family: var(--sf-font-head);
  font-size: 20px; font-weight: 800;
  color: var(--sf-navy);
  margin: 0;
}
.sf-plan--popular .sf-plan__name { color: var(--sf-white); }
.sf-plan__price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.sf-plan__amount {
  font-family: var(--sf-font-head);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  line-height: 1;
}
.sf-plan__per { font-size: 15px; opacity: .8; }
.sf-plan__desc { font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.sf-plan .sf-btn { align-self: flex-start; margin-top: 4px; }

/* --------------------------------------------------------------------------
 * Copy sections
 * ------------------------------------------------------------------------ */
.sf-split--alt { flex-direction: row-reverse; }

/* Heading text that is lowercase in the DOM on the live site and cased by
 * CSS. Keeping the DOM text verbatim is an SEO requirement of the brief. */
.sf-caps { text-transform: capitalize; }

.sf-svc-sub {
  font-family: var(--sf-font-head);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--sf-orange);
  margin: 0 0 14px;
}
.sf-svc-h4 {
  font-family: var(--sf-font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--sf-navy);
  margin: 22px 0 10px;
}

/* Orange-dot bullet list. */
.sf-dots { list-style: none; margin: 0 0 18px; padding: 0; }
.sf-dots li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.sf-dots li::before {
  content: "";
  position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sf-orange);
}

/* A logo shown on white rather than cropped to fill. */
.sf-contain { background: var(--sf-white); border-radius: var(--sf-r-lg); }
.sf-contain img { object-fit: contain !important; padding: 32px; }

/* Promo callout — Ontario Follow Loop. */
.sf-promo {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px;
  background: var(--sf-navy);
  color: var(--sf-white);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 18px;
}
.sf-promo__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sf-promo__body { flex: 1 1 200px; min-width: 0; }
.sf-promo__title {
  font-family: var(--sf-font-head);
  font-weight: 800; font-size: 18px;
  margin: 0;
}
.sf-promo__sub { font-size: 15px; opacity: .9; margin: 4px 0 0; }

/*
 * Icon tiles, service pages only.
 *
 * Named .sf-icontile, not .sf-tile: the home page already owns .sf-tile for
 * its service cards, and services.css is enqueued last, so a shared name here
 * silently restyles the home page — which is exactly what happened. Its tiles
 * picked up this padding and centring.
 */
.sf-icontiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 32px;
}
.sf-icontile {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.sf-icontile__icon { width: min(100%, 190px); height: 150px; object-fit: contain; }
.sf-icontile__title {
  font-family: var(--sf-font-head);
  font-size: 18px; font-weight: 800;
  color: var(--sf-navy);
  margin: 0;
}

/* --------------------------------------------------------------------------
 * FAQs
 * ------------------------------------------------------------------------ */
.sf-faq-section { padding-block: clamp(40px, 4vw, 64px); }
.sf-faq-section .sf-h2 { margin-bottom: 20px; }
.sf-faqs { border-top: 1px solid var(--sf-border); }
.sf-faq { border-bottom: 1px solid var(--sf-border); }
.sf-faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.sf-faq > summary::-webkit-details-marker { display: none; }
.sf-faq__q {
  font-family: var(--sf-font-head);
  font-size: 18px; font-weight: 700;
  color: var(--sf-navy);
}
.sf-faq__plus { color: var(--sf-orange); font-size: 22px; font-weight: 700; flex-shrink: 0; }
.sf-faq[open] > summary .sf-faq__plus::before { content: "\2212"; }
.sf-faq:not([open]) > summary .sf-faq__plus::before { content: "+"; }
.sf-faq__a { width: 100%; padding: 0 0 14px; max-width: none; }
.sf-faq__a p { font-size: 17px; line-height: 1.6; margin: 0 0 10px; }
.sf-faq__a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
 * Gallery
 * ------------------------------------------------------------------------ */
.sf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 28px;
}
.sf-gallery--square { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.sf-gallery__img {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--sf-t);
}
.sf-gallery__img img {
  width: 100%; aspect-ratio: 1500/720;
  object-fit: cover; display: block;
}
.sf-gallery--square .sf-gallery__img img { aspect-ratio: 1/1; }
.sf-gallery__img:hover { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
 * CTA band — the three pages that carry no form
 * ------------------------------------------------------------------------ */
.sf-ctaband__inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 20px;
}
.sf-ctaband__inner h2 { margin: 0; }

/* --------------------------------------------------------------------------
 * Social row
 * ------------------------------------------------------------------------ */
.sf-svc-social { padding-block: clamp(32px, 4vw, 56px); }
.sf-svc-social__inner {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 20px;
}
.sf-svc-social__city {
  font-family: var(--sf-font-head);
  font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sf-ink);
  opacity: .6;
}
.sf-svc-social .sf-social svg { width: 34px; height: 34px; }
.sf-svc-social .sf-social a { color: var(--sf-navy); }

/* --------------------------------------------------------------------------
 * Quote form — pitch on the left, form card on the right
 *
 * Values are taken from the design's Quote Form frame: a 380px cap on the
 * pitch column against a 520px basis for the form, 18px between the pieces of
 * the pitch, and the form as a white card on the surface band. cqw in the
 * design becomes vw here, which computes the same at the 1440 and 390 widths
 * the design was drawn at.
 * ------------------------------------------------------------------------ */
.sf-quote {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 64px);
  align-items: flex-start;
}
.sf-quote__intro {
  flex: 1 1 260px;
  max-width: 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* The eyebrow and heading carry their own spacing from the flex gap. */
.sf-quote__intro .sf-eyebrow { margin: 0; }
.sf-quote__title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; margin: 0; }
.sf-quote__note { margin: 0; font-size: 17px; line-height: 1.6; }
.sf-quote__note a { color: var(--sf-orange); font-weight: 600; text-decoration: none; }
.sf-quote__note a:hover { text-decoration: underline; }
.sf-quote__fox { width: 120px; height: auto; opacity: .12; margin-top: 12px; }

.sf-quote .sf-gform {
  flex: 1 1 520px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-r-xl);
  padding: clamp(22px, 3vw, 36px);
}

@media (max-width: 768px) {
  /* Stacked on mobile; the cap would otherwise pin the pitch to 380px. */
  .sf-quote__intro { max-width: none; }
}

/* --------------------------------------------------------------------------
 * Service-page geometry
 *
 * Scoped to .sf-service (the 14 service pages) rather than changed globally.
 * These are the measurements the service handoff draws; the top-level pages
 * came from an earlier handoff and are not being re-measured here, so the
 * shared primitives are left alone and only these pages are held to the new
 * frames.
 * ------------------------------------------------------------------------ */

/*
 * --sf-max as the CONTENT width, with the gutter outside it. The design's
 * section wrappers are content-box, so they measure 1200 of content at the
 * 1440 design width; the global .sf-wrap caps the border-box at 1200 and
 * yields 1120. Those 80px are the difference between the hero H1 setting on
 * two lines and on four.
 */
.sf-service .sf-wrap {
  max-width: calc(var(--sf-max) + var(--sf-gutter) * 2);
}

/*
 * "text 1 1 460px + 4:3 image 1 1 340px", per the handoff. The shared
 * primitive is 440/360, which shifts each column by 20px once the free space
 * is shared out.
 */
.sf-service .sf-split__text { flex: 1 1 460px; }
.sf-service .sf-split__media { flex: 1 1 340px; }
