/* ==========================================================================
   Odvetnik Janko Jerman — stili
   Mobile first: osnovni stili veljajo za telefone, @media (min-width) širi.
   ========================================================================== */

/* ---------- Pisave (lokalno gostovane, brez klicev na Google) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfairdisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfairdisplay-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Barve in mere ---------- */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #e8edf1;
  --line: #dbe2e7;
  --ink: #222d33;
  --ink-soft: #4d5b66;
  --brand: #455a6c;
  --brand-strong: #34434f;
  --accent: #7297a0;

  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --gutter: 1rem;
  --max: 72rem;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(34 45 51 / 6%), 0 8px 24px -12px rgb(34 45 51 / 18%);
  --header-h: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 8vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section { padding-block: clamp(3rem, 9vw, 6rem); }
.section--tint { background: var(--surface); }

/* ---------- Ikone ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { border-color: var(--line); background: var(--bg); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-row .btn { flex: 1 1 14rem; }

/* ---------- Glava ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo { display: block; flex: 0 1 auto; }
.logo img { width: clamp(190px, 55vw, 280px); }

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.header-call:hover { background: var(--brand-strong); color: #fff; }

/* Navigacija: na telefonu vrstica pod logotipom (samo trije zavihki, hamburger ni potreben) */
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.6rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

.header-contacts { display: none; }

/* ---------- Naslovnica: uvod ---------- */
.hero { padding-block: clamp(2.5rem, 8vw, 5rem) 0; }

.hero__kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 500;
}

.hero__lede {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.hero .btn-row { max-width: 32rem; }

.hero__media {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 80%;
}

/* ---------- Predstavitev ---------- */
.intro {
  display: grid;
  gap: 2rem;
}
.intro__photo {
  max-width: 22rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}
.intro__text p { color: var(--ink-soft); font-size: 1.05rem; }
.intro__text p:first-of-type { color: var(--ink); font-size: 1.2rem; }

/* ---------- Moto ---------- */
.motto {
  margin: 0;
  text-align: center;
}
.motto blockquote { margin: 0; }
.motto__latin {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}
.motto__latin::before,
.motto__latin::after { color: var(--accent); }
.motto__latin::before { content: "\201E"; }
.motto__latin::after { content: "\201C"; }
.motto figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Kontaktne kartice ---------- */
.contact-cards {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.contact-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-2px);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand);
}
.contact-card__label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.contact-card__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card__value--email { font-size: clamp(0.95rem, 4.2vw, 1.1rem); }

/* ---------- Podnaslovna glava podstrani ---------- */
.page-head {
  padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(2rem, 6vw, 3rem);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0%) 40%, var(--bg)),
    linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 0.4rem; }
.page-head p {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Področja dela ---------- */
.areas {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.areas li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.areas li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.areas strong { font-weight: 600; }
.areas span { color: var(--ink-soft); }

.note {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.note p { font-size: 1.05rem; }
.note p:last-child { margin-bottom: 0; }

.cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cta h2 { margin-bottom: 0.25rem; }
.cta p { margin: 0; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.info-grid {
  display: grid;
  gap: 1rem;
}
.info-box {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.info-box h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.info-box h2 .icon { color: var(--brand); }
.info-box address { font-style: normal; }
.info-box p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }

.hours {
  width: 100%;
  border-collapse: collapse;
}
.hours th,
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 400; }
.hours td { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed td { color: var(--ink-soft); font-weight: 400; }

/* Zemljevid: Google se naloži šele na klik (brez piškotkov ob obisku) */
.map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(0deg, rgb(244 246 248 / 85%), rgb(244 246 248 / 85%)),
    repeating-linear-gradient(0deg, transparent 0 38px, var(--line) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--line) 38px 39px),
    var(--surface);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
}
.map__pin {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.map__placeholder p {
  max-width: 24rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------- Noga ---------- */
.site-footer {
  padding-block: 3rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
}
.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer__logo { width: 220px; margin-bottom: 1rem; }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.site-footer__legal p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .btn-row { justify-content: center; }
.not-found .btn-row .btn { flex: 0 1 auto; }

/* ==========================================================================
   Večji zasloni
   ========================================================================== */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }

  .hero__media { aspect-ratio: 16 / 7; }
  .hero__media img { object-position: 50% 85%; }

  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 0.85rem; }

  .areas { grid-template-columns: repeat(2, 1fr); }

  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid .map { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 60em) {
  :root { --gutter: 2rem; --header-h: 5rem; }

  body { font-size: 1.0625rem; }

  /* Glava v eni vrstici: logotip · navigacija · kontakti */
  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .site-header__bar { flex: 0 0 auto; }
  .header-call { display: none; }
  .site-nav ul { padding: 0; }
  .header-contacts {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
    font-size: 0.9rem;
  }
  .header-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-contacts a:hover { color: var(--brand); }
  .header-contacts .icon { color: var(--accent); }

  .hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: end;
  }
  .hero__lede { margin-bottom: 0.5rem; }
  .hero .btn-row { justify-self: end; width: 100%; }

  .intro {
    grid-template-columns: 22rem 1fr;
    gap: 4rem;
    align-items: center;
  }
  .intro__photo { aspect-ratio: 467 / 549; }

  .areas { grid-template-columns: repeat(3, 1fr); }

  .cta { grid-template-columns: 1fr auto; }
  .cta .btn-row .btn { flex: 0 1 auto; }

  .info-grid { grid-template-columns: 1fr 1fr 1.6fr; }
  .info-grid .map { grid-column: auto; aspect-ratio: auto; min-height: 22rem; }
}

@media (min-width: 75em) {
  .header-contacts { gap: 1.75rem; }
}

/* ---------- Dostopnost in tisk ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .skip-link, .map, .btn-row, .header-call { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .section { padding-block: 1.5rem; }
}
