/* ===========================================================
   EPR Croatia — one-page site
   Palette: deep petrol navy + signal green, on warm off-white
   =========================================================== */

:root {
  --ink:        #0A2233;
  --ink-2:      #143A52;
  --muted:      #5A7385;
  --line:       #E1E8ED;
  --bg:         #FFFFFF;
  --bg-alt:     #F4F7F9;
  --bg-deep:    #0A2233;
  --accent:     #12A75B;
  --accent-dk:  #0D8748;
  --accent-lt:  #E6F6ED;
  --danger:     #C0392B;

  --wrap:       1160px;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(10,34,51,.05), 0 12px 32px -12px rgba(10,34,51,.16);
  --shadow-sm:  0 1px 2px rgba(10,34,51,.06), 0 4px 12px -6px rgba(10,34,51,.12);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent-dk); }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: #fff;
  font-weight: 650; font-size: .97rem; line-height: 1.2;
  padding: 14px 26px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 6px 18px -8px rgba(18,167,91,.7);
}
.btn:hover  { background: var(--accent-dk); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm  { padding: 10px 18px; font-size: .9rem; box-shadow: none; }
.btn-lg  { padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); }

/* ─────────────  HEADER  ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
}
.brand-text { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem;
  transition: color .18s var(--ease);
}
.nav a:hover { color: var(--accent-dk); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────  HERO  ───────────── */
.hero {
  background:
    radial-gradient(1000px 460px at 12% -12%, var(--accent-lt) 0%, transparent 62%),
    linear-gradient(180deg, #FBFDFE 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
  gap: 56px; align-items: start;
  padding-block: clamp(56px, 6vw, 96px);
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dk); background: var(--accent-lt);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.15rem, .95rem + .8vw, 1.5rem);
  font-weight: 650; color: var(--ink);
  margin-bottom: 1.3em;
}
.hero-body { max-width: 62ch; color: var(--muted); }
.hero-body-accent {
  color: var(--ink); font-weight: 650; font-size: 1.08rem;
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

.hero-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px;
  position: sticky; top: 100px;
}
.hero-card-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.glance { margin: 0; }
.glance > div { padding: 16px 0; border-top: 1px solid var(--line); }
.glance > div:first-child { border-top: 0; padding-top: 0; }
.glance dt { font-weight: 650; color: var(--ink); font-size: .93rem; margin-bottom: 4px; }
.glance dd { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.55; }
.glance-note {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--accent-dk);
}

/* ─────────────  TRUST BAR  ───────────── */
.trustbar { background: var(--bg-deep); color: #fff; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding-block: 30px;
}
.trust-grid > div { display: flex; flex-direction: column; gap: 3px; }
.trust-k { font-weight: 750; font-size: 1.02rem; color: #fff; letter-spacing: -.01em; }
.trust-v { font-size: .85rem; color: rgba(255,255,255,.62); line-height: 1.45; }

/* ─────────────  SECTIONS  ───────────── */
.section { padding-block: clamp(60px, 6vw, 100px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { max-width: 20ch; }
.section-sub { max-width: 68ch; color: var(--muted); font-size: 1.05rem; margin-bottom: 46px; }

/* ─────────────  CARDS  ───────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFDCE4; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 18px;
  background: var(--accent-lt); color: var(--accent-dk);
  font-weight: 800; font-size: .9rem; letter-spacing: .02em;
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ─────────────  ACCORDION  ───────────── */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); background: var(--bg); }
.section-alt .acc-item { background: var(--bg); }
.acc-item:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.acc-item:last-child  { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.acc-h { margin: 0; font-size: inherit; }

.acc-btn {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 22px 26px; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
  transition: background .18s var(--ease);
}
.acc-btn:hover { background: var(--accent-lt); }
.acc-step {
  flex: none; min-width: 62px;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dk);
}
.acc-title { flex: 1; font-weight: 650; font-size: 1.06rem; letter-spacing: -.01em; }
.acc-chev {
  flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.acc-btn[aria-expanded="true"] { background: var(--accent-lt); }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--accent-dk); }

.acc-panel {
  padding: 0 26px 0 calc(26px + 62px + 18px);
  color: var(--muted);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height     .3s var(--ease),
    opacity        .3s var(--ease),
    padding-bottom .3s var(--ease);
}
.acc-panel.open { max-height: none; opacity: 1; padding-bottom: 26px; }
.accordion-plain .acc-panel { padding-left: 26px; }
.acc-panel > :last-child { margin-bottom: 0; }
.acc-panel p, .acc-panel li { font-size: .98rem; }
.acc-out {
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem;
}
.section-alt .acc-out { background: #EEF3F6; }

/* ─────────────  TESTIMONIALS  ───────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.quote::before {
  content: "“"; display: block;
  font-size: 3.4rem; line-height: .7; color: var(--accent);
  font-family: Georgia, 'Times New Roman', serif; margin-bottom: 12px;
}
.quote blockquote { margin: 0 0 22px; font-size: 1rem; color: var(--ink-2); flex: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.q-name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.q-role { font-size: .85rem; color: var(--muted); }

/* ─────────────  CONTACT  ───────────── */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #F7FAFB 100%); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: 56px; align-items: start;
}
.contact-copy { position: sticky; top: 100px; }
.contact-copy .section-title { max-width: 15ch; }
.contact-points { list-style: none; padding: 0; margin: 0; }
.contact-points li { position: relative; padding-left: 28px; color: var(--muted); font-size: .97rem; }
.contact-points li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field label span { color: var(--accent-dk); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C4D3DC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18,167,91,.16);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.err { display: none; margin: 6px 0 0; font-size: .85rem; color: var(--danger); font-weight: 550; }
.field.invalid .err { display: block; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.field-check label { margin: 0; font-weight: 450; font-size: .9rem; color: var(--muted); }
.field-check .err { grid-column: 1 / -1; }

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

.form-status { margin: 16px 0 0; font-size: .93rem; font-weight: 550; min-height: 1.4em; }
.form-status.ok   { color: var(--accent-dk); }
.form-status.fail { color: var(--danger); }

/* ─────────────  FOOTER  ───────────── */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.66); padding-block: 54px 34px; }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 40px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { flex-basis: 100%; margin: 10px 0 0; font-size: .92rem; max-width: 42ch; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 26px; }
.footer-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  grid-column: 1 / -1; margin: 0; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .83rem; color: rgba(255,255,255,.48);
}

/* ─────────────  REVEAL ON SCROLL  ───────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────  RESPONSIVE  ───────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card, .contact-copy { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .acc-btn { flex-wrap: wrap; gap: 6px 14px; padding: 20px; }
  .acc-step { min-width: 0; flex-basis: 100%; }
  .acc-panel { padding: 0 20px; }
  .acc-panel.open { padding-bottom: 22px; }
  .form { padding: 26px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .acc-panel.open { max-height: none; }
}
