/* ========== DEV-ONLY ========== */
.dev-only {
  display: none;
}

body.dev .dev-only {
  display: block;
}

/* ========== BODY + BACKGROUND ========== */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("../assets/img/peetri_kirik_esiuks.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* overlay pildi peale */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* ========== HEADER / HERO ========== */
.site-header {
  width: 100%;
  padding: 30px 0;
}

.hero-columns {
  width: 100%;
  margin: 0 auto;
  padding: 30px 60px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 140px; /* kastide vahe */
}

.hero-box {
  flex: 0 0 380px; /* kastid kitsamaks */
  width: 380px;
  max-width: 380px;

  background: rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 18px 20px;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* mobiil */
@media (max-width: 950px) {
  .hero-columns {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
  }

  .hero-box {
    width: 100%;
    max-width: 100%;
    flex: 1;
  }
}

/* ========== NAV ========== */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: black;
}

/* ========== BUTTONS ========== */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  color: black;
}

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.divider {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 14px 0;
}

/* ========== MAIN ========== */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== ALUMISED KASTID ========== */
.front-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 28px 0;
}

@media (min-width: 900px) {
  .front-info {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card,
.notice-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 18px 20px;

  border: none;
  outline: none;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.info-card h2,
.notice-card h2 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 8px 0;
  line-height: 1.4;
}

/* ========== FOOTER ========== */
.site-footer {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  margin-top: 30px;
  padding: 20px;
  text-align: center;
}
.hero-columns {
  max-width: 100% !important;
  width: 100% !important;

  padding-left: 40px !important;
  padding-right: 40px !important;

  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;

  gap: 40px !important; /* vahe jääb väiksemaks */
}

.hero-box {
  width: 360px !important;
  max-width: 360px !important;
}
/* Avalehe alumise osa container laiemaks */
.container--wide{
  max-width: 100% !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

/* Pane kaks kasti rohkem servadesse */
.container--wide .front-info{
  grid-template-columns: 460px 420px !important; /* kasti laius */
  justify-content: space-between !important;     /* vasak + parem serv */
  gap: 40px !important;                          /* nende vahe */
}

/* Mobiilis tagasi ühte veergu */
@media (max-width: 900px){
  .container--wide{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .container--wide .front-info{
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }
}
.info-card,
.notice-card {
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-card h2,
.notice-card h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.info-list li {
  padding: 12px 0;
}
.info-card,
.notice-card {
  font-weight: 500;
}
.info-card a,
.notice-card a {
  color: white;
  text-decoration: underline;
}
.info-card a:hover,
.notice-card a:hover {
  color: #f0f0f0;
}








