/* Verdo nepremičnine (izmišljeno podjetje) — primer enostranske strani (paket Start).
   Kazalo: 1 osnova · 2 gumbi in polja · 3 glava · 4 uvod · 5 iskalnik · 6 nepremičnine
           7 prodaja · 8 prednosti in postopek · 9 o podjetju · 10 kontakt · 11 lokacija
           12 noga · 13 tablica · 14 telefon */

/* ───── 1 Osnova ───── */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --sand: #e8e5dd;
  --ink: #252c28;
  --black: #000000;
  --green: #304d40;
  --green-dark: #27402f;
  --green-line: #718779;
  --muted: #999999;
  --field-line: rgba(136, 136, 136, 0.1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --gutter: 48px;
  --header: 90px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
p { letter-spacing: -0.02em; }
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: 76px; line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: 48px; line-height: 1.12; letter-spacing: -0.04em; }
h3 { color: var(--black); line-height: 1.2; }

[id] { scroll-margin-top: var(--header); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: var(--gutter); }

.section { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 96px; }
.section--wide-gap { gap: 32px; }

.panel { border-radius: 8px; }

.eyebrow { color: var(--green); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 1.5px; }
.note { font-size: 12px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 20; padding: 12px 16px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

/* ───── 2 Gumbi in polja ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border: 0; border-radius: 6px;
  background: var(--green);
  box-shadow: inset 0 0 0 1px var(--green-line);
  color: #fff;
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--green-dark); }
.btn--block { width: 100%; justify-content: flex-start; padding: 16px 24px; font-size: 13px; }

.textlink { color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 1.5px; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.label { display: flex; flex-direction: column; gap: 8px; min-width: 0; letter-spacing: -0.02em; }

.field {
  display: block; width: 100%; height: 48px;
  padding: 12px;
  border: 0; border-radius: 5px;
  background-color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--field-line);
  color: var(--ink);
  font: 400 14px/1.2 var(--sans);
}
.field--select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--muted);
}
.field--small { font-size: 12px; }
.field--area { height: 120px; resize: vertical; }

/* ───── 3 Glava ───── */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 32px; padding: 24px var(--gutter); }
.nav__logo { flex: 1; color: var(--black); font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 1px; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 20px; }
.nav__link { font-size: 12px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.nav__link:hover { color: var(--green); text-decoration: underline; }
.nav__toggle { display: none; }

/* ───── 4 Uvod ───── */
.hero { display: flex; align-items: center; gap: 48px; padding-block: 56px 64px; }
.hero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__image { flex: 1; min-width: 0; height: 570px; border-radius: 8px; object-fit: cover; }

/* ───── 5 Iskalnik ───── */
.search { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; background: var(--surface); }
.search__title { color: var(--black); font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.search__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; width: 100%; }

/* ───── 6 Nepremičnine ───── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 8px; background: var(--surface); }
.card__image { width: 100%; height: 220px; border-radius: 5px; object-fit: cover; }
.card__title { font-size: 27px; }
.card__price { color: var(--black); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }

/* ───── 7 Prodaja ───── */
.sell { display: flex; align-items: flex-start; gap: 48px; padding: 40px; background: var(--green); color: #fff; }
.sell__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sell__image { flex: 1; min-width: 0; height: 320px; border-radius: 6px; object-fit: cover; }

/* ───── 8 Prednosti in postopek ───── */
.section--process { gap: 40px; padding-block: 64px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; width: 100%; }
.step { display: flex; flex-direction: column; gap: 16px; padding-block: 16px; }
.step__title { font-size: 26px; font-weight: 600; }

/* ───── 9 O podjetju ───── */
.about { flex-direction: row; gap: 64px; }
.portrait { flex: 1; min-width: 0; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; border-radius: 8px; background: var(--sand); text-align: center; }
.portrait__initials { color: var(--green); font: 400 100px/1.2 var(--serif); letter-spacing: 0; }
.about__text { flex: 0 0 488px; display: flex; flex-direction: column; gap: 24px; }
.about__lead { font-size: 28px; }

/* ───── 10 Kontakt ───── */
.contact { flex-direction: row; gap: 64px; }
.contact__text { flex: 0 0 488px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact__phone { font: 500 40px/1.2 var(--serif); text-decoration: none; }
.contact__phone:hover { color: var(--green); }
.form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 8px; background: var(--surface); }
.form__status { padding: 12px; border-radius: 5px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--green-line); }
[hidden] { display: none !important; }

/* ───── 11 Lokacija ───── */
.section--map { padding-block: 48px; }
.map { display: block; width: 100%; height: 280px; border: 0; border-radius: 8px; background: var(--sand); }

/* ───── 12 Noga ───── */
.footer { width: min(100%, 1200px); margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 64px var(--gutter) 32px; background: var(--sand); }
.footer__logo { color: var(--black); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ───── 13 Tablica (810–1199 px) ───── */
@media (max-width: 1199.98px) {
  :root { --gutter: 24px; --header: 76px; }

  h1 { max-width: 529px; font-size: 60px; }
  h2 { font-size: 40px; }

  .nav { padding-block: 17px; }
  .section { padding-block: 64px; }
  .section--process { padding-block: 32px; }
  .section--map { padding-block: 32px 48px; }

  /* Bela in zelena plošča segata od roba do roba. */
  .wrap--bleed { padding-inline: 0; }
  .wrap--bleed .panel { border-radius: 0; padding: 32px var(--gutter); }

  .hero { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__image { flex: none; width: 100%; }

  .search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sell { flex-direction: column; align-items: stretch; gap: 32px; }
  .sell__image { flex: none; width: 100%; }

  .about, .contact { flex-direction: column; align-items: stretch; gap: 32px; }
  .about__text, .contact__text { flex: none; }
  .portrait { flex: none; }
}

/* ───── 14 Telefon (do 809 px) ───── */
@media (max-width: 809.98px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }

  .nav { flex-wrap: wrap; gap: 0; padding-block: 16px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: 6px; background: none; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 1px; background: var(--ink); }
  .nav__links { flex-direction: column; align-items: flex-start; width: 100%; padding-block: 24px 8px; }
  .nav__link { font-size: 14px; }
  .js .nav__links { display: none; }
  .js .nav--open .nav__links { display: flex; }

  .hero__image { height: 360px; }

  .search__grid, .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 16px; }

  .portrait { min-height: 300px; }
  .portrait__initials { font-size: 80px; }
  .form { padding: 24px; }
  .btn { white-space: normal; text-align: center; }
  .btn--block { text-align: left; }
}
