/* styles.css */

/* ---- Base ---- */
* { box-sizing: border-box; }

:root{
  --green: #4f7d3c;
  --green-dark: #3e6430;
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --panel: #f4f4f6;
  --shadow: 0 10px 25px rgba(0,0,0,0.10);
  --radius: 14px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #eef0f2;
  line-height: 1.5;
}

a { color: inherit; }

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* Layout helpers */
.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header{
  background: var(--bg);
  border-bottom: 1px solid #e6e6ea;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--green);
}
.brand-mark{ font-size: 26px; }
.brand-name{ font-size: 20px; }

.nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-list a{
  text-decoration: none;
  color: #2b2b2b;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-list a:hover,
.nav-list a:focus{
  background: #f1f3f5;
  outline: none;
}

.hero{
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
}

.hero-overlay{
  width: 100%;
  background: linear-gradient(
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.35)
  );
  display: flex;
  align-items: center;
}

.hero-content{
  text-align: center;
  color: #fff;
  padding: 60px 0;
}

.hero-lead{
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-panel{
  margin: 40px auto 0;
  max-width: 900px;
  background: rgba(255,255,255,0.92);
  color: #222;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hero-panel h2{
  margin-top: 0;
}

.cta-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}


/* ---- Welcome panel ---- */
.welcome{
  padding: 0 0 60px;
}

.welcome-inner{
  background: var(--bg);
  margin-top: -38px; /* ger “kortet” som i mockupen */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 30px;
  text-align: center;
}

.welcome-inner h2{
  margin: 0 0 10px;
  font-size: 28px;
}

.welcome-inner p{
  margin: 0 auto 22px;
  max-width: 820px;
  color: #333;
}

.cta-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.btn:hover,
.btn:focus{
  background: var(--green-dark);
  outline: none;
}

/* ---- Footer ---- */
.site-footer{
  background: transparent;
  padding: 26px 0 40px;
  color: var(--muted);
  text-align: center;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 820px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-list{
    gap: 8px;
  }
  .nav-list a{
    background: #f6f7f9;
  }
  .welcome-inner{
    margin-top: -28px;
  }
  .btn{ min-width: 220px; }
}

/* ---- Pages ---- */
.page{
  background: #eef0f2;
}

.page-hero{
  background: #ffffff;
  border-bottom: 1px solid #e6e6ea;
  padding: 34px 0 26px;
}

.page-hero h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.lead{
  margin: 0;
  color: #444;
  max-width: 850px;
}

.page-content{
  padding: 26px 0 60px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.card h2{
  margin-top: 0;
}

.checklist{
  margin: 0;
  padding-left: 18px;
}

.table-wrap{
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e6e6ea;
  background: #fff;
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px; /* gör att den scrollar på mobil */
}

.data-table th,
.data-table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid #ececf0;
  vertical-align: top;
}

.data-table thead th{
  background: #f5f7f5;
  font-weight: 800;
}

.data-table tbody th{
  width: 160px;
  font-weight: 800;
}

.note{
  margin: 12px 0 0;
  color: #555;
  font-size: 14px;
}

.callout{
  margin-top: 18px;
  background: #ffffff;
  border-left: 6px solid var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.callout a{
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.callout a:hover,
.callout a:focus{
  text-decoration: underline;
}

.nav-list a.is-active{
  background: #f1f3f5;
  font-weight: 800;
}

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

/* ---- Contact page ---- */
.grid-contact{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label{
  font-weight: 700;
}

.form-field input,
.form-field textarea{
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 16px;
}

.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--green);
}

.contact-info ul{
  padding-left: 18px;
}

.contact-info li{
  margin-bottom: 6px;
}

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

