/* ============================================================
   Sector Page template
   Rebuild of the "Sector Page Template" design (Claude Design).
   Everything is scoped under .sector-page so it never leaks
   into the rest of the theme. Headings set their colour
   explicitly — the theme's h1/h2/h3 colours beat inheritance.
   Button hover uses #FF6B4A, matching the SEO Service Pages.
   ============================================================ */

.sector-page {
  --navy: #0A1A3A;
  --navy-2: #13294A;
  --navy-line: #274268;
  --teal: #32AE9E;
  --teal-d: #26897C;
  --mint: #8FD9CD;
  --hover: #FF6B4A;
  --body: #374B63;
  --muted: #55647A;
  --pale: #B9C7D6;
  --pale-2: #D5E0EA;
  --light: #F3F5F7;
  --line: #E2E6EB;
  --line-2: #EEF1F4;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  font-family: 'Ubuntu', system-ui, sans-serif;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
}
.sector-page * { box-sizing: border-box; }
.sector-page img { max-width: 100%; height: auto; display: block; }
.sector-page p { margin: 0; }
.sector-page h1, .sector-page h2, .sector-page h3 { font-family: 'Ubuntu', system-ui, sans-serif; margin: 0; text-transform: none; }

/* ---- shared bits ---- */
.sector-page .sp-wrap { max-width: 1180px; margin: 0 auto; padding-left: 44px; padding-right: 44px; }
.sector-page .sp-sec { padding: 72px 0; }
.sector-page .sp-sec--white { background: #fff; }
.sector-page .sp-sec--light { background: var(--light); }
.sector-page .sp-sec__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 38px; }

.sector-page .sp-mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-d);
}
.sector-page .sp-mono--mint { color: var(--mint); }

.sector-page .sp-h2 {
  font-size: 34px; line-height: 1.15; font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em; text-wrap: balance;
}
.sector-page .sp-lead { font-size: 17px; line-height: 1.62; color: var(--body); text-wrap: pretty; }

/* two-column "head + content" layout used by several sections */
.sector-page .sp-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 56px; align-items: start;
}
.sector-page .sp-split__head { display: flex; flex-direction: column; gap: 16px; }

.sector-page .sp-prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.62; color: var(--body); }
.sector-page .sp-prose p { text-wrap: pretty; }
.sector-page .sp-prose a { color: var(--teal-d); text-decoration: underline; }

/* ---- buttons + arrow links ---- */
.sector-page .sp-btn {
  display: inline-block; background: var(--teal); color: #fff;
  font-size: 15px; font-weight: 700; padding: 16px 26px; border-radius: 3px;
  white-space: nowrap; text-decoration: none; border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.sector-page .sp-btn:hover,
.sector-page .sp-btn:focus { background: var(--hover); color: #fff; }
.sector-page .sp-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.35); font-weight: 500; }
.sector-page .sp-btn--ghost:hover,
.sector-page .sp-btn--ghost:focus { background: rgba(255,255,255,0.08); border-color: #fff; }

.sector-page .sp-arrow {
  font-size: 15px; font-weight: 500; color: var(--teal-d); text-decoration: none;
  transition: color .18s ease;
}
.sector-page .sp-arrow--mint { color: var(--mint); }
.sector-page .sp-arrow:hover { color: var(--hover); }


/* ================= HERO ================= */
.sector-page .sp-hero {
  background: linear-gradient(100deg, #395C7E 0%, #16243C 70%);
  color: #fff; padding: 66px 0 0;
}
.sector-page .sp-hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px; align-items: start; padding-bottom: 66px;
}
.sector-page .sp-hero__grid--single { grid-template-columns: minmax(0, 820px); }
.sector-page .sp-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.sector-page .sp-hero h1 {
  font-size: clamp(36px, 4.6vw, 52px); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.025em; color: #fff; text-wrap: balance;
}
.sector-page .sp-hero__copy p { font-size: 19px; line-height: 1.55; color: var(--pale-2); max-width: 520px; text-wrap: pretty; }
.sector-page .sp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.sector-page .sp-hero__stats {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.sector-page .sp-hero__statlist { display: flex; flex-direction: column; gap: 18px; }
.sector-page .sp-hero__stat { display: flex; flex-direction: column; gap: 3px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.sector-page .sp-hero__stat:last-child { border-bottom: 0; padding-bottom: 0; }
.sector-page .sp-hero__stat-v { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.sector-page .sp-hero__stat-l { font-size: 15px; color: var(--pale-2); }

/* case study banner along the bottom of the hero */
.sector-page .sp-spot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.16);
}
.sector-page .sp-spot__logo { flex: 0 0 150px; height: 44px; display: flex; align-items: center; }
.sector-page .sp-spot__logo img { max-height: 44px; width: auto; object-fit: contain; }
.sector-page .sp-spot__tag {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); background: var(--mint); padding: 7px 10px;
}
.sector-page .sp-spot p { flex: 1 1 320px; font-size: 16px; line-height: 1.5; color: var(--pale-2); }
.sector-page .sp-spot strong { color: #fff; }
.sector-page .sp-spot .sp-arrow { flex: 0 0 auto; }

/* ================= CASE STUDY ================= */
.sector-page .sp-case { background: var(--navy); color: #fff; }
.sector-page .sp-case .sp-h2 { color: #fff; margin-bottom: 34px; }
.sector-page .sp-case__card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  background: var(--navy-2);
}
.sector-page .sp-case__media {
  min-height: 280px; position: relative;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.09) 0 8px, transparent 8px 16px);
}
.sector-page .sp-case__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sector-page .sp-case__body { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.sector-page .sp-case__body h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sector-page .sp-case__summary { font-size: 16px; line-height: 1.6; color: var(--pale); text-wrap: pretty; }
.sector-page .sp-case__stats {
  display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14);
}
.sector-page .sp-case__stats > div { display: flex; flex-direction: column; gap: 2px; }
.sector-page .sp-case__stat-v { font-size: 30px; font-weight: 700; color: var(--teal); letter-spacing: -0.02em; line-height: 1.15; }
.sector-page .sp-case__stat-l { font-size: 14px; color: var(--pale); }
.sector-page .sp-case__quote { display: flex; flex-direction: column; gap: 8px; }
.sector-page .sp-case__quote p { font-size: 16px; line-height: 1.55; color: #fff; font-style: italic; }
.sector-page .sp-case__quote-by { font-size: 14px; color: var(--mint); }
.sector-page .sp-case__footer {
  margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.sector-page .sp-case__footer p { font-size: 16px; line-height: 1.55; color: var(--pale); max-width: 640px; text-wrap: pretty; }
.sector-page .sp-case__footer .sp-arrow { flex: 0 0 auto; }

/* ================= KEYWORDS ================= */
.sector-page .sp-callout {
  margin-top: 10px; padding: 22px; background: #fff; border-top: 3px solid var(--teal);
  display: flex; flex-direction: column; gap: 8px;
}
.sector-page .sp-callout__main { font-size: 16px; line-height: 1.55; color: var(--navy); }
.sector-page .sp-callout__note { font-size: 14px; color: var(--muted); }

.sector-page .sp-kw { background: #fff; padding: 8px 0; }
.sector-page .sp-kw__head {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.sector-page .sp-kw__row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(70px, 1fr) 56px;
  align-items: center; gap: 16px; padding: 11px 24px; border-bottom: 1px solid var(--line-2);
}
.sector-page .sp-kw__row:last-child { border-bottom: 0; }
.sector-page .sp-kw__term { font-size: 15px; color: var(--navy); line-height: 1.3; }
.sector-page .sp-kw__bar { height: 8px; background: var(--line-2); }
.sector-page .sp-kw__bar span { display: block; height: 8px; background: var(--teal); }
.sector-page .sp-kw__vol { font-family: var(--mono); font-size: 14px; color: var(--navy); text-align: right; }

/* ================= APPROACH ================= */
.sector-page .sp-phases {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px; background: var(--line); border-top: 3px solid var(--navy);
}
.sector-page .sp-phase { background: #fff; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.sector-page .sp-phase__period { font-family: var(--mono); font-size: 12px; color: var(--teal-d); }
.sector-page .sp-phase h3 { font-size: 20px; font-weight: 700; color: var(--navy); }
.sector-page .sp-phase p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.sector-page .sp-phase__out {
  margin-top: auto; padding-top: 14px; font-size: 14px; line-height: 1.5;
  color: var(--navy); border-top: 1px solid var(--line);
}
.sector-page .sp-phase--dark { background: var(--navy); }
.sector-page .sp-phase--dark .sp-phase__period { color: var(--mint); }
.sector-page .sp-phase--dark h3 { color: #fff; }
.sector-page .sp-phase--dark p { color: var(--pale); }

/* ================= REVIEWS ================= */
.sector-page .sp-reviews { padding: 60px 0; }
.sector-page .sp-reviews__auto { max-width: 100%; }

/* carousel — same behaviour as the SEO Service Page (js/sector-page.js) */
.sector-page .sp-carousel { position: relative; }
.sector-page .sp-carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scrollbar-width: none;
}
.sector-page .sp-carousel__track::-webkit-scrollbar { display: none; }
.sector-page .sp-review {
  scroll-snap-align: start; background: #fff; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.sector-page .sp-review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sector-page .sp-review__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sector-page .sp-review__avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy); overflow: hidden;
}
.sector-page .sp-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sector-page .sp-review__name { font-size: 14px; font-weight: 700; color: var(--navy); }
.sector-page .sp-review__stars { color: var(--teal); font-size: 14px; letter-spacing: 2px; }
.sector-page .sp-review__g { font-weight: 700; color: #4285f4; font-size: 20px; }
.sector-page .sp-review p { font-size: 16px; line-height: 1.55; color: var(--body); }

.sector-page .sp-carousel__nav { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.sector-page .sp-carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sector-page .sp-carousel__btn:hover { background: var(--hover); color: #fff; border-color: var(--hover); }

/* ================= SPEAK TO CRAIG ================= */
.sector-page .sp-craig { background: linear-gradient(100deg, #395C7E, #16243C); color: #fff; padding: 56px 0; }
.sector-page .sp-craig__grid { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 32px; align-items: center; }
.sector-page .sp-craig__grid--single { grid-template-columns: minmax(0, 1fr); }
.sector-page .sp-craig__photo { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.sector-page .sp-craig__photo img { width: 100%; height: 100%; object-fit: cover; }
.sector-page .sp-craig__body { display: flex; flex-direction: column; gap: 16px; }
.sector-page .sp-craig h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; max-width: 640px; color: #fff; line-height: 1.15; }
.sector-page .sp-craig p { font-size: 17px; line-height: 1.6; color: var(--pale-2); max-width: 640px; }
.sector-page .sp-craig .sp-btn { padding: 15px 26px; }

/* ================= FAQs ================= */
.sector-page .sp-faqs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px 48px; align-items: start;
}
.sector-page .sp-faqs__list { border-bottom: 1px solid var(--line); }
.sector-page .sp-faq { border-top: 1px solid var(--line); padding: 18px 0; }
.sector-page .sp-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  gap: 24px; align-items: center; font-size: 19px; font-weight: 700; color: var(--navy);
}
.sector-page .sp-faq summary::-webkit-details-marker { display: none; }
.sector-page .sp-faq summary:hover { color: var(--teal-d); }
.sector-page .sp-faq__plus {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--light);
  color: var(--teal-d); display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 400; transition: transform .2s;
}
.sector-page .sp-faq[open] .sp-faq__plus { transform: rotate(45deg); }
.sector-page .sp-faq p { margin: 14px 0 4px; font-size: 17px; line-height: 1.62; color: var(--body); max-width: 720px; }

/* ================= BLOG ================= */
.sector-page .sp-blog { padding: 64px 0; }
.sector-page .sp-blog .sp-h2 { font-size: 28px; margin-bottom: 28px; }
.sector-page .sp-blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.sector-page .sp-blog__card { background: #fff; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .18s ease; }
.sector-page .sp-blog__card:hover { box-shadow: 0 10px 28px rgba(10,26,58,0.10); }
.sector-page .sp-blog__img {
  display: block; width: 100%; height: 140px; object-fit: cover;
  background: repeating-linear-gradient(135deg, var(--line) 0 8px, var(--light) 8px 16px);
}
.sector-page .sp-blog__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sector-page .sp-blog__body h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.sector-page .sp-blog__card:hover .sp-arrow { color: var(--hover); }

/* ================= CONTACT FORM ================= */
.sector-page .sp-form { background: var(--navy); color: #fff; }
.sector-page .sp-form__copy { display: flex; flex-direction: column; gap: 18px; }
.sector-page .sp-form h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: #fff; }
.sector-page .sp-form__copy p { font-size: 17px; line-height: 1.6; color: var(--pale); }
.sector-page .sp-form__phone { font-size: 22px; font-weight: 700; color: var(--mint); text-decoration: none; }
.sector-page .sp-form__phone:hover { color: var(--hover); }

/* Contact Form 7 styled to the design's dark inputs */
.sector-page .sp-form__form,
.sector-page .sp-form__form label { color: var(--pale); font-size: 15px; }
.sector-page .sp-form__form p { margin: 0 0 14px; }
.sector-page .sp-form__form input[type=text],
.sector-page .sp-form__form input[type=email],
.sector-page .sp-form__form input[type=tel],
.sector-page .sp-form__form input[type=url],
.sector-page .sp-form__form select,
.sector-page .sp-form__form textarea {
  width: 100%; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 0;
  padding: 15px 16px; font-family: 'Ubuntu', sans-serif; font-size: 15px; color: #fff;
  box-shadow: none; margin: 0;
}
.sector-page .sp-form__form textarea { min-height: 120px; resize: vertical; }
.sector-page .sp-form__form input::placeholder,
.sector-page .sp-form__form textarea::placeholder { color: #8195AD; opacity: 1; }
.sector-page .sp-form__form input:focus,
.sector-page .sp-form__form textarea:focus { outline: none; border-color: var(--teal); }
.sector-page .sp-form__form input[type=submit],
.sector-page .sp-form__form .wpcf7-submit {
  display: inline-block; width: auto; background: var(--teal); color: #fff; border: 0; border-radius: 3px;
  font-family: 'Ubuntu', sans-serif; font-size: 15px; font-weight: 700; padding: 15px 32px;
  cursor: pointer; transition: background .18s ease;
}
.sector-page .sp-form__form input[type=submit]:hover,
.sector-page .sp-form__form .wpcf7-submit:hover { background: var(--hover); }
.sector-page .sp-form__form .wpcf7-response-output { color: #fff; margin: 14px 0 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 700px) {
  .sector-page .sp-wrap { padding-left: 22px; padding-right: 22px; }
  .sector-page .sp-sec { padding: 56px 0; }
  .sector-page .sp-hero { padding-top: 48px; }
  .sector-page .sp-hero__grid { padding-bottom: 48px; }
  .sector-page .sp-h2,
  .sector-page .sp-form h2 { font-size: 28px; }
  .sector-page .sp-craig h2 { font-size: 26px; }
  .sector-page .sp-case__body { padding: 28px 22px; }
  .sector-page .sp-case__media { min-height: 200px; }
  .sector-page .sp-kw__row { grid-template-columns: minmax(0, 1.4fr) minmax(40px, 0.8fr) 52px; padding: 11px 16px; gap: 12px; }
  .sector-page .sp-kw__head { padding: 14px 16px; }
  .sector-page .sp-craig__grid { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
  .sector-page .sp-craig__grid--single { grid-template-columns: minmax(0, 1fr); }
  .sector-page .sp-faq summary { font-size: 17px; }
  .sector-page .sp-carousel__track { grid-auto-columns: 100%; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .sector-page .sp-carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
}
