/* Stari vrh — vsebinski razdelki podstrani (razdelek, slika + besedilo, tabela, kartice, seznam, obrazec).
   Slog v2: bele kartice z mehko senco, zaobljeni robovi, rumeni poudarki. */

/* ---------- razdelek ---------- */
.sec__body > * + * {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.sec__body > p,
.sec__body > ul,
.sec__body > ol,
.sec__body > h3,
.sec__body > h4,
.sec__body > .wp-block-buttons {
  max-width: 46rem;
}

.sec__body > p,
.sec__body > ul,
.sec__body > ol {
  color: var(--ink-soft);
}

.sec__body > h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  color: var(--navy-800);
}

.sec__body > h4 {
  font-size: 1.2rem;
  color: var(--navy-800);
}

.sec__body > ul,
.sec__body > ol {
  padding-left: 1.3em;
  list-style: disc;
}

.sec__body > ol {
  list-style: decimal;
}

.sec__body a:not(.btn):not(.more):not(.wp-block-button__link) {
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec__body > .wp-block-image img {
  border-radius: var(--r-lg);
}

.sec__body .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.sec__body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.35rem;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 50%, var(--navy-800) 100%);
  color: #fff;
  font: 600 .94rem/1.2 var(--body);
  text-decoration: none;
}

.sec__body .is-style-outline .wp-block-button__link {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--navy-700);
}

.section--dark .sec__body > p,
.section--dark .sec__body > ul,
.section--dark .sec__body > ol {
  color: rgba(233, 243, 250, .85);
}

.section--dark .sec__body > h3,
.section--dark .sec__body > h4 {
  color: #fff;
}

.section--dark .sec__body a:not(.btn):not(.more):not(.wp-block-button__link) {
  color: var(--yellow);
}

.section--white {
  background: #fff;
}

/* ---------- slika in besedilo ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}

.sec__body > .feature + .feature {
  margin-top: clamp(3rem, 7vw, 6rem);
}

article.feature:nth-of-type(even) .feature__img {
  order: 2;
}

.feature__img {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: var(--ice-100);
  box-shadow: var(--shadow-md);
}

.feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__txt .tag {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: var(--ice-100);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy-600);
}

.feature__txt h2 {
  margin: 1rem 0 1.1rem;
  color: var(--navy-800);
}

.feature__body > * + * {
  margin-top: 1rem;
}

.feature__body p,
.feature__body li {
  color: var(--ink-soft);
}

.feature__body ul {
  padding-left: 1.3em;
  list-style: disc;
}

.feature__body a {
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-muted);
}

.feature__facts b {
  display: block;
  font: 800 1.7rem/1.1 var(--display);
  color: var(--navy-800);
}

.feature__btn {
  margin-top: 1.8rem;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  article.feature:nth-of-type(even) .feature__img {
    order: 0;
  }
}

/* ---------- tabela in seznam v kartici ---------- */
.ptcard,
.llcard {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ptcard__title {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  color: var(--navy-800);
}

.ptcard__scroll {
  overflow-x: auto;
}

.ptcard__note {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--ink-muted);
}

.ptcard__note a {
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* prva celica vrstice je glava vrstice (dostopnost), videti pa kot običajna celica */
.ptable tbody th {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font: 600 1rem/1.4 var(--body);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: var(--ink);
}

.ptable tbody th small {
  display: block;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-faint);
}

.ptable tbody tr:last-child th,
.ptable tbody tr:last-child td {
  border-bottom: 0;
}

.ptable tbody tr:first-child th,
.ptable tbody tr:first-child td {
  border-top: 0;
}

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

.llist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.llist li:last-child {
  border-bottom: 0;
}

.llist__side {
  flex: none;
  color: var(--ink-muted);
  font-size: .95rem;
}

/* ---------- kartice ---------- */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.icard {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.icard h3 {
  margin-bottom: .6rem;
  font-size: 1.3rem;
  color: var(--navy-800);
}

.icard p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

.icard a {
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- obrazec ---------- */
.cform {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cform h3 {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: var(--navy-800);
}

.cform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.cform__field {
  display: block;
}

.cform__field--wide {
  grid-column: 1 / -1;
}

.cform__field > span:first-child {
  display: block;
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.cform input[type="text"],
.cform input[type="email"],
.cform textarea,
.cform__input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font: 400 1rem/1.4 var(--body);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.cform textarea,
.cform__input--area {
  min-height: 140px;
  resize: vertical;
}

.cform input:focus,
.cform textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(35, 120, 171, .18);
  outline: none;
}

.cform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__msg {
  margin: 0 0 1.2rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 500;
}

.cform__msg--ok {
  background: #e8f6ef;
  color: #14693f;
}

.cform__msg--bad {
  background: #fbecea;
  color: #8e2a1a;
}

@media (max-width: 600px) {
  .cform__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .llist li {
    flex-wrap: wrap;
  }
}

/* tabele in seznami so berljivejši v zmerni širini */
.sec__body > .ptcard,
.sec__body > .llcard {
  max-width: 56rem;
}

.sec__body > .cgrid {
  max-width: 64rem;
}

.cond__link {
  margin: 1.6rem 0 0;
}
