/* Circle Care Clinic Ltd — UK holding site.
   Brand tokens mirrored from web/styles/tokens.css (official brand guide
   values; Poppins + Barlow are the site's shipped stand-ins for Antipasto Pro
   + DIN Next). Fonts are self-hosted: the site makes no third-party requests. */

@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format("woff2"); }

:root {
  --cc-pink: #EC3B77;
  --cc-blue: #2BA9E0;
  --cc-indigo: #4751A2;
  --cc-navy: #232356;
  --cc-purple: #8A4A8E;
  --indigo-50: #ECEDF5;
  --indigo-200: #AFB4D6;
  --pink-50: #FDEBF1;
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --fg1: #232356;
  --fg2: #494C76;
  --fg3: #6E719A;
  --border: #E4E5EF;
  --ring-focus: rgba(43, 169, 224, 0.55);
  --grad-brand: linear-gradient(100deg, #EC3B77 0%, #8A4A8E 36%, #4751A2 68%, #2BA9E0 100%);
  --grad-ring: conic-gradient(from 210deg, #2BA9E0, #4751A2, #8A4A8E, #EC3B77, #2BA9E0);
  --grad-wash: linear-gradient(160deg, #ECEDF5 0%, #FDEBF1 100%);
  --shadow-xs: 0 1px 2px rgba(35, 35, 86, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 35, 86, 0.09);
  --shadow-lg: 0 18px 48px rgba(35, 35, 86, 0.12);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--grad-brand);
}
main { flex: 1; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg1); text-decoration: none; }
.brand img { width: 44px; height: 44px; display: block; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-sub { display: block; margin-top: 4px; font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3); line-height: 1; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--fg2); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav a:hover { color: var(--cc-indigo); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 14px; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc-pink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--fg1); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
.lead { margin: 0; max-width: 56ch; font-size: 20px; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }
.section-intro { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-facts li { padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--fg2); box-shadow: var(--shadow-xs); }

.ring-visual { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin-left: auto; }
.ring-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--indigo-200); opacity: 0.7; }
.ring {
  position: absolute; inset: 13%; border-radius: 50%;
  background: var(--grad-ring);
  -webkit-mask: radial-gradient(circle, transparent 49%, #000 49.5%);
          mask: radial-gradient(circle, transparent 49%, #000 49.5%);
  box-shadow: var(--shadow-lg);
}
.ring-card {
  position: absolute; left: -8%; bottom: 6%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.ring-card .flag { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); color: var(--cc-indigo); flex: none; }
.ring-card .k { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.ring-card .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--fg1); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 48px; }

/* Group structure */
.structure { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; }
.entity { padding: 32px; border-radius: 24px; border: 1px solid var(--border); background: var(--bg); }
.entity-parent { background: var(--cc-navy); border-color: transparent; color: #fff; }
.entity .tag { display: inline-block; margin-bottom: 18px; padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--indigo-50); color: var(--cc-indigo); }
.entity-parent .tag { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
.entity h3 { font-size: 24px; margin-bottom: 4px; }
.entity-parent h3 { color: #fff; }
.entity .where { margin: 0 0 20px; font-weight: 600; color: var(--fg3); }
.entity-parent .where { color: rgba(255, 255, 255, 0.6); }
.entity p:last-child { margin: 0; color: var(--fg2); }
.entity-parent p:last-child { color: rgba(255, 255, 255, 0.82); }
.link-line { position: relative; }
.link-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--grad-brand); }
.link-line::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cc-purple); }

/* Role cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-xs); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-wash); color: var(--cc-indigo); margin-bottom: 20px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg2); }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 32px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--indigo-50); color: var(--fg2); font-size: 15.5px; }
.notice svg { flex: none; margin-top: 2px; color: var(--cc-indigo); }

/* Company details */
.details-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.details { margin: 0; padding: 8px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-xs); }
.section-alt .details { background: var(--bg); }
.row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
dt { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); padding-top: 2px; }
dd { margin: 0; font-weight: 500; color: var(--fg1); }
.text-link { color: var(--cc-indigo); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(71, 81, 162, 0.3); overflow-wrap: anywhere; }
.text-link:hover { border-bottom-color: var(--cc-indigo); }
.ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; }

/* Contact */
.contact-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px; background: var(--cc-navy); color: #fff;
}
.contact-panel::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: var(--grad-ring);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 58.5%);
          mask: radial-gradient(circle, transparent 58%, #000 58.5%);
  opacity: 0.35;
}
.contact-panel h2 { color: #fff; }
.contact-panel .section-intro { color: rgba(255, 255, 255, 0.78); }
.contact-panel .eyebrow { color: #F69BBA; }
.contact-box { position: relative; z-index: 1; padding: 28px; border-radius: 20px; background: #2E2F63; border: 1px solid rgba(255, 255, 255, 0.14); }
.contact-box .k { display: block; margin-bottom: 8px; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.contact-email { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 0; transition: transform 140ms var(--ease-out), background 140ms var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--cc-navy); }
.btn-light:hover { background: var(--indigo-50); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 44px; border-top: 1px solid var(--border); font-size: 14px; color: var(--fg3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer p { margin: 0; max-width: 70ch; }
.site-footer a { color: var(--fg2); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--cc-indigo); }
.footer-links { display: flex; gap: 24px; }

/* ---------- Prose (privacy, 404) ---------- */
.prose { padding: 64px 0 96px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 48px); }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--fg2); max-width: 68ch; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--fg3); font-size: 15px; margin-top: -8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .details-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 72px; }
  .ring-visual { max-width: 300px; margin: 8px auto 0; }
  .ring-card { left: -4%; }
  .cards { grid-template-columns: 1fr; }
  .structure { grid-template-columns: 1fr; grid-template-rows: auto 48px auto; }
  .link-line::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, #8A4A8E, #4751A2); }
  .details-grid { gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-nav { display: none; }
  .lead { font-size: 18px; }
  .entity { padding: 26px 22px; }
  .details { padding: 4px 20px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact-panel { padding: 36px 22px; border-radius: 24px; gap: 28px; }
  .contact-box { padding: 20px 18px; }
  .contact-email { font-size: 16px; overflow-wrap: normal; }
  .contact-panel::after { display: none; }
  .ring-visual { max-width: 230px; }
  .ring-card { padding: 12px 14px; left: -10%; }
  .ring-card .v { font-size: 15px; }
}
