/* ============================================================
   Acrylicon UK — Website Refresh (Phase 3)
   Colour + type system modelled on the current Divi site
   ============================================================ */

/* Self-hosted Open Sans (no external Google Fonts dependency).
   Font files live in /fonts and are fetched via download-fonts.command */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/open-sans-800.woff2') format('woff2');
}

:root {
  --red: #e2001a;
  --red-dark: #b30015;
  --black: #111111;
  --charcoal: #1d1d1d;
  --grey-dark: #444444;
  --grey: #666666;
  --grey-light: #f5f5f5;
  --grey-line: #e4e4e4;
  --white: #ffffff;
  --max: 1180px;
  --font: 'Open Sans', 'Segoe UI', Arial, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 3px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--black); }
.btn.dark { background: var(--black); border-color: var(--black); }
.btn.dark:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--red);
  color: var(--white);
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar .licensee-note { opacity: .95; }
@media (max-width: 700px) { .topbar .licensee-note { display: none; } }

/* ---------- Header / navigation ---------- */
header.site {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { height: 46px; width: auto; }
.logo .logo-sub {
  color: #bbbbbb;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-left: 1px solid #3a3a3a;
  padding-left: 14px;
  line-height: 1.5;
}

nav.main { display: flex; align-items: center; gap: 8px; }
nav.main > ul { list-style: none; display: flex; align-items: center; }
nav.main > ul > li { position: relative; }
nav.main > ul > li > a {
  display: block;
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  padding: 28px 18px;
  white-space: nowrap;
}
nav.main > ul > li > a:hover,
nav.main > ul > li > a.active { color: var(--red); }

nav.main li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-top: 3px solid var(--red);
}
nav.main li:hover > ul { display: block; }
nav.main li ul a {
  display: block;
  padding: 11px 18px;
  color: var(--black);
  font-size: .9rem;
  border-bottom: 1px solid var(--grey-line);
}
nav.main li ul a:hover { background: var(--grey-light); color: var(--red); }

.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 10px 22px; font-size: .85rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }
  nav.main.open { display: flex; }
  nav.main > ul { flex-direction: column; align-items: stretch; }
  nav.main > ul > li > a { padding: 14px 24px; border-bottom: 1px solid #2c2c2c; }
  nav.main li ul { display: block; position: static; box-shadow: none; border-top: none; background: #262626; }
  nav.main li ul a { color: #dddddd; border-bottom: 1px solid #2c2c2c; padding-left: 40px; }
  .nav-cta { margin: 16px 24px 0; }
  .logo .logo-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.hero .wrap { position: relative; padding: 120px 24px; max-width: var(--max); }
.hero.tall .wrap { padding: 160px 24px 150px; }
.hero .kicker {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); font-size: 3.1rem; margin-bottom: 18px; }
.hero p.lede { max-width: 640px; font-size: 1.12rem; color: #e8e8e8; margin-bottom: 30px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero h1 { font-size: 2.1rem; }
  .hero.tall .wrap { padding: 90px 24px; }
}

/* Page banner (interior pages) */
.banner {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.banner .banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
}
.banner .wrap { position: relative; padding: 74px 24px 66px; }
.banner h1 { color: var(--white); margin-bottom: 8px; }
.banner .sub { color: #dddddd; font-size: 1.05rem; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: #aaaaaa; margin-top: 18px; }
.breadcrumb a { color: #dddddd; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Sections ---------- */
section.pad { padding: 74px 0; }
section.pad.tight { padding: 54px 0; }
section.grey { background: var(--grey-light); }
section.dark { background: var(--black); color: #dddddd; }
section.dark h2, section.dark h3 { color: var(--white); }

.center { text-align: center; }
.kicker {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  margin-bottom: 10px;
}
.section-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }

/* Two-column text/image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .txt p { margin-bottom: 1em; }
.split img { border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card .tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 8px;
}
.card p { font-size: .95rem; margin-bottom: 18px; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: .9rem; }

/* Feature grid (icon features) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
}
.feature { text-align: center; padding: 10px 14px; }
.feature img { height: 54px; width: auto; margin: 0 auto 16px; }
.feature p { font-size: .93rem; }

/* Industry pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--black);
}
.pill:hover { border-color: var(--red); color: var(--red); }

/* Client logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 46px;
}
.logo-strip img { height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: all .2s ease; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* Red client-logo band (white logos on brand red) */
.logos-band { background: var(--red); overflow: hidden; }
.logo-marquee { overflow: hidden; width: 100%; }
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-track .logo-strip {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 60px;
  padding-right: 60px;
}
.logo-track .logo-strip img { filter: none; opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* CTA band */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap {
  padding: 52px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 4px; }
.cta-band p { color: #ffe0e3; }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--red); white-space: nowrap; }
.cta-band .btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* Testimonial */
.quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--grey-dark);
  margin-bottom: 22px;
}
.quote cite { font-style: normal; font-weight: 700; color: var(--black); }
.quote .quote-date { font-size: .85rem; color: var(--grey); }

/* Prose (long-form content pages) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { margin: 1.8em auto; border-radius: 4px; }
.prose .fact {
  background: var(--grey-light);
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  margin: 1.6em 0;
  font-size: .95rem;
}

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--red); line-height: 1.1; }
.stat .lbl { font-size: .9rem; font-weight: 600; color: var(--black); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .85rem; font-weight: 700; color: var(--black); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-family: var(--font);
  font-size: .95rem;
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--grey); margin-top: 12px; }

/* Contact info blocks */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.contact-card {
  background: var(--grey-light);
  border-radius: 4px;
  padding: 30px 28px;
  text-align: center;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card a { font-weight: 700; }

/* Accreditation grid */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}
.accreditations-grid img { max-height: 84px; width: auto; margin: 0 auto; }

/* Table (downloads etc.) */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--grey-line); }
table.list th { background: var(--black); color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
table.list tr:hover td { background: var(--grey-light); }

/* Blog list */
.post-list { max-width: 860px; margin: 0 auto; }
.post-item { padding: 26px 0; border-bottom: 1px solid var(--grey-line); }
.post-item .date { font-size: .8rem; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }
.post-item h3 { margin: 6px 0 4px; }
.post-item h3 a { color: var(--black); }
.post-item h3 a:hover { color: var(--red); }

/* ---------- Footer ---------- */
footer.site { background: var(--black); color: #bbbbbb; font-size: .92rem; }
footer.site .foot-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding: 64px 0 48px;
}
footer.site h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: #bbbbbb; }
footer.site a:hover { color: var(--white); }
footer.site .foot-brand img { height: 44px; margin-bottom: 18px; }
footer.site .foot-brand p { font-size: .88rem; line-height: 1.7; max-width: 320px; }
.foot-accreditations { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 8px; }
.foot-accreditations img { height: 46px; width: auto; opacity: .85; background: var(--white); border-radius: 3px; padding: 4px; }
footer.site .foot-legal {
  border-top: 1px solid #2c2c2c;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #888888;
}
footer.site .foot-legal ul { display: flex; gap: 20px; }
footer.site .foot-legal li { margin: 0; }
@media (max-width: 980px) { footer.site .foot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { footer.site .foot-main { grid-template-columns: 1fr; } }
