/* ============================================================
   Kosovo eVisa Portal — style.css
   Theme: Ministry of Foreign Affairs, Republic of Kosovo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Merriweather:wght@700;900&display=swap');

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

:root {
  --navy:     #0D2240;
  --navy2:    #1A3A6B;
  --blue:     #1F5FAD;
  --sky:      #3A7DC9;
  --gold:     #C8922A;
  --gold-lt:  #E8B84B;
  --white:    #FFFFFF;
  --off:      #F4F6FA;
  --light:    #EBF0F8;
  --text:     #1C2B3A;
  --muted:    #5A6A80;
  --border:   #CDD6E4;
  --red:      #B03020;
  --green:    #1B6B3C;
  --shadow:   0 4px 20px rgba(13,34,64,.10);
  --radius:   6px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-off { background: var(--off); }
.section-navy { background: var(--navy); color: white; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); display: block; margin-bottom: .4rem; }
.section-title { font-family: 'Merriweather', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); margin-bottom: .5rem; }
.section-sub { color: var(--muted); font-size: .9rem; max-width: 600px; margin-bottom: 2rem; line-height: 1.7; }
.section-navy .section-title { color: var(--white); }
.section-navy .section-sub { color: rgba(255,255,255,.7); }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: .7rem 1.75rem; border-radius: var(--radius); font-size: .88rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-lt); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,146,42,.35); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy2); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: white; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--navy2); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #145529; }
.btn-full { width: 100%; text-align: center; }

/* ── TOP STRIP ── */
.top-strip {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: .73rem;
  padding: .4rem 0;
  border-bottom: 2px solid var(--gold);
}
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-strip a { color: rgba(255,255,255,.7); margin-left: .75rem; }
.top-strip a:hover { color: var(--gold-lt); }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; gap: 1rem; flex-wrap: wrap; }
.logo-area { display: flex; align-items: center; gap: .85rem; }
.logo-coa { width: 60px; height: 60px; flex-shrink: 0; }
.logo-text h1 { font-family: 'Merriweather', serif; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.logo-text p { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }

/* Language bar */
.lang-bar { display: flex; gap: .3rem; align-items: center; }
.lang-bar a {
  display: flex; align-items: center; gap: .3rem;
  font-size: .72rem; color: var(--muted); text-decoration: none;
  padding: .22rem .5rem; border: 1px solid var(--border);
  border-radius: 4px; transition: all .2s; font-weight: 600;
}
.lang-bar a:hover, .lang-bar a.active { border-color: var(--gold); color: var(--gold); background: #FFF9EC; }

/* ── NAV ── */
.main-nav { background: var(--navy2); }
.nav-inner { display: flex; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 600;
  padding: .8rem 1.05rem; border-bottom: 3px solid transparent;
  letter-spacing: .02em; white-space: nowrap; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-lt); border-bottom-color: var(--gold); background: rgba(255,255,255,.05); }

/* ── NOTICE ── */
.notice-bar { background: #FFF8E7; border-bottom: 1px solid #F0D080; padding: .6rem 0; }
.notice-bar p { font-size: .8rem; color: #7A5500; text-align: center; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 100%);
  color: white; padding: 4rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5H4v-4h14v4zm4-14V0H0v14h22zM4 4h14v7H4V4z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 720px; text-align: center; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--gold); color: white; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .3rem 1rem; border-radius: 50px; margin-bottom: 1.1rem; }
.hero h2 { font-family: 'Merriweather', serif; font-size: clamp(1.7rem,4vw,2.8rem); line-height: 1.2; margin-bottom: .9rem; }
.hero p { color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.75rem 1.5rem; transition: box-shadow .25s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: 0 8px 30px rgba(13,34,64,.12); transform: translateY(-3px); border-color: var(--gold); }
.card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.card p { font-size: .83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.card-link { font-size: .82rem; font-weight: 700; color: var(--blue); }
.card-link:hover { color: var(--gold); }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 1.25rem 1rem; }
.step-num { width: 50px; height: 50px; background: var(--navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem; border: 3px solid var(--gold); }
.step h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.step p { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ── FORM ── */
.form-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.form-box h2 { font-family: 'Merriweather', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: .4rem; }
.form-box .sub { font-size: .84rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .88rem; font-family: inherit;
  color: var(--text); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,173,.12);
}
.form-footer { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.form-footer a { color: var(--blue); font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: .65rem; overflow: hidden; }
.faq-q {
  padding: 1rem 1.25rem; font-size: .9rem; font-weight: 700;
  color: var(--navy); cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; background: var(--white); transition: background .2s;
  user-select: none;
}
.faq-q:hover { background: var(--off); }
.faq-item.open .faq-q { background: var(--light); color: var(--blue); }
.faq-a { padding: 0 1.25rem 1rem; font-size: .85rem; color: var(--muted); line-height: 1.75; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-chevron { transition: transform .25s; font-style: normal; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── STATUS RESULT ── */
.status-result { max-width: 600px; margin: 2rem auto 0; padding: 1.5rem; border-radius: 10px; text-align: center; display: none; }
.status-result.approved { background: #E8F8EE; border: 1px solid #52BE80; }
.status-result.pending  { background: #FFF8E7; border: 1px solid var(--gold); }
.status-result.rejected { background: #FDECEA; border: 1px solid var(--red); }

/* ── POLICY PAGE ── */
.policy-content { max-width: 800px; }
.policy-content h3 { font-family: 'Merriweather', serif; font-size: 1.1rem; color: var(--navy); margin: 1.75rem 0 .5rem; }
.policy-content p, .policy-content li { font-size: .88rem; color: var(--muted); line-height: 1.8; margin-bottom: .65rem; }
.policy-content ul { padding-left: 1.5rem; }
.policy-content ul li { list-style: disc; }
.last-updated { font-size: .78rem; color: var(--muted); background: var(--off); padding: .5rem 1rem; border-radius: 4px; border-left: 3px solid var(--gold); display: inline-block; margin-bottom: 1.5rem; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 2.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: .8rem; line-height: 1.7; margin-top: .75rem; }
.footer-brand strong { color: white; font-size: .95rem; }
.footer-col h4 { color: white; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .85rem; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: .5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .73rem; }
.footer-bottom a { color: rgba(255,255,255,.45); margin-left: .85rem; }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ── PORTAL CARDS ── */
.portal-card { border-radius: 12px; padding: 2rem; position: relative; overflow: hidden; color: white; }
.portal-card.employer { background: linear-gradient(135deg, var(--navy), var(--navy2)); }
.portal-card.jobseeker { background: linear-gradient(135deg, #1B6B3C, #27AE60); }
.portal-card h3 { font-family: 'Merriweather', serif; font-size: 1.3rem; margin-bottom: .5rem; }
.portal-card p { font-size: .85rem; opacity: .85; margin-bottom: 1.5rem; line-height: 1.65; }
.portal-bg-icon { position: absolute; right: -1rem; bottom: -1rem; font-size: 7rem; opacity: .07; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav a { font-size: .75rem; padding: .65rem .7rem; }
  .hero { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-bar { flex-wrap: wrap; }
}
