/*
Theme Name: The Self Group
Theme URI: https://self.co.uk/
Author: The Self Group
Description: A modern WordPress block theme for The Self Group and its family of companies.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: the-self-group
*/

:root {
  --self-navy: #071f3d;
  --self-navy-2: #0d315d;
  --self-orange: #f36b21;
  --self-ink: #101820;
  --self-mist: #f3f6f8;
  --self-line: rgba(7, 31, 61, .14);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .2em; }

.self-header {
  border-bottom: 1px solid var(--self-line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-bar .self-header { top: 32px; }
.self-brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: .42rem; }
.self-brand-main { font-weight: 900; letter-spacing: -.07em; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.self-brand-e { color: var(--self-orange); letter-spacing: -.12em; }
.self-brand-group { color: var(--self-navy); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.self-hero { position: relative; overflow: hidden; }
.self-hero::after {
  content: ""; position: absolute; right: -12vw; top: -25%; width: 52vw; height: 52vw;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none;
}
.self-eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
.self-accent { color: var(--self-orange); }
.self-hero-title { text-wrap: balance; letter-spacing: -.045em; }
.self-hero-copy { max-width: 700px; }
.self-btn .wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease; }
.self-btn .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(243,107,33,.22); }

.self-company-grid { align-items: stretch !important; }
.self-company-card {
  border: 1px solid var(--self-line); border-radius: 18px; overflow: hidden;
  min-height: 330px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.self-company-card:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(7,31,61,.11); border-color: rgba(243,107,33,.55); }
.self-company-card > .wp-block-group:last-child { margin-top: auto; }
.self-card-number { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--self-orange); }
.self-card-link a { text-decoration: none; font-weight: 800; }
.self-card-link a::after { content: "  →"; color: var(--self-orange); }

.self-stat { border-left: 3px solid var(--self-orange); }
.self-stat strong { display: block; color: var(--self-navy); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.self-dark-panel { position: relative; overflow: hidden; }
.self-dark-panel::before {
  content: "SELF"; position: absolute; right: -1rem; bottom: -3.8rem; font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900; letter-spacing: -.08em; color: rgba(255,255,255,.035); pointer-events: none;
}
.self-value { border-top: 1px solid rgba(255,255,255,.18); }
.self-footer a { color: inherit; }

@media (max-width: 781px) {
  .admin-bar .self-header { top: 46px; }
  .self-header { position: relative; top: 0; }
  .self-hero { min-height: auto !important; }
  .self-company-card { min-height: 280px; }
  .self-brand-group { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .self-company-card, .self-btn .wp-block-button__link { transition: none; }
}
