/* =========================================================
   TMIT bv — stylesheet
   Colors derived from the TMIT logo:
     #1F1A1C  dark / near-black
     #5C1F29  burgundy
     #C8102E  bright red (accent)
   ========================================================= */

:root {
  --c-ink: #1f1a1c;
  --c-ink-2: #2b2327;
  --c-burgundy: #5c1f29;
  --c-red: #c8102e;
  --c-red-dark: #a60d26;
  --c-bg: #ffffff;
  --c-bg-alt: #faf7f7;
  --c-bg-dark: #14101180;
  --c-muted: #6b6168;
  --c-line: #ececec;
  --c-line-dark: #2a2226;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(31, 26, 28, 0.06);
  --shadow-md: 0 12px 30px -10px rgba(31, 26, 28, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(92, 31, 41, 0.35);

  --ff-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ff-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --container: 1160px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-red-dark); }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff; padding: .6em 1em;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; border-radius: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--ff-sans);
  font-size: .98rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-red); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(200, 16, 46, .6);
}
.btn-primary:hover { background: var(--c-red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem;
  color: var(--c-ink); letter-spacing: .02em;
}
.brand:hover { color: var(--c-ink); }
.brand img { height: 34px; width: auto; }
.brand-dot { color: var(--c-red); }
.nav { display: flex; gap: 1.8rem; }
.nav a {
  color: var(--c-ink-2); font-weight: 500; font-size: .95rem;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--c-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--c-ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0; position: relative;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--c-ink);
  margin: 5px auto; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: .25rem;
  padding: .5rem 24px 1.4rem;
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  padding: .85rem .25rem;
  color: var(--c-ink); font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  background: linear-gradient(170deg, #fff 0%, #faf4f5 60%, #f3e7ea 100%);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(200, 16, 46, .18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(92, 31, 41, .18), transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(31, 26, 28, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 26, 28, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; max-width: 920px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem;
  font-weight: 600; color: var(--c-burgundy);
  margin: 0 0 1.2em;
}
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(95deg, var(--c-burgundy), var(--c-red) 70%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--c-ink-2);
  max-width: 720px;
  margin-bottom: 2em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 26, 28, .1);
  max-width: 680px;
}
.hero-meta li { display: flex; flex-direction: column; gap: .15rem; }
.hero-meta strong {
  font-family: var(--ff-display);
  font-size: 1.7rem; color: var(--c-ink);
  font-weight: 700;
}
.hero-meta span { font-size: .9rem; color: var(--c-muted); }

/* ---------- Section base ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: .3em; }
.section-head .sub { color: var(--c-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Offers ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.offer {
  position: relative;
  background: #fff;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.offer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #e0d5d8;
}
.offer-featured {
  background: linear-gradient(160deg, var(--c-ink) 0%, #2c2025 55%, var(--c-burgundy) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.offer-featured h3, .offer-featured .offer-cta { color: #fff; }
.offer-featured p { color: rgba(255, 255, 255, .82); }
.offer-featured .bullets li { color: rgba(255, 255, 255, .88); }
.offer-featured .bullets li::before { background: var(--c-red); }
.offer-featured .offer-tag { background: var(--c-red); color: #fff; }

.offer-tag {
  display: inline-block;
  background: #f3e7ea;
  color: var(--c-burgundy);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4em .8em; border-radius: 999px;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}
.offer h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.offer p { line-height: 1.65; }
.bullets { margin: 1rem 0 1.5rem; }
.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55rem;
  color: var(--c-ink-2);
}
.bullets li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--c-red);
}
.offer-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-red);
  align-self: flex-start;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.offer-cta:hover { border-color: currentColor; transform: translateX(3px); }
.offer-featured .offer-cta { color: #fff; }
.offer-featured .offer-cta:hover { color: #fff; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.pillar {
  background: #fff;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-3px); border-color: var(--c-red); }
.pillar-num {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700; font-size: .9rem;
  color: var(--c-red);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pillar p { color: var(--c-muted); font-size: .95rem; margin: 0; line-height: 1.6; }

/* ---------- Clients ---------- */
.clients {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .7rem 1rem;
  max-width: 900px; margin: 0 auto;
}
.clients li {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: .7em 1.2em;
  border-radius: 999px;
  font-weight: 500;
  color: var(--c-ink-2);
  font-size: .95rem;
  transition: all .2s var(--ease);
}
.clients li:hover {
  border-color: var(--c-red);
  color: var(--c-red);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(165deg, var(--c-ink) 0%, #291f22 60%, var(--c-burgundy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: ''; position: absolute;
  right: -10%; top: -30%; width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(200, 16, 46, .3), transparent 65%);
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}
.contact-copy h2 { color: #fff; }
.contact-copy .eyebrow { color: #f0b4bc; }
.contact-copy .sub { color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.contact-hint { color: rgba(255, 255, 255, .7); margin-top: 1.2rem; font-size: .95rem; }
.contact-hint a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact-hint a:hover { border-color: #fff; }

.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 2rem; border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.contact-card h3 {
  font-size: 1.25rem; margin-bottom: 1.5rem; color: #fff;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.contact-card dl { margin: 0; }
.contact-card dl > div {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-card dl > div:last-child { border: 0; padding-bottom: 0; }
.contact-card dt {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); font-weight: 600;
}
.contact-card dd {
  margin: 0; color: #fff; font-weight: 500;
}
.contact-card a { color: #fff; border-bottom: 1px dotted rgba(255, 255, 255, .4); }
.contact-card a:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, .7);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand strong { color: #fff; font-family: var(--ff-display); display: block; font-size: 1.05rem; }
.footer-brand span { font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; justify-content: center; }
.footer-nav a { color: rgba(255, 255, 255, .7); }
.footer-nav a:hover { color: #fff; }
.copyright { text-align: right; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .4);
  padding: 1.1rem 1.3rem;
  animation: slideUp .4s var(--ease);
  max-width: 800px; margin: 0 auto;
}
.cookie-inner {
  display: flex; align-items: center; gap: 1.4rem;
  flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .85); flex: 1; min-width: 240px; }
.cookie-banner a { color: #fff; border-bottom: 1px dotted rgba(255, 255, 255, .5); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 780px; margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 24px;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.legal .updated { color: var(--c-muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--c-ink-2); line-height: 1.75; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1.2em; list-style: disc; }
.legal ul li { margin-bottom: .4em; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0;
  font-size: .93rem;
}
.legal th, .legal td {
  text-align: left; padding: .8em 1em;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.legal th { background: var(--c-bg-alt); font-weight: 600; }
.legal a.back { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.4rem; }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-meta { grid-template-columns: 1fr; }
  .offer { padding: 1.8rem 1.5rem; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
