/* ============================================================================
   VUKSANOVIĆ & KAŽIĆ — LAW FIRM
   Single stylesheet for the whole site (both /me/ and /en/).
   --------------------------------------------------------------------------
   HOW TO CHANGE THE LOOK:
   - Brand colours: edit the CSS variables in the ":root" block right below.
   - Fonts: change the <link> in each page's <head> AND the --font-* vars below.
   - Everything else cascades from these variables.
   ============================================================================ */

:root {
  /* ---- Brand palette (from the official logo brand guide) ---- */
  --green-dark: #034A25;   /* primary dark green  */
  --green:      #1E6E37;   /* medium green        */
  --green-soft: #2f8a4a;   /* lighter hover green */
  --beige:      #D2D2B2;   /* logo beige/tan ring */
  --beige-soft: #ecebdd;   /* very light beige tint */

  --ink:      #1c2a22;     /* body text (near-black, green-tinted) */
  --muted:    #5c6b60;     /* secondary text */
  --line:     #e4e7e0;     /* hairline borders */
  --paper:    #ffffff;     /* page background */
  --paper-2:  #f6f7f2;     /* alternating section background (warm off-white) */

  /* ---- Type ---- */
  --font-head: "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(3, 74, 37, .08);
  --shadow-lg: 0 24px 60px rgba(3, 74, 37, .14);
  --transition: .25s ease;
}

/* ---------------------------------------------------------------- Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-dark);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------------------------------------------------------------- Utilities */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tint { background: var(--paper-2); }
.section--green { background: var(--green-dark); color: #eaf1ea; }
.section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--beige); display: inline-block; }
.section--green .eyebrow { color: var(--beige); }
.section--green .eyebrow::before { background: var(--beige); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--green .lead { color: #cdd8cf; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--transition); letter-spacing: .3px;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--beige); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--beige-soft); color: var(--green-dark); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* =====================================================================
   HEADER / NAVIGATION  (identical markup on every page)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--green-dark); letter-spacing: .5px; }
.brand__sub { font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--green-dark); background: var(--beige-soft); }

.nav__right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; font-family: var(--font-head); font-size: .85rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: 6px 11px; color: var(--muted); }
.lang-switch a.is-active { background: var(--green); color: #fff; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--green-dark); transition: var(--transition); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav { justify-content: flex-start; gap: 12px; }
  .brand { margin-right: auto; }  /* logo left; hamburger + language switch cluster on the right */
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease;
    /* A long menu must scroll rather than run off the bottom of a short screen */
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  /* display:block — as inline elements the links' vertical padding would paint
     the hover/active background over the neighbouring rows without pushing
     them apart. Block makes each row own its full height. */
  .nav__links a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .brand__text { display: none; }
  /* Comfortable thumb targets for the language switch */
  .lang-switch a { padding: 10px 13px; }
}
@media (max-width: 720px){ .nav { gap: 12px; } }
@media (max-width: 480px){ .brand__text{ display:none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(3,74,37,.86), rgba(3,74,37,.94)),
    url("../img/hero.jpg") center/cover no-repeat, var(--green-dark);
  color: #fff; text-align: center;
  padding: clamp(90px, 16vw, 170px) 0;
}
/* VIDEO HERO: <section class="hero hero--video"> with a <video class="hero__video">
   and a <div class="hero__overlay"> before the .container. Swap the file in assets/video/. */
.hero--video { background: var(--green-dark); overflow: hidden; }
.hero--video > .container { position: relative; z-index: 2; }
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  border: 0; pointer-events: none;
}
/* Green tint over the video. Lower the alpha values to show more of the footage,
   raise them if the headline needs more contrast. */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(3,74,37,.20), rgba(3,74,37,.34));
}
/* Keeps the white headline readable against the brighter video underneath. */
.hero--video h1 { text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.hero--video .hero__seal { filter: drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
/* Visitors who ask for less motion get the still hero image instead of the video. */
@media (prefers-reduced-motion: reduce){
  .hero__video { display: none; }
  .hero--video { background: url("../img/hero.jpg") center/cover no-repeat, var(--green-dark); }
}
.hero__seal { width: 96px; margin: 0 auto 26px; opacity: .95; }
.hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; margin-bottom: 0; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--green); line-height: 1; }
.section--green .stat__num { color: var(--beige); }
.stat__label { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px){ .stats { grid-template-columns: 1fr; gap: 8px; } }
.section--green .stat__label { color: #cdd8cf; }

/* =====================================================================
   GENERIC CARD GRID (services, team, news)
   ===================================================================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
/* Service/news cards need the full width to stay readable; team cards do not —
   keeping them two-up stops the portraits from filling a whole phone screen each. */
@media (max-width: 560px){ .grid--3 { grid-template-columns: 1fr; } .grid--4 { gap: 24px 18px; } }
@media (max-width: 360px){ .grid--4 { grid-template-columns: 1fr; } }

/* Service card */
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all var(--transition); height: 100%;
}
.service:hover { border-color: var(--beige); box-shadow: var(--shadow); transform: translateY(-4px); }
.service__icon { width: 44px; height: 44px; color: var(--green); margin-bottom: 16px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Team card. Column flex so the biography link sits on the baseline of the row
   even when the members' short bios run to different lengths. */
.member { text-align: center; display: flex; flex-direction: column; }
.member__photo {
  aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: var(--radius);
  background: var(--beige-soft); margin-bottom: 16px; border: 1px solid var(--line);
}
.member__name { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); font-size: 1.12rem; }
.member__role { color: var(--green); font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.member__bio { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.member__contact { font-size: .88rem; margin-top: 8px; }
/* Link to a member's full biography page (see me/team/ and en/team/) */
.member__more {
  align-self: center; margin-top: auto; padding: 8px 6px;
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  color: var(--green); letter-spacing: .3px;
}
.member__more:hover { color: var(--green-dark); }
/* Two team cards sit side by side on phones — tighten the type so it still fits */
@media (max-width: 560px){
  .member__name { font-size: 1rem; }
  .member__role { font-size: .72rem; letter-spacing: 1px; }
  .member__bio { font-size: .86rem; }
}

/* Team slider (home page). The viewport scrolls natively (so swiping works on
   touch), main.js drives the arrows and the autoplay. 4 cards per view on
   desktop, 2 on tablet, 1 on phones. */
.slider { position: relative; }
.slider__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: 26px; align-items: stretch; }
.slider__track > .member { flex: 0 0 calc((100% - 3 * 26px) / 4); scroll-snap-align: start; }
.slider__arrow {
  position: absolute; top: 32%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  background: #fff; border: 1px solid var(--line); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); transition: all var(--transition);
}
.slider__arrow:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.slider__arrow svg { width: 22px; height: 22px; }
.slider__arrow--prev { left: -12px; }
.slider__arrow--next { right: -12px; }
@media (max-width: 900px){ .slider__track > .member { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 560px){
  .slider__track > .member { flex-basis: 100%; }
  .slider__arrow { width: 40px; height: 40px; }
}

/* =====================================================================
   TEAM MEMBER PROFILE PAGE  (me/team/*.html, en/team/*.html)
   ===================================================================== */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.profile__aside { position: sticky; top: 100px; }
.profile__photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.profile__role { color: var(--green); font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 18px 0 0; }
.profile__contact { margin: 10px 0 0; font-size: .95rem; }
.profile__body p { color: var(--muted); margin: 0 0 18px; }
.profile__body p:first-child { font-size: 1.12rem; color: var(--ink); }
@media (max-width: 820px){
  .profile { grid-template-columns: 1fr; }
  .profile__aside { position: static; max-width: 300px; margin-inline: auto; text-align: center; }
}

/* News card */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--beige-soft); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card__more { margin-top: auto; font-family: var(--font-head); font-weight: 500; }

/* =====================================================================
   SPLIT / ABOUT TEASER
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.value-list { list-style: none; padding: 0; margin: 18px 0 0; }
.value-list li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.value-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: no-repeat center/12px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
          mask: no-repeat center/12px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
}

/* Section heading helper */
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--muted); }

/* Page hero (interior pages) */
.page-hero { background: var(--green-dark); color: #fff; padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px); text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd8cf; max-width: 60ch; margin: 0 auto; }

/* Photo background for a page header. Add BOTH classes to the <section>, e.g.
   <section class="page-hero page-hero--photo page-hero--loc2">.
   The url() is resolved against this stylesheet, so one class works from /me/,
   /en/ and their subfolders alike. The green gradient keeps the title legible —
   lower its alpha values to show more of the photograph. */
.page-hero--photo {
  background-image:
    linear-gradient(180deg, rgba(3,74,37,.52), rgba(3,74,37,.66)),
    var(--page-hero-img);
  background-size: cover;
  /* The header is a wide, short band, so a centred crop would land on rooftops.
     Biasing upwards keeps the tree-lined street and the mountains in frame. */
  background-position: center 30%;
  background-repeat: no-repeat;
}
/* The header carries small text (breadcrumb, lead) over a bright photo, so it
   leans on a shadow rather than a heavy wash to stay legible. */
.page-hero--photo h1 { text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.page-hero--photo p,
.page-hero--photo .breadcrumb { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.page-hero--photo p { color: #eaf1ec; }
.page-hero--photo .breadcrumb,
.page-hero--photo .breadcrumb a { color: #ece9d3; }
.page-hero--loc1 { --page-hero-img: url("../img/location_1.jpeg"); }
.page-hero--loc2 { --page-hero-img: url("../img/location_2.jpeg"); }
.page-hero--loc3 { --page-hero-img: url("../img/location_3.jpeg"); }
.page-hero--loc4 { --page-hero-img: url("../img/location_4.jpeg"); }
.page-hero--loc5 { --page-hero-img: url("../img/location_5.jpeg"); }
.breadcrumb { font-size: .85rem; color: var(--beige); margin-bottom: 18px; font-family: var(--font-head); letter-spacing: 1px; }
.breadcrumb a { color: var(--beige); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.info-item strong { font-family: var(--font-head); color: var(--green-dark); display: block; }
.info-item a, .info-item span { color: var(--muted); }
/* Map fills the second column of .contact-grid; it stretches to the height of the
   details column on desktop and falls back to min-height once the grid stacks. */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); }

/* =====================================================================
   FOOTER  (identical markup on every page)
   ===================================================================== */
.site-footer { background: #06301a; color: #b9c9bd; padding: 70px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 64px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c9bd; }
.site-footer a:hover { color: #fff; }
.footer-contact p { margin-bottom: 10px; color: #b9c9bd; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; color: #cdd8cf; }
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #90a595; }
.footer-bottom a { color: #90a595; }

/* =====================================================================
   ARTICLE (single news post)
   ===================================================================== */
.article { max-width: 760px; margin: 0 auto; }
.article img { border-radius: var(--radius); margin: 24px 0; }
.article h2 { margin-top: 36px; }
.article p { color: var(--ink); }

/* Reveal-on-scroll (progressive enhancement; visible by default if no JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }
