/* =========================================================
   TNMinit s.r.o. — Stylesheet
   Palette: deep navy + warm gold, on clean neutrals
   ========================================================= */

:root {
  --navy-900: #081A2C;
  --navy-800: #0B2239;
  --navy-700: #0F3050;
  --navy-600: #14406A;
  --gold-500: #C8A45C;
  --gold-400: #D8BC7E;
  --gold-200: #EADAB6;
  --slate-500: #5A6B7B;
  --slate-400: #7B8A98;
  --cloud-100: #F5F7FA;
  --cloud-200: #E8ECF1;
  --white: #FFFFFF;
  --ink: #0B2239;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 26, 44, .06);
  --shadow-md: 0 18px 45px rgba(8, 26, 44, .12);
  --shadow-lg: 0 30px 70px rgba(8, 26, 44, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: .95rem 1.6rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: var(--btn-pad);
  border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(200, 164, 92, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(200, 164, 92, .45); }
.btn-line { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-line:hover { border-color: var(--gold-400); color: var(--gold-200); }
.btn-ghost { border-color: var(--cloud-200); color: var(--navy-800); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-200));
  z-index: 1000;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: .55rem 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); transition: color .35s var(--ease); }
.site-header.scrolled .brand { color: var(--navy-800); }
.brand-mark { display: inline-flex; color: var(--gold-500); }
.brand-text { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.brand-suffix { color: var(--gold-500); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: rgba(255, 255, 255, .9); font-weight: 500; font-size: .95rem; position: relative; transition: color .25s var(--ease); }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--navy-700); }
.nav-cta { color: var(--navy-800) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 950; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  transform: scale(1.08);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.16) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(11, 34, 57, .55), transparent 60%),
    linear-gradient(180deg, rgba(8, 26, 44, .78), rgba(8, 26, 44, .88));
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero .eyebrow { color: var(--gold-400); }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02; margin-bottom: 1.6rem;
  letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:last-child { color: var(--gold-400); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 640px; color: rgba(255, 255, 255, .86); margin-bottom: 2.2rem; }
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 1.8rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--gold-400); line-height: 1; }
.stat-label { font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .72); margin-top: .5rem; }

.scroll-hint { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--gold-400); border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-800); color: rgba(255, 255, 255, .9); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .02em; }
.marquee-track span:nth-child(even) { color: var(--gold-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.about-badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--navy-800); color: var(--white);
  padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.about-badge-num { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold-400); }
.about-badge-label { font-size: .74rem; letter-spacing: .05em; color: rgba(255, 255, 255, .75); }
.about-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 1.3rem; }
.about-body p { color: var(--slate-500); margin-bottom: 1.1rem; max-width: 56ch; }
.about-points { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.about-points li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--navy-800); }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-200); color: var(--navy-800); font-size: .8rem; font-weight: 700; flex: 0 0 auto; }

/* ---------- Section head ---------- */
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-sub { color: var(--slate-500); font-size: 1.06rem; }
.section-head.light h2, .section-head.light .eyebrow { color: var(--white); }
.section-head.light .eyebrow { color: var(--gold-400); }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; background: var(--white);
  border: 1px solid var(--cloud-200); border-radius: var(--radius);
  padding: 2.2rem 1.8rem 2rem; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-200));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-index { position: absolute; top: 1.3rem; right: 1.5rem; font-family: var(--font-serif); font-size: 1.1rem; color: var(--cloud-200); }
.card:hover .card-index { color: var(--gold-400); }
.card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--navy-800); color: var(--gold-400); margin-bottom: 1.3rem; transition: background .4s var(--ease); }
.card:hover .card-icon { background: var(--navy-700); }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; color: var(--navy-800); }
.card p { color: var(--slate-500); font-size: .96rem; }

/* ---------- Approach ---------- */
.approach { position: relative; color: var(--white); background: var(--navy-800); overflow: hidden; }
.approach-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(200, 164, 92, .18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(20, 64, 106, .5), transparent 60%);
}
.approach .container { position: relative; z-index: 2; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding: 2rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: transform .4s var(--ease), background .4s var(--ease); }
.step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-500); color: var(--gold-400); font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: rgba(255, 255, 255, .74); font-size: .93rem; }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sectors-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.1rem; }
.sectors-copy > p { color: var(--slate-500); max-width: 52ch; }
.sector-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.sector-tags span { padding: .55rem 1.1rem; border-radius: 100px; background: var(--cloud-100); border: 1px solid var(--cloud-200); font-size: .9rem; font-weight: 500; color: var(--navy-700); transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.sector-tags span:hover { background: var(--navy-800); color: var(--gold-200); transform: translateY(-2px); }
.sectors-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit: cover; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.cta-inner { text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: .8rem; }
.cta-inner p { color: rgba(255, 255, 255, .8); margin-bottom: 2rem; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--slate-500); max-width: 44ch; margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin-bottom: 1.6rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cloud-100); color: var(--gold-500); flex: 0 0 auto; }
.ci-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--slate-400); margin-bottom: .15rem; }
.contact-list a { font-weight: 600; color: var(--navy-800); transition: color .25s var(--ease); }
.contact-list a:hover { color: var(--gold-500); }
.map-link { font-weight: 600; color: var(--gold-500); }
.map-link:hover { text-decoration: underline; }

.contact-form { background: var(--cloud-100); border: 1px solid var(--cloud-200); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy-800); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid var(--cloud-200); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200, 164, 92, .18); }
.field input.invalid, .field textarea.invalid { border-color: #d1495b; box-shadow: 0 0 0 3px rgba(209, 73, 91, .15); }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #2f855a; }
.form-status.err { color: #d1495b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand-text { color: var(--white); font-size: 1.5rem; }
.footer-brand p { margin-top: .9rem; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-400); margin-bottom: 1.1rem; }
.footer-col a { display: block; margin-bottom: .6rem; font-size: .95rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold-400); }
.footer-legal { font-size: .9rem; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--navy-800); color: var(--gold-400);
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--navy-700); }

/* ---------- Reveal on scroll (CSS transitions + IntersectionObserver) ---------- */
.reveal-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal-up.in-view { opacity: 1; transform: none; }
/* Fallback: if IntersectionObserver is unavailable or motion is reduced, show everything. */
.no-io .reveal-up { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal-up { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .sectors-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .sectors-media { order: -1; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem;
    background: var(--navy-800);
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: rgba(255, 255, 255, .9) !important; font-size: 1.1rem; }
  .site-header.scrolled .nav a { color: rgba(255, 255, 255, .9); }
  .nav-cta { color: var(--navy-800) !important; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge { right: 12px; }
  .hero { min-height: auto; padding-top: 8rem; }
}
