:root {
  --dark: #23293a;
  --green: #4a6fa5;
  --green-light: #6b8fbf;
  --green-pale: #e8eef7;
  --accent: #c9d8ed;
  --sand: #f5f6f8;
  --text: #23293a;
  --muted: #7a8799;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Calibri', 'Trebuchet MS', sans-serif; background: var(--sand); color: var(--text); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 4rem; background: rgba(35,41,58,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(74,111,165,0.25); }
.logo { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: 1.45rem; color: var(--accent); letter-spacing: 0.03em; text-decoration: none; }
.logo span { color: var(--green-light); font-weight: 400; font-size: 0.85em; }
nav ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 4rem 4rem; background: var(--dark); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(74,111,165,0.20) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 10% 80%, rgba(107,143,191,0.10) 0%, transparent 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(107,143,191,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(107,143,191,0.07) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; max-width: 800px; }
.hero-tag { display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-light); border: 1px solid rgba(107,143,191,0.5); padding: 0.35rem 1rem; border-radius: 2px; margin-bottom: 2rem; animation: fadeUp 0.8s ease both; }
h1 { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: clamp(2.8rem, 6vw, 5rem); color: #fff; line-height: 1.08; margin-bottom: 1.5rem; animation: fadeUp 0.8s 0.15s ease both; }
h1 em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; max-width: 520px; margin-bottom: 3rem; animation: fadeUp 0.8s 0.3s ease both; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--green); color: #fff; padding: 0.9rem 2rem; border-radius: 3px; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.04em; transition: background 0.2s, transform 0.2s; animation: fadeUp 0.8s 0.45s ease both; }
.btn:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid rgba(107,143,191,0.6); color: var(--accent); margin-left: 1rem; }
.btn-outline:hover { background: rgba(74,111,165,0.25); }
.scroll-hint { position: absolute; bottom: 2.5rem; left: 4rem; display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.3); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-line { width: 40px; height: 1px; background: rgba(107,143,191,0.5); }

/* SECTIONS */
.section { padding: 4rem 4rem; }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
h2 { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 2rem; max-width: 560px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; background: rgba(74,111,165,0.07); border: 1px solid rgba(74,111,165,0.12); }
.service-card { background: var(--sand); padding: 2.5rem; transition: background 0.25s; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.service-card:hover { background: #fff; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.4rem; }
.service-card h3 { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--text); }
.service-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ABOUT */
.about-strip { background: var(--dark); padding: 4rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-strip h2 { color: #fff; margin-bottom: 1.5rem; }
.about-strip p { color: rgba(255,255,255,0.55); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.stat-num { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: 2.8rem; color: var(--accent); line-height: 1; }
.stat-label { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin-top: 0.3rem; letter-spacing: 0.05em; }
.about-img-wrap { position: relative; }
.about-img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(74,111,165,0.20), rgba(107,143,191,0.10)); border: 1px solid rgba(74,111,165,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.about-img-placeholder::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(107,143,191,0.05) 0px, rgba(107,143,191,0.05) 2px, transparent 2px, transparent 14px); }
.badge { position: absolute; bottom: -1rem; right: -1rem; background: var(--green); color: #fff; padding: 1.2rem 1.5rem; border-radius: 4px; text-align: center; font-size: 0.8rem; letter-spacing: 0.05em; }
.badge strong { display: block; font-size: 2rem; font-family: 'Calibri', 'Trebuchet MS', sans-serif; line-height: 1; }

/* TEAM */
.section-white { background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 1rem; }
.team-card { border: 1px solid rgba(74,111,165,0.12); border-radius: 6px; padding: 2.5rem; background: #fff; transition: box-shadow 0.25s, transform 0.25s; }
.team-card:hover { box-shadow: 0 12px 40px rgba(74,111,165,0.10); transform: translateY(-3px); }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-light)); display: flex; align-items: center; justify-content: center; font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem; }
.team-card h3 { font-family: 'Calibri', 'Trebuchet MS', sans-serif; font-size: 1.35rem; margin-bottom: 0.3rem; color: var(--text); }
.team-role { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 1.2rem; }
.team-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.skill-tag { background: var(--green-pale); color: var(--green); font-size: 0.78rem; padding: 0.25rem 0.75rem; border-radius: 20px; }
.team-contact a { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 0.4rem; transition: color 0.2s; }
.team-contact a:hover { color: var(--green); }

/* CONTACT */
.contact-section { background: var(--dark); padding: 4rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.contact-section h2 { color: #fff; margin-bottom: 0; }
.contact-section .section-label { color: var(--green-light); }
.contact-info { margin-top: 2rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.contact-icon { font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.contact-row-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.3rem; }
.contact-row-val { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.6; }
.contact-row-val a { color: var(--accent); text-decoration: none; }
.contact-row-val a:hover { text-decoration: underline; }
.map-placeholder { background: rgba(74,111,165,0.06); border: 1px solid rgba(74,111,165,0.2); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 320px; color: rgba(255,255,255,0.3); font-size: 0.88rem; text-align: center; padding: 2rem; }
.map-placeholder .map-icon { font-size: 3rem; }
.map-placeholder a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; border: 1px solid rgba(107,143,191,0.4); padding: 0.5rem 1.2rem; border-radius: 2px; margin-top: 0.5rem; transition: background 0.2s; }
.map-placeholder a:hover { background: rgba(74,111,165,0.15); }

/* FOOTER */
footer { background: #161b27; padding: 2rem 4rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(107,143,191,0.12); }
footer p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }
footer a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-logo { font-family: 'Calibri', 'Trebuchet MS', sans-serif; color: rgba(255,255,255,0.35); font-size: 1.1rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 1.5rem 2rem; gap: 1.2rem; }
  .nav-toggle { display: block; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .section { padding: 4rem 1.5rem; }
  .about-strip, .contact-section { padding: 4rem 1.5rem; grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
  .btn-outline { display: none; }
  .scroll-hint { left: 1.5rem; }
}

/* HERO PILT PAREMAL */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
}
.hero-content {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  padding-right: 2rem;
}
.hero-image-right {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-image-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 30%);
  z-index: 1;
}
.hero-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.75;
}
.scroll-hint {
  grid-column: 1;
  grid-row: 2;
  position: static;
  margin-top: 2rem;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .hero-image-right {
    display: none;
  }
  .hero-content {
    padding-right: 0;
  }
  .scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 1.5rem;
  }
}

/* HERO PILDI SUURUS JA PAIGUTUS */
.hero {
  display: grid !important;
  grid-template-columns: 55% 45% !important;
  min-height: 85vh !important;
  padding: 6rem 0 0 4rem !important;
  align-items: center;
}
.hero-content {
  padding-right: 2rem;
}
.hero-image-right {
  height: 85vh;
  min-height: unset;
}
.hero-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  opacity: 0.92;
}
.scroll-hint {
  position: absolute !important;
  bottom: 1.5rem !important;
  left: 4rem !important;
  grid-column: unset !important;
  grid-row: unset !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

/* LOGO PILT */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* MEIST SEKTSIOONI PILT */
.about-real-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
}

/* ALUMISE PILDI SERVA HÄGUSTUS */
.about-img-wrap {
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 35%);
  z-index: 1;
  border-radius: 4px;
  pointer-events: none;
}
