@font-face {
  font-family: 'Source Sans 3';
  src: url('../public/fonts/SourceSans3-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf7;
  --bg-alt: #f1efe9;
  --bg-warm: #f7f5ef;
  --bg-warmer: #f5f1e8;
  --white: #ffffff;
  --text: #1e1e1e;
  --text-md: #555555;
  --text-lt: #888888;
  --dark: #1a1a1a;
  --red: #c1272d;
  --red-dk: #9b1f24;
  --red-lt: #e8434a;
  --teal: #2a9d8f;
  --teal-dk: #1f7a6f;
  --grey: #6b7280;
  --grey-lt: #e5e5e0;

  --serif: 'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --logo: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

/* ============================== NAV ============================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 239, 233, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav__links {
  margin-left: auto;
}
.site-nav__logo img {
  height: 28px;
  object-fit: contain;
}
.site-nav__links {
  display: flex;
  gap: 4px 24px;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-md);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.site-nav__links a:hover { color: var(--red); }
.site-nav__links a.is-active {
  color: var(--red);
  font-weight: 700;
  border-bottom-color: var(--red);
}

/* ---- Nav dropdown ---- */
.site-nav__dropdown {
  position: relative;
}
.site-nav__dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-nav__chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.site-nav__dropdown:hover .site-nav__chevron {
  transform: rotate(180deg);
}
.site-nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.site-nav__dropdown:hover .site-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.site-nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: -1;
}
.site-nav__dropdown-menu a {
  display: block;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-md);
  border-bottom: none;
  transition: color 0.2s;
}
.site-nav__dropdown-menu a:hover,
.site-nav__dropdown-menu a.is-active {
  color: var(--red);
}


/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 28px 32px;
  font-size: 14px;
  line-height: 1.65;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.site-footer h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.site-footer__brand .logo {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.site-footer__bottom {
  max-width: 1280px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 10px; }
}

/* ============================== LAYOUT ============================== */
.inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.inner--narrow { max-width: 860px; }
.inner--wide { max-width: 1280px; }

section { position: relative; }

.section-pad { padding: 112px 0; }
.section-pad-sm { padding: 84px 0; }

/* ============================== TYPE ============================== */
.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--mute { color: var(--text-lt); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--text); }

.display {
  font-family: var(--serif);
  font-size: clamp(56px, 8.5vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}
.display--sm {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--text-md);
  max-width: 640px;
}
.body-md { font-size: 16px; line-height: 1.75; color: var(--text-md); }
.body-sm { font-size: 14px; line-height: 1.7; color: var(--text-md); }

.text-red { color: var(--red); }
.text-teal { color: var(--teal); }
.text-mute { color: var(--text-lt); }

.serif { font-family: var(--serif); font-weight: 400; }

/* ============================== CARDS ============================== */
.card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 32px;
}
.card--flat {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: none;
}
.card--red-border {
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
}
.card--teal-border {
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
}

/* ============================== LOGO MARKS ============================== */
.logo-colopro {
  font-family: var(--logo);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.logo-colopro .c { color: var(--teal); }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dk); }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(0,0,0,0.15); }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-md); }
.btn--ghost:hover { color: var(--red); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================== SECTION HEAD ============================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 48px;
  flex-wrap: wrap;
}
.section-head__right {
  max-width: 440px;
  color: var(--text-md);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================== UTIL ============================== */
.hairline { height: 1px; background: rgba(0,0,0,0.08); border: 0; margin: 0; }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: middle;
}


.placeholder-img {
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.03) 0 8px,
    rgba(0,0,0,0.05) 8px 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--text-lt);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================== REVEAL ============================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================== HERO VARIANTS ============================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 120px 0 96px;
}
.hero__rings::before,
.hero__rings::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__rings::before {
  top: 8%; left: 40%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(193,39,45,0.05) 0%, transparent 65%);
}
.hero__rings::after {
  bottom: -10%; right: 8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,157,143,0.04) 0%, transparent 65%);
}

/* ============================== SUB HEADER ============================== */
.page-header {
  background: var(--bg-alt);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* ============================== SCROLLBAR ============================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: rgba(193, 39, 45, 0.25);
  border-radius: 5px;
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: rgba(193, 39, 45, 0.4); }
/* Firefox */
html { scrollbar-color: rgba(193, 39, 45, 0.25) var(--bg-alt); scrollbar-width: thin; }

/* ============================== HAMBURGER ============================== */
.site-nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  z-index: 101;
  position: relative;
}
.site-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-nav__burger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.site-nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.site-nav__burger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.site-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 99;
}
body.nav-open .site-nav__overlay { display: block; }
body.nav-open { overflow: hidden; }


/* ============================== RESPONSIVE ============================== */
@media (max-width: 840px) {
  .section-pad { padding: 72px 0; }
  .site-nav__inner { padding: 12px 20px; gap: 16px; }
  .site-nav__links { gap: 4px 14px; }
  .site-nav__links a { font-size: 13px; }
  .hero { padding: 80px 0 64px; }
  .page-header { padding: 80px 0 56px; }
}

@media (max-width: 768px) {
  .site-nav__burger { display: block; }
  .site-nav__links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(241, 239, 233, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 28px 40px;
    gap: 0;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links > a,
  .site-nav__dropdown > a {
    font-size: 16px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .site-nav__links > a.is-active,
  .site-nav__dropdown > a.is-active {
    border-bottom-color: var(--red) !important;
  }
  .site-nav__dropdown { width: 100%; }
  .site-nav__chevron { display: none; }
  .site-nav__dropdown-menu {
    position: static;
    transform: none;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
  }
  .site-nav__dropdown-menu::before { display: none; }
  .site-nav__dropdown:hover .site-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
  .site-nav__dropdown-menu a {
    padding: 10px 0 10px 20px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 48px 0; }
  .inner { padding: 0 18px; }
  .hero { padding: 64px 0 48px; }
  .page-header { padding: 64px 0 40px; }
}
