/* AI-Celerates Business — shared design system
   Modern operational aesthetic: clean sans, structured grids, mono accents.
*/

:root {
  /* Palette — default: petrol teal on warm off-white */
  --bg: #F6F5F1;
  --bg-alt: #EDEBE3;
  --bg-ink: #0E1518;
  --ink: #0E1518;
  --ink-2: #2A3236;
  --muted: #5A6570;
  --muted-2: #8C9299;
  --rule: #D9D5CB;
  --rule-2: #C7C2B4;
  --accent: #0F4C4A;
  --accent-ink: #F6F5F1;
  --accent-soft: #E4EBEA;
  --danger: #A34A2A;

  /* Type */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.813rem, 0.78rem + 0.15vw, 0.875rem);
  --step-0:  clamp(0.938rem, 0.9rem + 0.2vw, 1rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --step-5:  clamp(3rem, 2.2rem + 3.5vw, 5rem);
  --step-6:  clamp(3.75rem, 2.8rem + 4.5vw, 6.5rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- LAYOUT ------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark {
  background: var(--bg-ink);
  color: var(--bg);
  border-top-color: var(--bg-ink);
}
.section--dark .rule { border-color: rgba(255,255,255,0.14); }
.section--dark .muted { color: rgba(255,255,255,0.62); }
.section--dark .eyebrow { color: rgba(255,255,255,0.62); }
.section--dark .lead { color: rgba(255,255,255,0.85); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--bg); }

/* --- TYPE --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 42ch;
}

.muted { color: var(--muted); }
.body-long { max-width: 62ch; color: var(--ink-2); }
.body-long p { margin-bottom: 1.1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 1.75em;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  display: inline-block;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.mono-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- LINES + RULES ----------------------------------------------- */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--thick { border-top-width: 1px; border-top-color: var(--ink); }

/* --- BUTTONS ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.4em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(15, 76, 74, 0.5); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.btn--link:hover { color: var(--accent); border-color: var(--accent); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- NAV ---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 241, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.15rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.site-nav__brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.site-nav__brand .brand-mark {
  height: 52px;
  width: auto;
  display: block;
}

/* Brand mark — reusable in nav (light) and footer (dark) */
.brand-mark { color: currentColor; }
.brand-mark__rule { stroke: var(--accent); }
.brand-mark__tagline { fill: var(--accent); }

/* On dark surfaces, lift the petrol accent so it reads clearly */
.site-footer .brand-mark__rule,
.section--dark .brand-mark__rule { stroke: #4A9E9A; }
.site-footer .brand-mark__tagline,
.section--dark .brand-mark__tagline { fill: #4A9E9A; }

@media (max-width: 700px) {
  .site-nav__brand .brand-mark { height: 42px; }
}
@media (max-width: 480px) {
  /* Tighter: hide the tagline part on very narrow screens by clipping the viewBox visually */
  .site-nav__brand .brand-mark { height: 34px; }
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
}
.site-nav__links a {
  font-size: 0.925rem;
  color: var(--ink-2);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.15s;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a.is-active {
  color: var(--ink);
}
.site-nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.site-nav__cta { flex-shrink: 0; }
.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav--open .site-nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav--open .site-nav__links li {
    width: 100%;
    border-top: 1px solid var(--rule);
  }
  .site-nav--open .site-nav__links li:first-child { border-top: 0; }
  .site-nav--open .site-nav__links a {
    padding: 0.9rem 0;
    display: block;
    width: 100%;
  }
  .site-nav__cta .btn { padding: 0.7em 1.1em; font-size: 0.85rem; }
  .site-nav__brand small { display: none; }
}

/* --- FOOTER ------------------------------------------------------- */
.site-footer {
  background: var(--bg-ink);
  color: var(--bg);
  padding-block: 4rem 2rem;
}
.site-footer a { color: var(--bg); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.site-footer__brand {
  margin-bottom: 1.25rem;
}
.site-footer__brand .brand-mark {
  height: 44px;
  width: auto;
  display: block;
  color: var(--bg);
}
.site-footer__tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}
.site-footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin: 0 0 1rem;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.6rem; }
.site-footer__col a {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}
.site-footer__col a:hover { color: #fff; }

.region-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.region-badge b {
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: none;
}
.region-badge span { color: rgba(255,255,255,0.55); }

/* Legal pages (Privacy / Terms / Cookies) ---------------- */
.legal-body { padding-top: 2rem; }
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 780px;
}
.legal-list > li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.legal-list > li:first-child { border-top: none; padding-top: 0; }
.legal-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 0.5rem;
}
.legal-list h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.legal-list h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
  font-weight: 500;
}
.legal-list p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 68ch;
}
.legal-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.legal-list ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.legal-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.legal-list ul li b { font-weight: 600; color: var(--ink); }
.legal-list a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.legal-list a:hover { opacity: 0.7; }
.legal-contacts {
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  border-radius: 3px;
  background: var(--bg-alt);
  margin-top: 0.5rem !important;
}
.legal-contacts li { padding-left: 0 !important; }
.legal-contacts li::before { display: none !important; }
.legal-contacts b {
  display: inline-block;
  min-width: 140px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 640px) {
  .legal-list > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .legal-num { padding-top: 0; }
  .legal-contacts b { display: block; min-width: 0; margin-bottom: 0.25rem; }
}

.site-footer__addresses {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-addr {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
}
.footer-addr b {
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.footer-addr__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.footer-addr__body a {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.footer-addr__body a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 720px) {
  .site-footer__addresses { grid-template-columns: 1fr; }
  .footer-addr { grid-template-columns: 90px 1fr; gap: 1rem; }
}

.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.site-footer__legal-links {
  display: flex;
  gap: 1.5rem;
}
.site-footer__legal-links a {
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.site-footer__legal-links a:hover { color: #fff; }
.site-footer__connect-h { margin-top: 2rem !important; }
.site-footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer__social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__col:first-child { grid-column: 1 / -1; }
}

/* --- STICKY CTA --------------------------------------------------- */
.sticky-cta {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 30;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- ANNOUNCE BAR ------------------------------------------------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  padding-block: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.announce span { opacity: 0.7; margin: 0 0.75rem; }

/* --- PAGE HERO (About / Services / etc.) ------------------------- */
.page-hero {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
}
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; max-width: 48ch; }

/* --- CARDS + LISTS ----------------------------------------------- */
.stat-card {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.stat-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}
.stat-card h3 { margin-bottom: 0.8rem; }
.stat-card p { color: var(--ink-2); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.check:last-child { border-bottom: 1px solid var(--rule); }
.check::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  margin-top: 3px;
  position: relative;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%) center/70% 70% no-repeat,
    linear-gradient(-45deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%) center/70% 70% no-repeat;
  background-position: 3px 5px, -3px 5px;
}

/* Custom checkmark svg via ::before */
.check-ok {
  position: relative;
  padding-left: 1.85rem;
}
.check-ok::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- PILL / TAG --------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- IMG PLACEHOLDER --------------------------------------------- */
.img-slot {
  background:
    repeating-linear-gradient(45deg, var(--bg-alt) 0 8px, var(--bg) 8px 16px);
  border: 1px solid var(--rule);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  aspect-ratio: 4/5;
  border-radius: 4px;
  position: relative;
}
.img-slot span {
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* --- ACCESSIBILITY ----------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
