/*
Theme Name: Strana.ee Classima Child
Theme URI: https://strana.ee/
Description: Strana.ee child theme for Classima. Project-specific presentation belongs here; vendor Classima files must never be edited directly.
Author: Strana.ee
Template: classima
Version: 0.2.0
Text Domain: strana-ee
*/

:root {
  --strana-ink: #0f1720;
  --strana-muted: #657382;
  --strana-blue: #1169b2;
  --strana-blue-dark: #0b4f8a;
  --strana-sky: #eaf4fc;
  --strana-surface: #f5f7f9;
  --strana-border: #e2e8ee;
  --strana-white: #ffffff;
  --strana-radius: 18px;
  --strana-shadow: 0 14px 40px rgba(15, 23, 32, 0.08);
}

.strana-home {
  background: var(--strana-white);
  color: var(--strana-ink);
  overflow: hidden;
}

.strana-home *,
.strana-home *::before,
.strana-home *::after {
  box-sizing: border-box;
}

.strana-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.strana-hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 82% 20%, rgba(17, 105, 178, 0.13), transparent 28%),
    radial-gradient(circle at 70% 88%, rgba(17, 105, 178, 0.08), transparent 25%),
    linear-gradient(135deg, #f8fbfe 0%, #ffffff 58%, #eef6fc 100%);
  border-bottom: 1px solid var(--strana-border);
}

.strana-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 52px;
  align-items: center;
}

.strana-eyebrow,
.strana-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--strana-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strana-eyebrow::before,
.strana-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.strana-hero h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.strana-hero__copy > p {
  max-width: 720px;
  margin: 0;
  color: #526170;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.strana-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 760px;
  margin-top: 30px;
  padding: 7px;
  border: 1px solid #d6e1e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 32, 0.08);
}

.strana-search input[type='search'] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 0 !important;
  outline: 0;
  background: transparent;
  color: var(--strana-ink);
  font-size: 16px;
  box-shadow: none !important;
}

.strana-search button {
  min-width: 120px;
  border: 0;
  border-radius: 11px;
  background: var(--strana-blue);
  color: #fff;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.strana-search button:hover { background: var(--strana-blue-dark); }

.strana-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.strana-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.strana-btn:hover { transform: translateY(-1px); }
.strana-btn--primary { background: var(--strana-blue); color: #fff !important; box-shadow: 0 9px 24px rgba(17,105,178,.22); }
.strana-btn--primary:hover { background: var(--strana-blue-dark); }
.strana-btn--ghost { background: #fff; color: var(--strana-ink) !important; border: 1px solid var(--strana-border); }
.strana-btn--light { background: #fff; color: #122234 !important; }

.strana-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #657382;
  font-size: 13px;
  font-weight: 650;
}

.strana-trustline span::before {
  content: '✓';
  margin-right: 6px;
  color: var(--strana-blue);
}

.strana-hero__panel {
  overflow: hidden;
  border: 1px solid rgba(17, 105, 178, .12);
  border-radius: 24px;
  background: #0f1f30;
  color: #fff;
  box-shadow: 0 24px 64px rgba(15, 31, 48, .20);
}

.strana-hero__panel-top {
  padding: 26px;
  background: linear-gradient(135deg, rgba(17,105,178,.95), rgba(11,79,138,.95));
}

.strana-hero__panel-top span,
.strana-hero__panel-top strong { display: block; }
.strana-hero__panel-top span { margin-bottom: 6px; opacity: .78; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.strana-hero__panel-top strong { font-size: 21px; line-height: 1.2; }

.strana-hero__panel > a {
  display: grid;
  gap: 5px;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #fff !important;
  text-decoration: none !important;
  transition: background .18s ease;
}

.strana-hero__panel > a:last-child { border-bottom: 0; }
.strana-hero__panel > a:hover { background: rgba(255,255,255,.05); }
.strana-hero__panel > a span { color: #8fa5b9; font-size: 13px; }
.strana-hero__panel > a b { font-size: 15px; }

.strana-quicknav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--strana-border);
  background: #fff;
}

.strana-quicknav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  overflow-x: auto;
  scrollbar-width: none;
}
.strana-quicknav__inner::-webkit-scrollbar { display: none; }
.strana-quicknav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 9px;
  color: #243342;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}
.strana-quicknav a:hover { background: var(--strana-sky); color: var(--strana-blue); }

.strana-section { padding: 74px 0; }
.strana-section--muted { background: var(--strana-surface); }
.strana-section--dark { background: #0f1f30; color: #fff; }

.strana-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.strana-section__head h2,
.strana-community-grid h2,
.strana-cta h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.strana-section__head > a {
  flex: 0 0 auto;
  color: var(--strana-blue);
  font-weight: 800;
  text-decoration: none !important;
}

.strana-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.strana-category {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--strana-border);
  border-radius: 16px;
  background: #fff;
  color: var(--strana-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.strana-category:hover {
  transform: translateY(-2px);
  border-color: #bed5e7;
  box-shadow: var(--strana-shadow);
}

.strana-category__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--strana-sky);
  color: var(--strana-blue);
  font-size: 23px;
  font-weight: 900;
}

.strana-category__text { min-width: 0; }
.strana-category__text strong { display: block; font-size: 15px; line-height: 1.25; }
.strana-category__text small { display: block; margin-top: 5px; color: #84909c; font-size: 12px; }

.strana-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.strana-listing-card {
  overflow: hidden;
  border: 1px solid var(--strana-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,23,32,.035);
}

.strana-listing-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf4fc, #f8fbfd);
  color: #8aa8bf !important;
  font-weight: 900;
  letter-spacing: .09em;
  text-decoration: none !important;
}
.strana-listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.strana-listing-card:hover .strana-listing-card__media img { transform: scale(1.03); }
.strana-listing-card__body { padding: 16px; }
.strana-listing-card__body small { color: var(--strana-blue); font-weight: 700; }
.strana-listing-card__body h3 { margin: 6px 0 12px; font-size: 17px; line-height: 1.28; }
.strana-listing-card__body h3 a { color: var(--strana-ink) !important; text-decoration: none !important; }
.strana-listing-card__body time { color: #95a0aa; font-size: 12px; }

.strana-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px dashed #bdd0df;
  border-radius: 20px;
  background: #fff;
}
.strana-launch-card h3 { margin: 8px 0 8px; font-size: 25px; }
.strana-launch-card p { margin: 0; color: var(--strana-muted); max-width: 720px; }

.strana-city-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.strana-city-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--strana-border);
  border-radius: 999px;
  background: #fff;
  color: #243342 !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}
.strana-city-cloud a:hover { border-color: #bdd4e7; background: var(--strana-sky); color: var(--strana-blue) !important; }
.strana-city-cloud span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #eef2f5; color: #73808d; font-size: 11px; }

.strana-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.strana-section--dark .strana-kicker { color: #72b9ef; }
.strana-community-grid > div:first-child > p { max-width: 610px; margin: 18px 0 24px; color: #aebdca; font-size: 18px; line-height: 1.65; }
.strana-community-links { display: grid; gap: 10px; }
.strana-community-links a {
  display: grid;
  gap: 5px;
  padding: 19px 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  color: #fff !important;
  text-decoration: none !important;
}
.strana-community-links a:hover { background: rgba(255,255,255,.075); }
.strana-community-links span { color: #99aebe; font-size: 13px; }

.strana-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.strana-news-grid article {
  padding: 24px;
  border: 1px solid var(--strana-border);
  border-radius: 17px;
  background: #fff;
}
.strana-news-grid time { color: #93a0ab; font-size: 12px; }
.strana-news-grid h3 { margin: 10px 0; font-size: 21px; line-height: 1.3; }
.strana-news-grid h3 a { color: var(--strana-ink) !important; text-decoration: none !important; }
.strana-news-grid p { margin: 0; color: var(--strana-muted); line-height: 1.55; }
.strana-news-placeholder { display: grid; gap: 6px; padding: 28px; border: 1px dashed #c9d7e1; border-radius: 17px; color: var(--strana-muted); }
.strana-news-placeholder strong { color: var(--strana-ink); font-size: 19px; }

.strana-cta { padding: 0 0 76px; }
.strana-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px;
  border-radius: 24px;
  background: linear-gradient(125deg, #eaf4fc, #f7fbfe);
  border: 1px solid #d4e5f2;
}
.strana-cta p { max-width: 720px; margin: 13px 0 0; color: var(--strana-muted); font-size: 17px; line-height: 1.6; }

.strana-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed var(--strana-border); border-radius: 14px; color: var(--strana-muted); }

@media (max-width: 980px) {
  .strana-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .strana-hero__panel { max-width: 700px; }
  .strana-category-grid, .strana-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strana-community-grid { grid-template-columns: 1fr; gap: 30px; }
  .strana-news-grid { grid-template-columns: 1fr 1fr; }
  .strana-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .strana-shell { width: min(100% - 22px, 1180px); }
  .strana-hero { padding: 44px 0 34px; }
  .strana-hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .strana-hero__copy > p { font-size: 17px; }
  .strana-search { grid-template-columns: 1fr; padding: 7px; }
  .strana-search button { min-height: 48px; }
  .strana-hero__actions .strana-btn { flex: 1 1 100%; }
  .strana-trustline { gap: 9px 14px; }
  .strana-section { padding: 52px 0; }
  .strana-section__head { align-items: flex-start; }
  .strana-section__head > a { font-size: 13px; }
  .strana-category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .strana-category { min-height: 106px; align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px; }
  .strana-category__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 19px; }
  .strana-category__text small { display: none; }
  .strana-listing-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .strana-listing-card__body { padding: 12px; }
  .strana-listing-card__body h3 { font-size: 15px; }
  .strana-launch-card { align-items: flex-start; flex-direction: column; padding: 24px; }
  .strana-launch-card .strana-btn { width: 100%; }
  .strana-news-grid { grid-template-columns: 1fr; }
  .strana-cta { padding-bottom: 52px; }
  .strana-cta__inner { padding: 28px 22px; border-radius: 18px; }
}
