/* =============================================================================
   Official eVisa Portal — Principality of Andorra — Design System
   Institutional theme layered on Bootstrap 5. Navy / Royal Blue / Gold.
   ========================================================================== */

:root {
    --navy:         #0A2342;   /* Dark navy — dark surfaces, headings */
    --royal:        #123C7A;   /* Royal blue — primary actions, links */
    --gold:         #D4AF37;   /* Gold — accents */

    --brand:        #123C7A;   /* primary interactive (royal blue) */
    --brand-dark:   #0E2E5E;
    --brand-darker: #0A2342;
    --ink:          #0A2342;   /* dark navy text / dark surfaces */
    --ink-soft:     #33415C;
    --muted:        #64748B;
    --paper:        #ffffff;
    --surface:      #f5f7fa;   /* light gray */
    --surface-2:    #edf1f7;
    --line:         #e3e8f0;
    --success:      #1a7f4b;
    --radius:       16px;
    --radius-sm:    10px;
    --shadow-sm:    0 2px 10px rgba(10,35,66,.06);
    --shadow:       0 12px 32px rgba(10,35,66,.10);
    --shadow-lg:    0 28px 64px rgba(10,35,66,.16);
    --font:         "Inter","Segoe UI",system-ui,-apple-system,sans-serif;
    --nav-h:        76px;
}

* { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,.display-title { font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
a { text-decoration: none; }
.text-brand { color: var(--brand) !important; }
.text-royal { color: var(--royal) !important; }
.text-navy { color: var(--navy) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-ink { background: var(--ink) !important; }
.text-gold { color: var(--gold) !important; }

/* --------------------------------------------------------------- Buttons */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: .65rem 1.35rem; transition: .2s ease; }
.btn-brand { background: var(--royal); border-color: var(--royal); color: #fff; }
.btn-brand:hover { background: var(--navy); border-color: var(--navy); color:#fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18,60,122,.30); }
.btn-outline-brand { border: 1.5px solid var(--royal); color: var(--royal); background: transparent; }
.btn-outline-brand:hover { background: var(--royal); color:#fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight:700; }
.btn-gold:hover { background: #c19f2c; border-color:#c19f2c; color: var(--navy); }
.btn-ink { background: var(--navy); color:#fff; }
.btn-ink:hover { background:#081a33; color:#fff; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.02rem; }

/* --------------------------------------------------------------- Government header */
.site-nav {
    height: var(--nav-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(10,35,66,.04);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-nav::before {
    content:""; position:absolute; left:0; right:0; top:0; height:3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--royal) 50%, var(--gold) 100%);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.98); }
.brand-emblem { height: 44px; width:auto; display:block; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(150deg, var(--royal), var(--navy));
    display:grid; place-items:center; color:#fff; font-weight:800; font-size:1.15rem;
    box-shadow: var(--shadow-sm);
}
.brand-title { font-weight: 800; line-height: 1.05; color: var(--navy); letter-spacing:.01em; }
.brand-sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-nav .nav-link { color: var(--ink-soft); font-weight: 600; margin: 0 .1rem; position: relative; font-size:.95rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--royal); }
.site-nav .nav-link.active::after {
    content:""; position:absolute; left:.9rem; right:.9rem; bottom:-2px; height:2px; background: var(--gold); border-radius: 2px;
}
.lang-pill { display:inline-flex; align-items:center; gap:.35rem; border:1px solid var(--line); border-radius:999px;
    padding:.32rem .7rem; font-size:.82rem; font-weight:700; color: var(--ink-soft); background:#fff; }

/* --------------------------------------------------------------- Hero */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--navy);
}
.hero__media { position:absolute; inset:0; z-index:0; }
.hero__media img { width:100%; height:100%; object-fit: cover; object-position: center; }
.hero__overlay {
    position:absolute; inset:0; z-index:1;
    background:
        linear-gradient(100deg, rgba(10,25,50,.92) 0%, rgba(10,35,66,.72) 45%, rgba(18,60,122,.30) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 7rem 0 5rem; }
.hero__eyebrow {
    display:inline-flex; align-items:center; gap:.5rem;
    background: rgba(255,255,255,.12); border:1px solid rgba(212,175,55,.55);
    color:#fff; padding:.4rem .9rem; border-radius:999px; font-size:.8rem; font-weight:600; letter-spacing:.04em;
    backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.06; margin: 1.2rem 0; color:#fff; }
.hero__lead { font-size: 1.15rem; max-width: 40rem; color: rgba(255,255,255,.9); }
.hero__stats { gap: 2.5rem; }
.hero__stat .n { font-size: 1.9rem; font-weight: 800; color:#fff; }
.hero__stat .l { font-size: .82rem; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .08em; }
.hero__wave { position:absolute; left:0; right:0; bottom:-1px; z-index:2; line-height:0; }

/* Quick tracking card floating on hero */
.track-card {
    background: rgba(255,255,255,.98); color: var(--ink); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.75rem; border-top:4px solid var(--gold);
}

/* --------------------------------------------------------------- Sections */
.section { padding: 5.5rem 0; }
.section-tag {
    display:inline-block; color: var(--royal); font-weight:700; letter-spacing:.14em;
    text-transform:uppercase; font-size:.78rem; margin-bottom:.6rem;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 46rem; }
.bg-surface { background: var(--surface); }

/* --------------------------------------------------------------- Feature cards */
.feature-card {
    background:#fff; border:1px solid var(--line); border-radius: var(--radius);
    padding: 1.9rem; height:100%; transition: .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(18,60,122,.18); }
.feature-ico {
    width:56px; height:56px; border-radius:14px; display:grid; place-items:center; font-size:1.5rem;
    background: linear-gradient(150deg, rgba(18,60,122,.12), rgba(18,60,122,.04)); color: var(--royal);
    margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------- Visa type cards */
.visa-card {
    background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
    height:100%; display:flex; flex-direction:column; transition:.25s ease;
}
.visa-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.visa-card__head { padding:1.4rem 1.5rem; background: linear-gradient(135deg, var(--navy), var(--royal)); color:#fff; }
.visa-card__code { font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color: var(--gold); font-weight:700; }
.visa-card__body { padding: 1.4rem 1.5rem; flex:1; }
.visa-card__price { font-size:1.6rem; font-weight:800; color: var(--navy); }
.visa-meta { font-size:.86rem; color: var(--muted); }

/* --------------------------------------------------------------- Steps timeline */
.step-line { position:relative; }
.step-item { position:relative; padding-left: 4.5rem; margin-bottom: 2.2rem; }
.step-num {
    position:absolute; left:0; top:0; width:52px; height:52px; border-radius:16px;
    background:#fff; border:2px solid var(--royal); color:var(--royal);
    display:grid; place-items:center; font-weight:800; font-size:1.2rem; box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- FAQ */
.accordion-button { font-weight:700; color: var(--navy); }
.accordion-button:not(.collapsed) { background: rgba(18,60,122,.06); color: var(--royal); box-shadow:none; }
.accordion-button:focus { box-shadow:none; border-color: var(--line); }
.accordion-item { border:1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom:.8rem; overflow:hidden; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 4rem 0 1.5rem; position:relative; }
.site-footer::before {
    content:""; position:absolute; left:0; right:0; top:0; height:3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--royal) 60%, var(--navy) 100%);
}
.site-footer h6 { color:#fff; font-weight:700; letter-spacing:.02em; margin-bottom:1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:2.5rem; padding-top:1.5rem; font-size:.85rem; }
.footer-social { width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
    border:1px solid rgba(255,255,255,.22); color:#fff; transition:.2s; }
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* --------------------------------------------------------------- Auth pages */
.auth-wrap { min-height:100vh; display:grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
    position:relative; color:#fff; padding:3.5rem; display:flex; flex-direction:column; justify-content:space-between;
    background: linear-gradient(150deg, var(--navy), var(--royal));
    overflow:hidden;
}
.auth-aside::after {
    content:""; position:absolute; right:-120px; bottom:-120px; width:360px; height:360px; border-radius:50%;
    background: radial-gradient(circle, rgba(212,175,55,.38), transparent 70%);
}
.auth-panel { display:flex; align-items:center; justify-content:center; padding: 2.5rem; background: var(--surface); }
.auth-card { width:100%; max-width: 460px; background:#fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.4rem; }
@media (max-width: 900px){ .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display:none; } }

/* --------------------------------------------------------------- Forms */
.form-label { font-weight:600; font-size:.9rem; color: var(--ink-soft); }
.form-control, .form-select {
    border-radius: var(--radius-sm); border:1px solid var(--line); padding:.7rem .9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--royal); box-shadow: 0 0 0 .2rem rgba(18,60,122,.14); }
.input-icon { position:relative; }
.input-icon > i { position:absolute; left:.9rem; top:50%; transform:translateY(-50%); color: var(--muted); }
.input-icon > .form-control { padding-left: 2.6rem; }

/* --------------------------------------------------------------- Dashboard shell */
.app-shell { display:flex; min-height:100vh; background: var(--surface); }
.app-side {
    width: 264px; background: var(--navy); color: rgba(255,255,255,.8); flex-shrink:0;
    display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.app-side__brand { padding:1.4rem 1.4rem; border-bottom:1px solid rgba(255,255,255,.1); }
.app-side nav { padding:1rem .8rem; flex:1; overflow-y:auto; }
.app-side .side-link {
    display:flex; align-items:center; gap:.8rem; padding:.75rem .9rem; border-radius:12px;
    color: rgba(255,255,255,.72); font-weight:600; margin-bottom:.2rem; transition:.15s;
}
.app-side .side-link i { font-size:1.15rem; }
.app-side .side-link:hover { background: rgba(255,255,255,.08); color:#fff; }
.app-side .side-link.active { background: var(--royal); color:#fff; }
.app-side .side-badge { margin-left:auto; background: var(--gold); color: var(--navy); font-size:.7rem; font-weight:800; border-radius:999px; padding:.1rem .5rem; }
.app-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.app-topbar {
    height:70px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center;
    padding:0 1.6rem; gap:1rem; position:sticky; top:0; z-index:20;
}
.app-content { padding: 1.9rem; flex:1; }
@media (max-width: 992px){
    .app-side { position:fixed; left:0; top:0; z-index:1050; transform:translateX(-100%); transition:.25s; }
    .app-side.open { transform:translateX(0); }
    .app-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:1040; display:none; }
    .app-backdrop.show { display:block; }
}

/* --------------------------------------------------------------- Stat tiles */
.stat-tile { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:1.4rem; transition:.25s ease; }
.stat-tile:hover { box-shadow: var(--shadow-sm); }
.stat-tile .val { font-size:1.9rem; font-weight:800; line-height:1; color: var(--navy); }
.stat-tile .lbl { color: var(--muted); font-size:.85rem; font-weight:600; }
.stat-ico { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-size:1.3rem; }

.card-panel { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-panel__head { padding:1.1rem 1.4rem; border-bottom:1px solid var(--line); font-weight:700; color: var(--navy); }
.card-panel__body { padding:1.4rem; }

/* --------------------------------------------------------------- Badges & tables */
.badge-status { font-weight:700; padding:.4rem .7rem; border-radius:999px; font-size:.74rem; }
.table thead th { font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color: var(--muted); border-bottom:1px solid var(--line); }
.table td { vertical-align: middle; }

/* --------------------------------------------------------------- Wizard */
.wizard-steps { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2rem; }
.wizard-steps .wstep {
    flex:1; min-width:96px; text-align:center; padding:.7rem .4rem; border-radius:12px; background:#fff;
    border:1px solid var(--line); font-size:.78rem; font-weight:700; color: var(--muted); position:relative;
}
.wizard-steps .wstep .dot {
    width:26px; height:26px; border-radius:50%; background: var(--surface-2); color: var(--muted);
    display:grid; place-items:center; margin:0 auto .35rem; font-size:.8rem; font-weight:800;
}
.wizard-steps .wstep.done { border-color: var(--success); color: var(--success); }
.wizard-steps .wstep.done .dot { background: var(--success); color:#fff; }
.wizard-steps .wstep.current { border-color: var(--royal); color: var(--royal); box-shadow: var(--shadow-sm); }
.wizard-steps .wstep.current .dot { background: var(--royal); color:#fff; }

.doc-drop {
    border:2px dashed var(--line); border-radius: var(--radius); padding:1.6rem; text-align:center;
    background: var(--surface); transition:.2s; cursor:pointer;
}
.doc-drop:hover, .doc-drop.drag { border-color: var(--royal); background: rgba(18,60,122,.03); }

/* --------------------------------------------------------------- Utilities & anim */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
.divider-eagle { text-align:center; color: var(--royal); opacity:.5; font-size:1.4rem; }
.timeline { list-style:none; padding:0; margin:0; position:relative; }
.timeline::before { content:""; position:absolute; left:9px; top:4px; bottom:4px; width:2px; background: var(--line); }
.timeline li { position:relative; padding:0 0 1.2rem 2.2rem; }
.timeline li::before { content:""; position:absolute; left:2px; top:4px; width:16px; height:16px; border-radius:50%; background:#fff; border:3px solid var(--royal); }
.timeline li.muted::before { border-color: var(--line); }

/* --------------------------------------------------------------- Trust strip */
.trust-strip { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.trust-item { display:flex; align-items:center; gap:.9rem; padding:1.25rem 1.4rem; }
.trust-item i { font-size:1.5rem; color: var(--royal); }
.trust-item .t { font-weight:700; color: var(--navy); font-size:.95rem; line-height:1.2; }
.trust-item .s { font-size:.82rem; color: var(--muted); }

@media (max-width: 991px){ .section { padding:3.5rem 0; } .hero { min-height:auto; } .hero__content { padding:5.5rem 0 4rem; } }
