/* ============================================================
   UAHP — Udruga Hrvatskih autobusnih prijevoznika
   Glavni stylesheet — style.css
   ============================================================ */

:root {
  --navy:      #0B1F3A;
  --navy-mid:  #1A3358;
  --navy-deep: #060F1D;
  --blue:      #1E6FBF;
  --gold:      #C8933A;
  --gold-lt:   #E8B05A;
  --gold-pale: #FDF6E9;
  --cream:     #F7F5F0;
  --white:     #FFFFFF;
  --g50:       #F9FAFB;
  --g100:      #F3F4F6;
  --g200:      #E5E7EB;
  --g300:      #D1D5DB;
  --g400:      #9CA3AF;
  --g500:      #6B7280;
  --g600:      #4B5563;
  --g700:      #374151;
  --g800:      #1F2937;
  --red:       #DC2626;
  --green:     #16A34A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.06);
  --r:   4px;
  --rlg: 8px;
  --rxl: 12px;
  --t:   all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--g800); background: var(--white); line-height: 1.65; overflow-x: hidden; }

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: .875rem; font-weight: 700; color: var(--navy); font-family: 'Source Sans 3', sans-serif; text-transform: uppercase; letter-spacing: .1em; }
p  { color: var(--g700); line-height: 1.75; }
a  { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---- NAV ---- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--navy); border-bottom: 3px solid var(--gold); transition: var(--t); }
#nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; flex-shrink: 0; text-decoration: none; }
.nav-emblem { width: 44px; height: 44px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; color: var(--navy); border-radius: 3px; flex-shrink: 0; position: relative; }
.nav-emblem::after { content: ''; position: absolute; inset: 4px; border: 1.5px solid rgba(11,31,58,.25); border-radius: 1px; }
.nav-brand strong { display: block; font-size: 16px; font-weight: 700; color: white; letter-spacing: .05em; }
.nav-brand span   { display: block; font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .09em; text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; align-items: stretch; list-style: none; height: 72px; }
.nav-links li { display: flex; }
.nav-links li a { display: flex; align-items: center; padding: 0 .9rem; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.72); transition: var(--t); border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; }
.nav-links li a:hover, .nav-links li a.active { color: white; border-bottom-color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 10px 20px; font-size: 13.5px; font-weight: 700 !important; border-radius: 3px; border: none; border-bottom: none !important; margin: auto 0 auto .75rem; transition: var(--t); white-space: nowrap; }
.nav-cta:hover { background: var(--gold-lt) !important; box-shadow: 0 4px 18px rgba(200,147,58,.4); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--t); }
.mobile-nav { display: none; position: fixed; top: 75px; left: 0; right: 0; z-index: 1001; background: var(--navy-deep); border-bottom: 2px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.5); max-height: calc(100vh - 75px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-nav.open { display: block; animation: slideDown .22s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mobile-nav a { display: block; padding: 14px 20px; color: rgba(255,255,255,.78); font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); transition: var(--t); -webkit-tap-highlight-color: rgba(200,147,58,.2); }
.mobile-nav a:hover, .mobile-nav a.active { color: white; padding-left: 28px; }
.hamburger span { transition: transform .25s ease, opacity .25s ease; }

/* ---- PAGE HERO ---- */
.page-hero { background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%); padding: 72px 2rem 84px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg,transparent,transparent 64px,rgba(255,255,255,.018) 64px,rgba(255,255,255,.019) 65px), repeating-linear-gradient(90deg,transparent,transparent 64px,rgba(255,255,255,.018) 64px,rgba(255,255,255,.019) 65px); }
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,.62); font-size: 1.1rem; max-width: 620px; line-height: 1.82; }
.page-bar { height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 55%, var(--gold) 100%); }

/* ---- LAYOUT ---- */
.section    { padding: 88px 2rem; }
.section-sm { padding: 64px 2rem; }
.inner      { max-width: 1280px; margin: 0 auto; }
.section-alt  { background: var(--cream); }
.section-dark { background: var(--navy-deep); }

/* ---- TYPOGRAPHY HELPERS ---- */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--gold); flex-shrink: 0; }
.lead { font-size: 1.1rem; color: var(--g500); line-height: 1.82; }
.sh { margin-bottom: 3rem; }
.sh .eyebrow { margin-bottom: .9rem; }
.sh .lead { margin-top: .75rem; max-width: 580px; }
.sh.center { text-align: center; }
.sh.center .eyebrow { justify-content: center; }
.sh.center .lead { margin-left: auto; margin-right: auto; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font-size: 14.5px; font-weight: 600; border-radius: var(--r); border: 2px solid transparent; transition: var(--t); cursor: pointer; letter-spacing: .015em; white-space: nowrap; font-family: inherit; }
.btn-gold    { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,147,58,.35); }
.btn-navy    { background: var(--navy); color: white; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,31,58,.3); }
.btn-wh      { background: transparent; color: white; border-color: rgba(255,255,255,.4); }
.btn-wh:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---- CARDS ---- */
.card { background: white; border: 1px solid var(--g200); border-radius: var(--rlg); padding: 1.75rem; transition: var(--t); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-gold { border-top: 3px solid var(--gold); }
.card-navy { border-top: 3px solid var(--navy); }

/* ---- FORMS ---- */
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.1rem; }
.fg label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.fg input, .fg select, .fg textarea { padding: 11px 14px; border: 1.5px solid var(--g200); border-radius: var(--r); font-size: 14px; font-family: inherit; color: var(--g800); background: white; transition: var(--t); outline: none; width: 100%; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,31,58,.08); }
.fg input.error, .fg select.error, .fg textarea.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--g400); }
.fg textarea { resize: vertical; min-height: 100px; line-height: 1.65; }
.fg select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }
.fg-hint { font-size: 12px; color: var(--g400); margin-top: 3px; }
.fg-error { font-size: 12px; color: var(--red); margin-top: 3px; font-weight: 500; display: none; }
.fg-error.show { display: block; }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fg-full { grid-column: 1 / -1; }
.fcheck { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1rem; }
.fcheck input[type=checkbox] { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }
.fcheck label { font-size: 13px; color: var(--g500); line-height: 1.6; cursor: pointer; }
.fcheck label a { color: var(--navy); text-decoration: underline; }

/* ---- BADGE ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-b  { background: #EFF6FF; color: #1D4ED8; }
.badge-g  { background: #FEFCE8; color: #854D0E; }
.badge-gr { background: #F0FDF4; color: #166534; }
.badge-p  { background: #F5F3FF; color: #5B21B6; }
.badge-o  { background: #FFF7ED; color: #9A3412; }

/* ---- TOAST ---- */
#toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(200px); z-index: 99999; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s; opacity: 0; pointer-events: none; }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---- FOOTER ---- */
footer { background: var(--navy-deep); padding: 56px 2rem 28px; }
.foot-inner { max-width: 1280px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 3.5rem; margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-emblem { width: 48px; height: 48px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--navy); border-radius: 3px; margin-bottom: 1.25rem; }
.foot-brand-name { color: white; font-size: 16px; font-weight: 700; letter-spacing: .04em; margin-bottom: .5rem; }
.foot-brand p { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.75; max-width: 280px; margin-bottom: 1.25rem; }
.foot-brand-detail { font-size: 12px; color: rgba(255,255,255,.28); line-height: 1.6; }
.foot-col h5 { color: white; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: .625rem; }
.foot-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.48); transition: var(--t); cursor: pointer; display: inline-block; }
.foot-col ul li a:hover { color: white; transform: translateX(3px); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot-bottom p { font-size: 12px; color: rgba(255,255,255,.28); }
.foot-bottom a { color: rgba(255,255,255,.45); transition: var(--t); font-size: 12px; }
.foot-bottom a:hover { color: white; }
.foot-bottom-links { display: flex; gap: 1.5rem; }

/* ---- NEWS CARDS ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: white; border: 1px solid var(--g200); border-radius: var(--rlg); overflow: hidden; transition: var(--t); cursor: pointer; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--g300); }
.news-img { height: 190px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.3); flex-shrink: 0; }
.news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-cat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .625rem; }
.news-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: .5rem; font-family: 'Playfair Display', serif; }
.news-excerpt { font-size: .875rem; color: var(--g500); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--g100); }
.news-date { font-size: 12px; color: var(--g400); }
.news-read { font-size: 12.5px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 4px; transition: var(--t); }
.news-card:hover .news-read { gap: 8px; }

/* ---- DOC LIST ---- */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { background: white; border: 1px solid var(--g200); border-radius: var(--rlg); padding: 1.1rem 1.375rem; display: flex; align-items: center; gap: 1rem; transition: var(--t); }
.doc-item:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.doc-pdf { width: 42px; height: 50px; background: var(--red); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: white; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 12px; color: var(--g400); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-dl { background: var(--navy); color: white; padding: 8px 16px; border-radius: var(--r); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-shrink: 0; transition: var(--t); border: none; cursor: pointer; font-family: inherit; }
.doc-dl:hover { background: var(--navy-mid); }

/* ---- MEMBERS ---- */
.members-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.member-card { background: white; border: 1px solid var(--g200); border-radius: var(--rlg); padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .625rem; min-height: 96px; transition: var(--t); }
.member-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.member-logo { width: 52px; height: 52px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: white; letter-spacing: .04em; flex-shrink: 0; }
.member-name { font-size: 11px; color: var(--g600); text-align: center; font-weight: 600; line-height: 1.35; }
.member-city { font-size: 10px; color: var(--g400); text-align: center; }

/* ---- EMPTY STATE ---- */
.empty { text-align: center; padding: 3rem 2rem; background: var(--cream); border-radius: var(--rlg); border: 1px dashed var(--g200); }
.empty strong { display: block; color: var(--g600); font-size: 15px; margin-bottom: .4rem; }
.empty p { color: var(--g400); font-size: 14px; }

/* ---- CTA BAND ---- */
.cta-band { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); padding: 72px 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-band-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 { color: white; margin-bottom: 1.1rem; }
.cta-band p { color: rgba(255,255,255,.62); margin-bottom: 2.25rem; font-size: 1.05rem; line-height: 1.8; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- SIDEBAR CARDS ---- */
.sidebar-card { background: var(--cream); border: 1px solid var(--g200); border-radius: var(--rlg); padding: 1.75rem; margin-bottom: 1.5rem; }
.sidebar-card h4 { margin-bottom: 1.25rem; font-size: 11px; }
.srow { display: flex; gap: 12px; margin-bottom: 1.125rem; align-items: flex-start; }
.srow:last-child { margin-bottom: 0; }
.srow-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.srow-text strong { display: block; font-size: 13.5px; color: var(--navy); font-weight: 700; }
.srow-text span { font-size: 12px; color: var(--g500); line-height: 1.4; display: block; margin-top: 1px; }

/* ---- FILTER BUTTONS ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.25rem; }
.fbtn { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--g200); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); background: white; color: var(--g500); font-family: inherit; }
.fbtn.active, .fbtn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--g200); margin: 3.5rem 0; }
.flex-b { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) { .nav-links { display: none; } .hamburger { display: flex; } .foot-top { grid-template-columns: 1fr 1fr; gap: 2rem; } .nav-cta-wrap { display: none; } }
@media (max-width: 768px)  { .news-grid { grid-template-columns: 1fr 1fr; } .members-grid { grid-template-columns: repeat(3,1fr); } .grid-2, .grid-3, .fg2 { grid-template-columns: 1fr; } .section { padding: 60px 1.25rem; } .page-hero { padding: 50px 1.25rem 60px; } }
@media (max-width: 520px)  { .news-grid { grid-template-columns: 1fr; } .members-grid { grid-template-columns: repeat(2,1fr); } .foot-top { grid-template-columns: 1fr; gap: 1.75rem; } }


/* Skip link — vidljiv samo tipkovničkim korisnicima */
.skip-link{position:absolute;top:-200px;left:0;background:#C8933A;color:#0B1F3A;padding:8px 16px;border-radius:0 0 4px 0;font-weight:700;font-size:14px;z-index:9999;transition:top .15s;text-decoration:none}
.skip-link:focus{top:0}
