/* Viastark – v2 (1-pager) */
:root{
  --bg:#ffffff;
  --soft:#f3f8fc;
  --soft2:#edf5fb;
  --text:#1f2937;
  --muted:#5b6778;
  --line:#e6edf5;

  --brand:#147fc8;
  --brand2:#0f66a6;

  --shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;
  --gap: 22px;

  --headerH: 64px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{
  width: min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

section{ scroll-margin-top: calc(var(--headerH) + 14px); }

.justify{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  background:#ffffff !important;
  border-bottom: 1px solid #d7e2ee;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  min-height: var(--headerH);
}
.brand-logo{ height:38px; width:auto; }

.site-nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav-link{
  font-weight:700;
  color:#000000;
  opacity:0.9;
  padding:8px 10px;
  border-radius:10px;
}
.nav-link:hover{ background:var(--soft2); opacity:1; }

.header-cta{
  background:var(--brand);
  color:white;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  box-shadow: 0 10px 18px rgba(20,127,200,0.22);

  -webkit-text-stroke: 0.35px rgba(0,0,0,0.35);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.18),
    0 0 1px rgba(0,0,0,0.35);
}
.header-cta:hover{ background:var(--brand2); }

.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  padding:10px;
  border-radius:12px;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#1f3a56;
  margin:5px 0;
}

/* Hero */
.hero{
  position:relative;
  padding: 64px 0 36px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.80) 48%, rgba(255,255,255,0.35) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner{ position:relative; }
.hero-grid{
  display:grid;
  grid-template-columns: 13fr 7fr;
  gap: var(--gap);
  align-items: stretch;
}
.hero-card{
  background: rgba(255,255,255,0.92);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-kicker{
  color: var(--brand2);
  font-weight:900;
  letter-spacing:0.3px;
  font-size:13px;
  margin-bottom:10px;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height:1.08;
}

.hero-proof{
  margin: 10px 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  border:1px solid var(--line);
  color:#233348;
}
.hero-proof-gap{ height:8px; }

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight:900;
  border:1px solid transparent;
}
.btn-primary{
  background: var(--brand);
  color:white;
  box-shadow: 0 10px 18px rgba(20,127,200,0.22);
}
.btn-primary:hover{ background: var(--brand2); }
.btn-ghost{
  background:white;
  border:1px solid var(--line);
  color:#1f3a56;
}
.btn-ghost:hover{ background: var(--soft2); }
.btn-sm{ padding: 10px 12px; border-radius: 12px; font-weight:800; }

/* hero visual */
.hero-visual{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(20,127,200,0.18), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(20,127,200,0.22), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.25)),
    url("assets/hero-visual.png");
  background-size: cover;
  background-position: center;
  min-height: 280px;
}
.hero-visual-inner{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.65) 75%, rgba(255,255,255,0.85) 100%);
}
.hero-visual-badge{
  display:inline-flex;
  width: fit-content;
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  color:#1f3a56;
}
.hero-visual-sub{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{ padding: 52px 0; }
.section-compact{ padding: 34px 0; }
.section-soft{ background: var(--soft); }

.section-head{ margin-bottom: 18px; }
.section-head h2{ margin:0 0 6px; font-size:30px; }
.muted{ color: var(--muted); }

.h2{ margin:0 0 10px; font-size: 28px; }
.h3{ margin:0 0 10px; font-size: 18px; color:#1f3a56; }

/* Layout blocks */
.split{
  display:grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--gap);
  align-items:start;
}
.note-card{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.checklist{ margin:0; padding-left:18px; }
.longtext{ margin-top: 14px; color:#2a3a50; }
.longtext p{ margin: 10px 0; }

/* Cards */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.card h3{ margin: 10px 0 8px; font-size: 18px; color:#1f3a56; }
.card p{ margin:0; color: var(--muted); }
.icon-badge{
  width:40px; height:40px;
  border-radius: 14px;
  background: var(--soft2);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
}

/* Panels (75/25) */
.two-cols{
  display:grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--gap);
  margin-top: 18px;
}
.panel{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.bullets{
  margin:0;
  padding-left:18px;
  color:#2a3a50;
}
.bullets li{ margin: 6px 0; }
.bullets-compact{ font-size: 14px; }


/* Experience list */
.ref-card{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.ref-card-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom: 10px;
}
.ref-list{
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
}
.ref-row{
  display:grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.ref-row:nth-child(even){ background: var(--soft2); }
.ref-head{
  background: #ffffff;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}
.ref-obj{ color:#20324a; font-weight: 900; }
.ref-client{ color:#3a516e; font-weight: 400; }
.ref-head .ref-client{ font-weight: 900; }

/* collapsed: show 10 + header */
.ref-list:not(.expanded) .ref-row:nth-child(n+12){ display:none; }

/* expanded remains scrollable */
.ref-list.expanded{
  max-height: 380px;
  overflow:auto;
}

/* About */
.about-text{
  background:white;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

/* Contact */
.contact-grid{
  display:flex;
  gap: var(--gap);
}
.contact-grid > .contact-card{ flex: 1 1 0; min-width: 0; }
.contact-card{
  background:white;
  height: 100%;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.contact-item{ margin: 10px 0; }
.contact-label{ display:block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-link{ font-weight:900; color: var(--brand2); }
.contact-link:hover{ text-decoration: underline; }
.contact-value{ color:#2a3a50; }

/* Decorative shapes */
.shapes{ position:relative; height:0; }
.shape{ position:absolute; border-radius: 18px; opacity: 0.32; }
.shape.s1{ width:64px; height:64px; background:#cfe8fb; right: 12px; top: -340px; }
.shape.s2{ width:44px; height:44px; background:#b9dcf6; right: 76px; top: -300px; }
.shape.s3{ width:88px; height:88px; background:#e4f2ff; right: 18px; top: -240px; }

/* Footer */
.site-footer{
  background:#0f3b66;
  color:white;
  padding: 26px 0;
  margin-top: 18px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.footer-logo-wrap{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 12px;
  width: fit-content;
}
.footer-logo{ height: 26px; width:auto; }
.footer-muted{ opacity:0.85; font-size:14px; margin-top: 10px; }
.footer-links{ display:flex; gap:14px; }
.footer-links a{ opacity:0.90; }
.footer-links a:hover{ opacity:1; text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .contact-grid{ display:grid; grid-template-columns: 1fr; }

  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .contact-grid{
  display:flex;
  gap: var(--gap);
}
.contact-grid > .contact-card{ flex: 1 1 0; min-width: 0; }
  .two-cols{ grid-template-columns: 1fr; }
  .ref-row{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ min-height: 220px; }
}
@media (max-width: 760px){
  .site-nav{ display:none; }
  .nav-toggle{ display:block; }
  .site-nav.is-open{
    display:flex;
    position:absolute;
    top:64px;
    right:20px;
    left:20px;
    flex-direction:column;
    gap:6px;
    background:white;
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .header-cta{ display:none; }
  .cards-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 54px 0 34px; }
  .hero-card{ padding: 18px; }
}


body.site-bg{
  position: relative;
}
body.site-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("assets/site-bg.svg") center/cover no-repeat;
  opacity: 0.46;
  pointer-events: none;
  z-index: -1;
}


/* Prevent overflow on narrow screens */
.ref-obj, .ref-client, .card p, .about-text, .longtext{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact cards subtle grey background */
.contact-card{
  background: #f7fafc;
}

.contact-soft{ background: #f6f7f9; }

.h3-sub{ font-weight:700; color: var(--muted); font-size: 13px; }


/* Photo background sections */
.section-photo{
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.78);
  pointer-events:none;
}

.section-photo > .container{
  position: relative;
  z-index: 1;
}

/* Specific images */
.section-photo-teenused{ background-image: image-set(url("assets/bg-teenused.webp") type("image/webp"), url("assets/bg-teenused.jpg") type("image/jpeg"));
}
.section-photo-ettevottest{ background-image: image-set(url("assets/bg-ettevottest.webp") type("image/webp"), url("assets/bg-ettevottest.jpg") type("image/jpeg"));
}

/* Mobile: disable fixed attachment for performance */
@media (max-width: 980px){
  .section-photo{ background-attachment: scroll; }
  .section-photo::before{ background: rgba(255,255,255,0.86); }
}

.ref-head .ref-obj, .ref-head .ref-client{ text-decoration: underline; text-underline-offset: 4px; }

#ettevottest .tagline{ color: #000000; opacity: 1; }
