/* IT-juhtimine Theme — main.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1c2b3a;
  --navy-mid: #253547;
  --blue: #4a7fa5;
  --blue-light: #6096bc;
  --accent: #b8cdd9;
  --accent-warm: #d4e4ee;
  --text: #1c2b3a;
  --text-muted: #7a8fa0;
  --surface: #f7f9fb;
  --white: #ffffff;
  --border: #e2eaf0;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(28,43,58,0.97);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.45rem;
  color: var(--white); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.82rem; font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,127,165,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -150px; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,205,217,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(184,205,217,0.1);
  color: var(--accent);
  border: 1px solid rgba(184,205,217,0.25);
  padding: 0.3rem 1rem;
  border-radius: 2px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.0;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 6px;
  font-weight: 400; font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); color: var(--white); }
.btn-outline {
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.85rem 2rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card-stack { position: relative; width: 340px; height: 380px; }
.hcard {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.hcard-main {
  width: 300px; top: 40px; left: 20px;
  background: rgba(74,127,165,0.14);
  border-color: rgba(74,127,165,0.25);
}
.hcard-float {
  width: 200px; top: 0; right: 0;
  background: rgba(184,205,217,0.1);
  border-color: rgba(184,205,217,0.2);
}
.hcard .stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.04em;
}
.hcard .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.45); font-weight: 300; }
.hcard-title {
  font-family: var(--font-head);
  color: var(--white); font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── SECTIONS ── */
section { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  max-width: 560px; font-weight: 300;
}

/* ── HOW IT WORKS ── */
.how { background: var(--surface); }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 4rem; }
.how-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.how-card:hover { box-shadow: 0 12px 40px rgba(74,127,165,0.12); transform: translateY(-4px); }
.how-num {
  font-family: var(--font-head); font-size: 4rem; font-weight: 700;
  color: var(--border); line-height: 1; margin-bottom: 1rem; letter-spacing: 0.04em;
}
.how-card h3 {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.how-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; font-weight: 300; }
.how-accent {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.how-card:hover .how-accent { transform: scaleX(1); }

/* ── ABOUT ── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #253547 0%, #4a7fa5 100%);
  height: 420px; display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder {
  font-family: var(--font-head); font-size: 6rem; font-weight: 700;
  color: rgba(255,255,255,0.07); letter-spacing: 0.1em; text-transform: uppercase;
}
.about-img-badge {
  position: absolute; bottom: 2rem; left: 2rem;
  background: var(--blue); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 8px;
  font-weight: 400; font-size: 0.9rem; letter-spacing: 0.03em;
}
.about-values { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.about-val {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem; background: var(--surface);
  border-radius: 8px; border-left: 2px solid var(--blue);
  font-size: 0.9rem; color: var(--text); font-weight: 300; line-height: 1.6;
}
.about-val::before { content: '→'; color: var(--blue); font-weight: 400; flex-shrink: 0; margin-top: 1px; }

/* ── SERVICES ── */
.services { background: var(--navy); }
.services .section-label { color: var(--accent); }
.services .section-title { color: var(--white); }
.services .section-sub { color: rgba(255,255,255,0.45); }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.svc-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 2rem;
  transition: background 0.25s, border-color 0.25s; cursor: default;
}
.svc-card:hover { background: rgba(74,127,165,0.1); border-color: rgba(74,127,165,0.22); }
.svc-icon {
  width: 48px; height: 48px; background: rgba(74,127,165,0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--blue-light); fill: none; stroke-width: 1.5; }
.svc-card h3 {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.6rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.svc-card p { color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.7; font-weight: 300; }
.svc-link {
  display: inline-block; margin-top: 1rem; color: var(--blue-light);
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.svc-link:hover { color: var(--accent); }
.services-cta { text-align: center; margin-top: 3rem; }
.btn-accent {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 0.9rem 2.25rem; border-radius: 6px;
  font-weight: 400; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-accent:hover { background: var(--blue-light); transform: translateY(-2px); color: var(--white); }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, #1c2b3a, #2e5875); padding: 80px 5%; text-align: center; }
.cta-band h2 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--white);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.cta-band p { color: rgba(255,255,255,0.5); max-width: 480px; margin: 0 auto 2rem; font-weight: 300; }
.cta-contacts { display: flex; gap: 3rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.cta-contact { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cta-contact strong { display: block; color: var(--white); font-size: 1.1rem; margin-top: 0.25rem; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 4rem; }
.price-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 2.25rem 1.75rem;
  background: var(--white); transition: box-shadow 0.25s, transform 0.25s; position: relative;
}
.price-card:hover { box-shadow: 0 12px 40px rgba(28,43,58,0.1); transform: translateY(-4px); }
.price-card.featured { border-color: var(--blue); background: #f2f7fb; }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 100px;
}
.price-name {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.price-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; }
.price-amount {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; color: var(--navy);
  margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.price-amount span { font-size: 0.9rem; font-weight: 300; color: var(--text-muted); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.price-features li {
  font-size: 0.88rem; color: var(--text-muted);
  padding-left: 1.4rem; position: relative; line-height: 1.5; font-weight: 300;
}
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 500; }

/* ── BLOG ── */
.blog { background: var(--surface); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.blog-card {
  background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(28,43,58,0.08); transform: translateY(-3px); }
.blog-img { height: 180px; background: linear-gradient(135deg, #253547, #4a7fa5); }
.blog-img-alt { background: linear-gradient(135deg, #1c2b3a, #5a8fa8); }
.blog-img-alt2 { background: linear-gradient(135deg, #2e4a62, #7ba5be); }
.blog-body { padding: 1.5rem; }
.blog-cat { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.blog-card h3 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--navy);
  line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
.blog-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 60px 5% 30px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--white);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { color: rgba(255,255,255,0.38); font-size: 0.85rem; line-height: 1.7; max-width: 260px; font-weight: 300; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--blue-light); color: var(--blue-light); }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.45); font-size: 0.87rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ── SINGLE POST ── */
.entry-content h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 2rem 0 0.75rem; color: var(--navy); }
.entry-content h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--blue); }
.entry-content a:hover { color: var(--blue-light); }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.entry-content blockquote {
  border-left: 3px solid var(--blue); padding-left: 1.5rem; margin: 2rem 0;
  color: var(--text-muted); font-style: italic;
}

/* ── HAMBURGER ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform 0.3s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  section { padding: 70px 5%; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-contacts { flex-direction: column; gap: 1.5rem; }
}
