/* actrand.com, Brand Guideline v2 (2026) */
:root {
  --purple: #572961;
  --purple-dark: #3F1E46;
  --tint: #F5F2F6;
  --white: #FFFFFF;
  --black: #000000;
  --muted: #595959;
  --line: #D9D9D9;
  --blue: #6971E1;
  --coral: #E37373;
  --green: #95D07D;
  --yellow: #F5E855;
  --orchid: #C97AC0;

  --font: "Montserrat", Calibri, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --radius: 16px;
  --wrap: 1140px;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--purple-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--purple); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rotated { transform: rotate(180deg); transition: transform .6s ease; }

/* Orbit Field: the mark, oversized, white at 4.5% on dark, off-centre, never rotated */
.orbit-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-field::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  right: -45%;
  top: -40%;
  background: var(--white);
  -webkit-mask: url("../img/mark.png") center / contain no-repeat;
          mask: url("../img/mark.png") center / contain no-repeat;
  opacity: .045;
  filter: blur(2px);
}

/* Header and nav */
.site-header { position: relative; z-index: 5; color: var(--white); background: var(--gradient); }
.page-hero, .hero-home, .nav { position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.nav-brand:hover { color: var(--white); }
.nav-brand img { width: 40px; height: 40px; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { display: block; color: var(--white); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav-links a[aria-current="page"] { background: var(--white); color: var(--purple); }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.5); color: var(--white); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

.page-hero { padding-top: 40px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); margin: 0; }

.hero-home { text-align: center; padding-top: 32px; padding-bottom: 88px; }
.hero-logo { width: min(420px, 70%); margin: 0 auto; display: block; animation: rise .9s ease both .15s; }
.hero-since { margin: 18px 0 0; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; font-weight: 600; opacity: .9; animation: rise .9s ease both .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section + .section { padding-top: 0; }
.section-tint { background: var(--tint); padding-top: 72px; padding-bottom: 72px; }
.section-tint + .section { padding-top: 72px; }
.lede { font-size: 1.12rem; max-width: 760px; }
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--purple); font-size: 1.4rem; margin-bottom: 16px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }
.service { transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(63,30,70,.10); }
/* Accent bar per card, sampled from the mark (fill only, never text) */
.accent { position: relative; overflow: hidden; }
.accent::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--purple); }
.accent-blue::before { background: var(--blue); }
.accent-coral::before { background: var(--coral); }
.accent-green::before { background: var(--green); }
.accent-yellow::before { background: var(--yellow); }
.accent-orchid::before { background: var(--orchid); }

/* Detailed service list (About) */
.service-list { display: grid; gap: 20px; margin-top: 32px; }
.service-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.service-row .icon { margin: 0; }
.service-row h2 { font-size: 1.25rem; margin: 6px 0 .4em; }
.service-row p { margin: 0; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--font); text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--purple); }
.actions { margin-top: 36px; }

/* Showcase (Clients, Web Apps) */
.showcase { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.showcase-img { display: block; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.showcase:hover .showcase-img img { transform: scale(1.03); }
.showcase-body { padding: 22px 26px 26px; }
.showcase-body h2 { font-size: 1.25rem; margin: 0; }
.showcase-body h2 a { text-decoration: none; color: var(--purple-dark); }
.showcase-body h2 a:hover { color: var(--purple); text-decoration: underline; }
.showcase-body p { margin: 10px 0 0; color: var(--muted); }
.tag { position: absolute; top: 16px; right: 16px; z-index: 1; background: var(--yellow); color: var(--black); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 56px 40px; text-align: center; color: var(--white); background: var(--gradient); }
.cta .orbit-field::before { width: 150%; right: -85%; top: -95%; }
.cta > *:not(.orbit-field) { position: relative; }
.cta h2 { color: var(--white); }
.cta p { opacity: .92; max-width: 560px; margin: 0 auto 26px; }
.cta a:not(.btn) { color: var(--white); }

/* Team */
.team-card { text-align: center; }
.team-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 5px solid var(--tint); margin: 0 auto 16px; display: block; }
.team-card h2 { margin-bottom: .3em; }
.team-card .bio { color: var(--muted); }
.certs { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); text-align: left; display: inline-block; }
.certs li { display: flex; gap: 12px; align-items: baseline; padding: 5px 0; font-size: .93rem; }
.certs i { color: var(--purple); width: 18px; text-align: center; flex: none; }

/* Contact */
.contact-card h2 { font-size: 1.2rem; margin-bottom: .6em; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.contact-card .icon { width: 48px; height: 48px; font-size: 1.15rem; border-radius: 14px; }
.contact-card .mono { font-family: var(--mono); }

/* Software logos */
.logo-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.logo-card .logo-img { display: flex; align-items: center; justify-content: center; height: 130px; width: 100%; }
.logo-card .logo-img img { max-height: 110px; max-width: 70%; width: auto; }
.logo-card h2 { font-size: 1.15rem; margin: 16px 0 0; }
.logo-card h2 a { text-decoration: none; color: var(--purple-dark); }

/* Partners (MSP) */
.partners { display: flex; justify-content: center; align-items: center; gap: 64px; flex-wrap: wrap; }
.partners img { height: 70px; width: auto; }
.partner-ms { text-align: left; line-height: 1.2; }
.partner-ms strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--black); }
.partner-ms span { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; }
.footer-logo { width: 110px; }
.footer-links { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tint); color: var(--purple); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-links a:hover { background: var(--purple); color: var(--white); }
.footer-copy { margin: 0; color: var(--muted); font-size: .85rem; width: 100%; }

@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav-toggle { display: block; padding: 10px 14px; }
  .nav-links { display: none; position: absolute; top: calc(100% + 4px); left: 16px; right: 16px; flex-direction: column; gap: 6px; background: var(--purple-dark); border-radius: 18px; padding: 16px; z-index: 10; box-shadow: 0 16px 36px rgba(0,0,0,.28); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; font-size: 1.02rem; }
  .hero-home { padding-top: 24px; }
  .page-hero { padding-top: 28px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .section, .section-tint { padding-top: 48px; padding-bottom: 48px; }
  .cta { padding: 40px 22px; }
  .card { padding: 22px; }
  .partners { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero-title { margin: 0; }

/* Homepage: plain gradient, no Orbit Field, and no duplicate logo in the nav (the hero carries it) */
.is-home .orbit-field { display: none; }
.is-home .nav-brand { visibility: hidden; }
