:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --ink: #eaf0ff;
  --muted: #a9b5d9;
  --brand: #6aa1ff;
  --brand-2: #b78cff;
  --accent: #2dd4bf;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.container {
  width: min(var(--max), 100%);
  margin: auto;
  justify-content: center;
}
.row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.spread {
  justify-content: space-between;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  --webkit-backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
  padding-bottom: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-name {
  font-weight: 700;
}
.top-nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}
.top-nav a:hover {
  color: var(--ink);
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
}
.headline {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.subhead {
  color: var(--muted);
  margin-top: 0.5rem;
}
.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 161, 255, 0.4);
}

.brand-heading {
  justify-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(157, 153, 18, 0.25),
    rgba(54, 25, 218, 0) 70%
  );
  padding-bottom: 5px;
  padding-top: 5px;
}

.brands {
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: inherit;
  padding-right: 5px;
  padding-left: 5px;
}
.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.copy {
  max-width: 70ch;
}

/* Alternating direction */
.brands .brand:nth-child(even) .brand-inner {
  flex-direction: row-reverse;
  text-align: right;
  padding-right: 5px;
  padding-left: 5px;
}

.brands .brand:nth-child(odd) .brand-inner {
  flex-direction: row;
  text-align: left;
  padding-right: 5px;
  padding-left: 5px;
}

/* Gradient backgrounds */
.brand-legal {
  background: linear-gradient(
    90deg,
    rgba(42, 72, 155, 0.25),
    rgba(42, 72, 155, 0) 70%
  );
}
.brand-advisors {
  background: linear-gradient(
    270deg,
    rgba(64, 160, 255, 0.25),
    rgba(64, 160, 255, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}
.brand-uk {
  background: linear-gradient(
    90deg,
    rgba(183, 140, 255, 0.25),
    rgba(183, 140, 255, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}
.brand-financials {
  background: linear-gradient(
    270deg,
    rgba(45, 212, 191, 0.25),
    rgba(45, 212, 191, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}

/* Hover animation */
.brand:hover .brand-inner {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

.brand h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.brand p {
  color: var(--muted);
  margin: 0;
}
.brand-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

/* Responsive stacking */
@media (max-width: 860px) {
  .brand-inner {
    flex-direction: column !important;
    text-align: left;
  }
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.mail {
  color: rgba(255, 255, 255, 0.9) !important;
}

.contact {
  padding-left: 5px;
  padding-right: 5px;
}
@media (max-width: 860px) {
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact .desc {
    padding-left: 8px;
    padding-right: 8px;
  } /* extra for the paragraph */
  .contact ul {
    margin-left: 1rem;
    padding-left: 1rem;
  } /* keep bullets readable */
}

.contact .heading {
  text-align: center;
}
.contact .desc {
  display: flex;
  text-align: justify;
  align-items: center;
}
/* Contact list: show bullets consistently */
.contact ul,
.contact .points {
  display: block; /* restore normal list behavior */
  list-style: disc; /* bullets */
  list-style-position: outside; /* classic outside bullets */
  margin: 0.5rem 0 0 1.25rem; /* left indent so bullets are visible */
  padding-left: 1.1rem;
}

.contact li {
  margin: 0.35rem 0;
}

@media (max-width: 860px) {
  .contact ul,
  .contact .points {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

/* Background blobs */
.bg-ornament {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.blob {
  position: absolute;
  filter: blur(50px);
  opacity: 0.55;
}
.blob-a {
  top: -80px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #6aa1ff, transparent 60%);
}
.blob-b {
  bottom: -120px;
  right: -90px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #b78cff, transparent 60%);
}

/* --- Spacing boost for the animation section (About) --- */
.about {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;
  padding-left: 10px;
  overflow: visible;
  position: relative;
}
.about::before,
.about::after {
  content: " ";
  position: relative;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 5;
}
.about::before {
  top: -40px;
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 1),
    rgba(11, 18, 32, 0)
  );
}
.about::after {
  bottom: -40px;
  background: linear-gradient(to top, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
  border: #ffffff;
  border-radius: 500px;
}

.about-visual {
  min-height: 420px;
}

@media (max-width: 860px) {
  .about {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .about-visual {
    min-height: 420px;
    min-width: 420px;
  }
}

/* === About Visual: layout === */
.about {
  position: relative;
  z-index: 2;
  overflow: visible; /* allow rings to render fully */
}
.about .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

@media (min-width: 861px) {
  .about {
    padding-top: 20px;
  }
  .about .grid-2 > :nth-child(1) {
    grid-column: 1;
  }
  .about-visual {
    grid-column: 2;
    justify-self: auto;
    margin-left: 0;
    margin-top: 24px;
  }
}

/* --- Core glow (center) --- */
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-width: auto;
}
.about-visual .pulse {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(190, 160, 255, 0.95),
    rgba(190, 160, 255, 0.15) 55%,
    transparent 65%
  );
  box-shadow: 0 0 60px 20px rgba(183, 140, 255, 0.18),
    0 0 120px 30px rgba(56, 87, 141, 0.12) inset;
  filter: blur(0.4px);
  animation: breathe 3.6s ease-in-out infinite, floatY 8s ease-in-out infinite;
  z-index: 2;
}

/* --- MULTI-ORBIT CIRCULAR TEXT (SVG) --- */
.orbit-system {
  width: clamp(280px, 48vw, 540px);
  height: auto;
  z-index: 3;
}

/* style for text following the path */
.orbit-label {
  font: 700 18px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 2px;
  fill: rgba(242, 244, 248, 0.95);
  text-transform: uppercase;
}

/* each orbit group revolves around the SVG center */
.orbit {
  transform-origin: 200px 200px;
}
.orbit-1 {
  animation: orbit-spin 16s linear infinite;
}
.orbit-2 {
  animation: orbit-spin 22s linear infinite reverse;
}
.orbit-3 {
  animation: orbit-spin 28s linear infinite;
}
.orbit-4 {
  animation: orbit-spin 36s linear infinite reverse;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* keyframes for the glow */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- Responsive tuning for orbits --- */
@media (max-width: 1200px) {
  .orbit-label {
    font-size: 16px;
    letter-spacing: 1.8px;
  }
  .about-visual .pulse {
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 860px) {
  .about-visual {
    min-height: 320px;
  }
  .orbit-system {
    width: clamp(240px, 78vw, 320px);
  }
  .orbit-label {
    font-size: 15px;
    letter-spacing: 1.6px;
  }
  .about-visual .pulse {
    width: 140px;
    height: 140px;
  }

  /* mobile: visual below text (single column, centered) */
  .about .grid-2 {
    grid-template-columns: 1fr;
  }
  .about-visual {
    grid-column: auto;
    justify-self: center;
    margin-top: 16px;
  }
}
@media (max-width: 420px) {
  .orbit-system {
    width: clamp(220px, 78vw, 300px);
  }
  .orbit-label {
    font-size: 14px;
    letter-spacing: 1.4px;
  }
  .about-visual .pulse {
    width: 128px;
    height: 128px;
  }
}

/* Reduced motion: keep effect but slow down */
@media (prefers-reduced-motion: reduce) {
  .about-visual .pulse {
    animation: breathe 6s ease-in-out infinite;
  }
  .orbit-1 {
    animation-duration: 40s;
  }
  .orbit-2 {
    animation-duration: 50s;
  }
  .orbit-3 {
    animation-duration: 60s;
  }
  .orbit-4 {
    animation-duration: 70s;
  }
}

/* --- No clipping & core label --- */
.about::before,
.about::after {
  /* disable fade guards that could cover text */
  display: none;
}
.about {
  /* ensure no cut text on all devices */
  overflow: visible;
}
/* label inside the core */
.about-visual .pulse::after {
  content: "InnerWork Group";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(27, 22, 29, 0.35) !important;
  pointer-events: none;
}
@media (min-width: 861px) {
  .about-visual .pulse::after {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(27, 22, 29, 0.35);
  }
}

/* -------- Mobile dropdown -------- */
.site-header .container {
  position: relative;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 60;
  padding: auto;
}
.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.top-nav {
  display: flex;
  gap: 1rem;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .top-nav {
    position: absolute;
    top: 58px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 220px;
    padding: 8px;
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
  }
  .top-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
  }
  .top-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .top-nav.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .site-header .top-nav:not(.show) {
    gap: 0;
  }
}

/* --- Keep orbit text fully visible on all screens --- */

/* 1) More vertical headroom on larger screens */
@media (min-width: 861px) {
  .about {
    padding-top: 96px; /* was 64–72px → extra room */
    padding-bottom: 120px; /* was 96px */
  }
  .about-visual {
    min-height: 420px; /* was 420px */
  }
}

/* 2) Cap the SVG ring size a bit smaller so it doesn't touch edges */
.orbit-system {
  /* was: clamp(280px, 48vw, 540px) */
  width: clamp(300px, 64vw, 600px);
}

/* Optional: on ultra-wide monitors, keep it modest too */
@media (min-width: 1400px) {
  .orbit-system {
    width: 500px; /* small bump but still safe */
  }
}

/* Preserve mobile placement (visual below text) with a bit more air */
@media (max-width: 860px) {
  .about-visual {
    margin-top: 24px; /* was 16px */
    min-height: 360px; /* was 320px */
  }
}

/* Office Locations Section */
.offices-section {
  background: linear-gradient(135deg, #1a2b4a, #0f1830);
  padding: 3rem 1rem;
  margin-top: 2rem;
  border-radius: 12px;
}

.offices-heading {
  text-align: center;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 2.5rem 0;
  font-weight: 700;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.office-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.office-title {
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.office-subtitle {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: 0.5px;
}

.office-address {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.office-map {
  margin: 1.5rem 0;
  justify-content: center;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  align-self: center;
}

.office-map iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  align-self: center;
}

.maps-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: center;
}

.maps-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 161, 255, 0.4);
}

.office-phone {
  color: var(--ink);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .offices-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .offices-section {
    padding: 2rem 1rem;
    margin-top: 1.5rem;
  }

  .office-card {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .offices-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .office-title {
    font-size: 1.1rem;
  }

  .map-placeholder {
    padding: 1.5rem 0.8rem;
  }
}

/* Enhanced Services Section */
.services-section {
  margin: 1.5rem 0;
}

.services-title {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-item:hover {
  background: rgba(106, 161, 255, 0.1);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.guided-by {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

/* Responsive adjustments for services */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .service-item {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 1rem;
  }

  .service-item {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }
}
/* Phone Numbers Section */
.phone-section {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(106, 161, 255, 0.1),
    rgba(183, 140, 255, 0.1)
  );
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-heading {
  text-align: center;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

/* .phone-grid {
  gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
} */

.phone-flex {
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

/* Each card takes 1/3 width → max 3 per row */
.phone-flex > * {
  flex: 1 1 calc(33.333% - 1.5rem);
}

.phone-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.phone-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.phone-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.phone-number {
  display: block;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-number:hover {
  color: var(--accent);
  transform: scale(1.05);
}

/* Responsive adjustments for phone section */
@media (max-width: 768px) {
  .phone-section {
    padding: 1.5rem;
  }

  .phone-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .phone-card {
    padding: 1.2rem;
  }

  .phone-number {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .phone-heading {
    font-size: 1.2rem;
  }

  .phone-number {
    font-size: 1rem;
  }
}
/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
  .site-footer .container.row.spread {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .site-footer small {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1.5rem 0;
  }

  .site-footer small {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

.phone-divider {
  margin: 10px 0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: #a9b5d9;
}
