/* ==========================================================================
   Taheon — site styles
   Design tokens live in :root. Change colours/fonts here, not inline.
   ========================================================================== */

:root {
  --navy: #000827;          /* dark sections, headings */
  --blue: #3d68f5;          /* primary accent, buttons */
  --blue-bright: #364bfe;   /* highlight text */
  --lavender: #ebebff;      /* light gradient bands */
  --lavender-border: rgba(189, 190, 255, .8);
  --bg: #fffefc;            /* page background */
  --white: #ffffff;
  --grey-100: #f4f4f4;
  --grey-200: #ebebeb;
  --grey-500: #6b6f80;
  --text: #000827;
  --text-muted: #4a4f63;

  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--blue); }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.icon { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; white-space: nowrap; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; font-variation-settings: "FILL" 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #2f58e0; }
.btn-dark { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(0, 8, 39, .25); }
.btn-light { background: var(--grey-200); color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 14px 20px; font-size: 19px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { font-size: 20px; font-variation-settings: "FILL" 0; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; padding: 1px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 254, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 90px; max-width: 1200px; }
.site-header .logo img { height: 22px; width: auto; }
.main-nav { display: flex; gap: 52px; }
.main-nav a { font-weight: 500; font-size: 16px; color: var(--navy); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.header-cta { font-weight: 600; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle .icon { font-size: 28px; }

/* ---------- Home: hero slider ---------- */
.hero-slider { position: relative; margin: 0 auto; max-width: 1272px; padding: 0 16px; }
.slides { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--navy); height: 600px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-text { display: flex; flex-direction: column; justify-content: center; padding: 0 64px 0 110px; color: var(--white); }
.slide-text h1 { font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.slide-text p { font-size: 21px; color: rgba(255, 255, 255, .75); margin-bottom: 24px; max-width: 420px; line-height: 1.45; }
.slide-media { position: relative; overflow: hidden; background: linear-gradient(180deg, #000 0%, #000827 70%, #00125e 100%); }
.slide-media video, .slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrows { position: absolute; left: 126px; bottom: 92px; display: flex; gap: 20px; z-index: 2; }
.slider-arrows button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.slider-arrows img { width: 40px; height: 40px; }

/* ---------- Logo marquee ---------- */
.logo-marquee { overflow: hidden; padding: 44px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.logo-track img { height: 46px; width: auto; }
.logo-track img[src*="microsoft-365"] { height: 72px; }
.logo-track img[src*="ubiquiti"] { height: 54px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: services (sticky intro + dark cards) ---------- */
.services-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0 40px; }
.services-intro { position: sticky; top: 140px; align-self: start; }
.section-title { font-size: 40px; font-weight: 600; margin-bottom: 20px; }
.services-intro p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 48px; }
.service-stack { display: flex; flex-direction: column; gap: 24px; }
.service-card-dark { background: var(--navy); color: var(--white); border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--lavender-border); }
.service-card-dark h3 { font-size: 28px; margin: 32px 0 32px; }
.service-card-dark p { color: rgba(255, 255, 255, .9); margin-bottom: 20px; line-height: 1.75; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); }
.icon-badge .icon { font-size: 22px; }

/* ---------- Teenused: light card grid ---------- */
.page-intro { text-align: center; padding: 80px 0 48px; background: linear-gradient(180deg, var(--lavender) 0%, var(--bg) 100%); }
.page-intro p:not(.eyebrow) { max-width: 700px; margin: 0 auto; color: var(--text-muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding-bottom: 80px; max-width: 1200px; }
.service-card { border: 1px solid var(--blue); border-radius: var(--radius-md); padding: 32px; background: var(--white); }
.service-card h3 { font-size: 28px; margin: 24px 0 32px; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.75; }
.service-card .icon-badge { width: 52px; height: 52px; }
.service-card .icon-badge .icon { font-size: 28px; }

/* ---------- Generic page hero (text + image) ---------- */
.page-hero { padding: 64px 0; }
.page-hero .container { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.page-hero h1 { font-size: 50px; font-weight: 700; margin-bottom: 20px; }
.page-hero h1.accent-all { color: var(--blue); }
.page-hero p { font-size: 22px; line-height: 1.4; margin-bottom: 24px; max-width: 440px; }
.page-hero .hero-img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero .hero-img.contain { object-fit: contain; aspect-ratio: auto; }

/* ---------- Feature band (chevron highlights) ---------- */
.feature-band { background: linear-gradient(180deg, var(--bg) 0%, var(--lavender) 100%); padding: 24px 0; }
.feature-band ul { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 56px; font-size: 20px; font-weight: 500; }
.feature-band li { display: flex; align-items: center; gap: 12px; }
.feature-band .icon { color: var(--blue); font-size: 36px; font-weight: 700; }

/* ---------- "Miks valida" dark three-column block ---------- */
.why { padding: 80px 0 64px; text-align: center; }
.why .section-title { max-width: 560px; margin: 0 auto 48px; }
.why-box { background: var(--navy); color: var(--white); border-radius: var(--radius-md); padding: 48px 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1360px; margin: 0 auto; }
.why-col { text-align: center; }
.why-col > .icon { font-size: 64px; color: var(--blue); }
.why-col h3 { font-family: var(--font-body); font-size: 18px; letter-spacing: 0; margin: 16px 0 12px; }
.why-col ul { text-align: left; color: rgba(255, 255, 255, .55); padding-left: 20px; max-width: 280px; margin: 0 auto; }
.why-col li + li { margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { padding: 64px 0 40px; text-align: center; }
.steps .section-title { max-width: 620px; margin: 0 auto 56px; }
.steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.step > .icon-badge { width: 76px; height: 76px; }
.step > .icon-badge .icon { font-size: 40px; }
.step h3 { font-family: var(--font-body); font-size: 18px; letter-spacing: 0; margin: 20px 0 16px; }
.step ul { list-style: none; padding: 0; text-align: left; color: var(--grey-500); max-width: 260px; margin: 0 auto; }
.step li { display: flex; gap: 12px; }
.step li + li { margin-top: 10px; }
.step li .icon { color: var(--blue); font-size: 20px; padding-top: 3px; }
.step-arrow { font-size: 36px; padding-top: 18px; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(180deg, var(--lavender) 0%, var(--bg) 100%); padding: 40px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1050px; }
.cta-band p { font-size: 18px; font-weight: 500; max-width: 680px; }
.cta-band strong { color: var(--blue-bright); font-weight: 600; }

/* ---------- Meist ---------- */
.team { padding: 80px 0; text-align: center; }
.team > .container > p:not(.eyebrow) { max-width: 660px; margin: 0 auto 48px; color: var(--text-muted); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: left; }
.team-member { background: var(--white); border-radius: var(--radius-md); padding: 0 0 24px; }
.team-member > img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; }
.team-member .body { padding: 0 8px; }
.team-member h3 { font-size: 20px; margin-bottom: 4px; }
.team-member .role { color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.team-member p:not(.role) { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.team-member .linkedin { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--lavender); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0; }
.values-intro { position: sticky; top: 140px; align-self: start; }
.values-intro p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 32px; }
.value-stack { display: flex; flex-direction: column; gap: 32px; }
.value-card { border: 1px solid var(--blue); border-radius: var(--radius-lg); padding: 32px; }
.value-card h3 { font-size: 26px; margin: 24px 0 32px; }
.value-card p { color: var(--text-muted); }

/* ---------- Kontakt ---------- */
.contact-hero { background: var(--navy); color: var(--white); padding: 80px 0; text-align: center; }
.contact-hero h1 { font-size: 64px; font-weight: 700; margin-bottom: 16px; }
.contact-hero > .container > p { color: rgba(255, 255, 255, .8); max-width: 520px; margin: 0 auto 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid > img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, .6); }
.contact-cards { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--white); color: var(--navy); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.contact-card .icon { color: var(--blue); font-size: 48px; font-variation-settings: "FILL" 0; }
.contact-card h2 { font-size: 26px; margin: 16px 0 12px; }
.legal { text-align: center; padding: 40px 0 80px; }
.legal hr { width: 200px; border: 0; border-top: 1px solid var(--grey-200); margin: 0 auto 24px; }
.legal h2 { font-size: 40px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 20px 20px; }
.footer-box { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 72px 40px 40px; text-align: center; }
.footer-box h2 { font-size: 56px; font-weight: 700; margin-bottom: 32px; }
.footer-box > p { margin-bottom: 36px; }
.footer-bottom { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 40px; }
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-social a:hover, .footer-bottom a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1239px) {
  .slide-text { padding: 0 40px 0 64px; }
  .slider-arrows { left: 80px; }
  .main-nav { gap: 32px; }
}
@media (max-width: 809px) {
  :root { --gutter: 16px; }
  .site-header .container { height: 64px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--grey-200); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 16px var(--gutter); border-top: 1px solid var(--grey-200); }

  .hero-slider { padding: 0; }
  .slides { border-radius: 0; height: 760px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .slide-text { padding: 48px 24px 24px; text-align: center; align-items: center; }
  .slide-text h1 { font-size: 38px; }
  .slide-text p { font-size: 18px; }
  .slider-arrows { left: auto; right: 16px; bottom: auto; top: 300px; }
  .slider-arrows button, .slider-arrows img { width: 34px; height: 34px; }

  .services-split, .values, .page-hero .container, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-intro, .values-intro { position: static; }
  .section-title { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero h1 { font-size: 40px; }
  .why-box { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 0; }
  .steps-row { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); padding: 0; justify-self: center; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .contact-hero h1 { font-size: 40px; }
  .footer-box { padding: 56px 20px 32px; }
  .footer-box h2 { font-size: 36px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .slide { transition: none; }
}
