/* ═══════════════════════════════════════════════════════════
   Licences & Records page — templates/template-licenses.php
   Follows the shared design system: blue badge, black titles,
   green buttons, 24px cards with a top accent bar.
   ═══════════════════════════════════════════════════════════ */

.lic-page {
    --lic-blue:  #2f5aae;
    --lic-teal:  #338eaa;
    --lic-green: #27ae60;
    --lic-ink:   #0c1a2a;
    --lic-mute:  #5b6b7f;
    --lic-line:  #e8ecf1;
    background: #fff;
}

.lic-page .container {
    max-width: 1260px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ─── Buttons ─── */
.lic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.lic-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.lic-btn--sm { padding: 11px 20px; font-size: 14.5px; }

.lic-btn--green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    box-shadow: 0 8px 30px rgba(39, 174, 96, .3);
}
.lic-btn--green:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(39, 174, 96, .4); color: #fff; }

.lic-btn--ghost {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}
.lic-btn--ghost:hover { background: rgba(255, 255, 255, .22); transform: translateY(-3px); color: #fff; }

.lic-btn--ghost-dark {
    background: #fff;
    color: var(--lic-blue);
    border-color: #d5deef;
}
.lic-btn--ghost-dark:hover {
    transform: translateY(-3px);
    border-color: var(--lic-blue);
    box-shadow: 0 10px 26px rgba(47, 90, 174, .18);
    color: var(--lic-blue);
}

.lic-btn--disabled {
    background: #f1f4f8;
    color: #9aa7b8;
    border-color: var(--lic-line);
    cursor: not-allowed;
}

/* ─── Hero ─── */
.lic-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #0d2247 0%, #1e3f7a 45%, #2f5aae 100%);
    padding: 150px 0 110px;
}

/* Background photo — slow Ken-Burns drift so the hero never feels static */
.lic-hero__bg {
    position: absolute;
    inset: -4%;
    z-index: -3;
    background-image: var(--lic-hero-img, none);
    background-size: cover;
    background-position: var(--lic-hero-pos, center 68%);
    animation: licKenBurns 26s ease-in-out infinite alternate;
}
@keyframes licKenBurns {
    from { transform: scale(1)    translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

/* Brand gradient veil — keeps the copy readable over any photo */
.lic-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(51, 142, 170, .35), transparent 60%),
        linear-gradient(135deg,
            rgba(9, 24, 51, calc(var(--lic-overlay, .78) + .12)) 0%,
            rgba(21, 52, 104, var(--lic-overlay, .78)) 45%,
            rgba(30, 63, 122, calc(var(--lic-overlay, .78) - .06)) 100%);
}
.lic-hero:not(.has-bg) .lic-hero__veil { opacity: .55; }

/* Fine grid texture */
.lic-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 100%);
}

.lic-hero__inner { position: relative; z-index: 2; text-align: center; }

/* Floating decorative shapes */
.lic-hero__shape { position: absolute; pointer-events: none; z-index: 0; }
.lic-hero__shape--1 {
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .11), transparent 68%);
    top: -120px; inset-inline-start: -110px;
    animation: licFloat 15s ease-in-out infinite;
}
.lic-hero__shape--2 {
    width: 280px; height: 280px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .16);
    bottom: -80px; inset-inline-end: 5%;
    animation: licFloat 19s ease-in-out infinite reverse;
}
.lic-hero__shape--3 {
    width: 165px; height: 165px; border-radius: 32px;
    background: rgba(253, 224, 71, .13);
    border: 1px solid rgba(253, 224, 71, .22);
    top: 15%; inset-inline-end: 11%;
    animation: licSpin 24s ease-in-out infinite;
}
.lic-hero__shape--4 {
    width: 96px; height: 96px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .22);
    bottom: 20%; inset-inline-start: 12%;
    animation: licFloat 13s ease-in-out infinite 1.5s;
}
@keyframes licFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -26px, 0); }
}
@keyframes licSpin {
    0%, 100% { transform: rotate(24deg) translate3d(0, 0, 0); }
    50%      { transform: rotate(38deg) translate3d(0, -22px, 0); }
}

/* Staggered entrance — --d carries each element's delay */
.lic-in {
    opacity: 0;
    animation: licIn .85s cubic-bezier(.22, .8, .3, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes licIn {
    from { opacity: 0; transform: translate3d(0, 34px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.lic-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.lic-hero__badge svg { width: 18px; height: 18px; color: #6ee7a8; }

.lic-hero__title {
    color: #fff;
    font-size: clamp(34px, 6vw, 66px);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -.5px;
    margin: 0 0 18px;
    text-shadow: 0 4px 34px rgba(0, 0, 0, .32);
}
.lic-hero__sub {
    color: #fde047;
    font-size: clamp(18px, 2.6vw, 27px);
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 20px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.lic-hero__desc {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(15.5px, 1.8vw, 18.5px);
    line-height: 2.05;
    max-width: 880px;
    margin: 0 auto 38px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}
.lic-hero__cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Quick-facts strip */
.lic-hero__facts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
}
.lic-hero__facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 210px;
    max-width: 260px;
    padding: 14px 18px;
    border-radius: 18px;
    /* Darker than the photo behind it — the numbers have to stay legible
       wherever the Ken-Burns drift happens to be. */
    background: rgba(9, 24, 51, .46);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.lic-hero__facts li:hover {
    transform: translateY(-5px);
    background: rgba(9, 24, 51, .62);
    border-color: rgba(255, 255, 255, .45);
}
.lic-fact__icon {
    width: 42px; height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #0c1a2a;
    background: #fde047;
    border: 1px solid rgba(255, 255, 255, .3);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.lic-fact__icon svg { width: 21px; height: 21px; }
.lic-hero__facts li:hover .lic-fact__icon {
    transform: scale(1.1) rotate(-6deg);
    background: #fff;
}

.lic-fact__text { display: flex; flex-direction: column; gap: 2px; text-align: start; min-width: 0; }

.lic-fact__val {
    color: #fff;
    font-size: 16.5px;
    font-weight: 900;
    letter-spacing: .3px;
    line-height: 1.35;
    word-break: break-word;
}
.lic-fact__lbl {
    color: rgba(255, 255, 255, .8);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

/* Scroll cue */
.lic-hero__scroll {
    position: absolute;
    inset-block-end: 26px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 27px; height: 44px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, .5);
    display: grid;
    justify-items: center;
    padding-top: 8px;
    opacity: 0;
    animation: licIn .8s ease forwards .95s;
}
.lic-hero__scroll span {
    width: 4px; height: 8px;
    border-radius: 4px;
    background: #fff;
    animation: licWheel 1.9s ease-in-out infinite;
}
@keyframes licWheel {
    0%      { opacity: 0; transform: translateY(-4px); }
    45%     { opacity: 1; transform: translateY(6px); }
    100%    { opacity: 0; transform: translateY(15px); }
}
.lic-hero__scroll:hover { border-color: #fff; }

/* ─── Sections ─── */
.lic-section { position: relative; padding: 104px 0; }
.lic-section::before {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lic-blue), var(--lic-teal), var(--lic-green));
}
.lic-section--docs    { background: linear-gradient(160deg, #f8fbff, #eaf1fd 30%, #f0f4f8); }
.lic-section--banks   { background: #fff; }
.lic-section--map     { background: linear-gradient(160deg, #f8fbff, #eef4fc 60%, #f4f7fa); }
.lic-section--contact { background: #fff; }

.lic-page .section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--lic-blue), var(--lic-teal));
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .2px;
}
.lic-h2 {
    position: relative;
    text-align: center;
    color: var(--lic-ink);
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -.4px;
    margin: 0 0 18px;
}
/* Short gradient rule under every section title */
.lic-h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    border-radius: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--lic-blue), var(--lic-green));
}
.lic-section > .container > .lic-h2 { margin-bottom: 52px; }

/* ─── Document cards ─── */
.lic-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(355px, 1fr));
    gap: 28px;
}
/* Cards cascade in rather than all landing at once */
.lic-docs   > .reveal:nth-child(2),
.lic-banks  > .reveal:nth-child(2),
.lic-contacts > .reveal:nth-child(2) { animation-delay: .12s; }
.lic-docs   > .reveal:nth-child(3),
.lic-banks  > .reveal:nth-child(3),
.lic-contacts > .reveal:nth-child(3) { animation-delay: .24s; }
.lic-docs   > .reveal:nth-child(4),
.lic-contacts > .reveal:nth-child(4) { animation-delay: .36s; }
.lic-docs   > .reveal:nth-child(5) { animation-delay: .48s; }
.lic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--lic-line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lic-card::before {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 5px;
    opacity: 1;
    background: linear-gradient(90deg, var(--lic-blue), var(--lic-teal));
}
/* Soft glow that fades in behind the card on hover */
.lic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background: radial-gradient(90% 60% at 50% 0%, rgba(47, 90, 174, .07), transparent 70%);
}
.lic-card:hover::after { opacity: 1; }
.lic-card:nth-child(2)::before { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.lic-card:nth-child(3)::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.lic-card:nth-child(4)::before { background: linear-gradient(90deg, #be185d, #f472b6); }
.lic-card:nth-child(5)::before { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.lic-card:hover {
    transform: translateY(-10px);
    border-color: #cdd9ee;
    box-shadow: 0 28px 60px rgba(12, 26, 42, .15);
}

.lic-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 24px 18px;
}
.lic-card__icon {
    width: 72px; height: 72px;
    flex: 0 0 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--lic-blue), var(--lic-teal));
    box-shadow: 0 10px 26px rgba(47, 90, 174, .26);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lic-card:hover .lic-card__icon { transform: scale(1.09) rotate(-5deg); }
.lic-card:nth-child(2) .lic-card__icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.lic-card:nth-child(3) .lic-card__icon { background: linear-gradient(135deg, #d97706, #fbbf24); }
.lic-card:nth-child(4) .lic-card__icon { background: linear-gradient(135deg, #be185d, #f472b6); }
.lic-card:nth-child(5) .lic-card__icon { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.lic-card__icon svg { width: 35px; height: 35px; }

.lic-card__title {
    color: var(--lic-ink);
    font-size: 22.5px;
    font-weight: 900;
    margin: 0 0 4px;
    line-height: 1.4;
}
.lic-card__issuer { color: var(--lic-mute); font-size: 14px; margin: 0; font-weight: 600; }

.lic-card__body { padding: 0 24px 8px; flex: 1; }

.lic-rows { margin: 0 0 18px; }
.lic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 10px;
    margin-inline: -10px;
    border-radius: 10px;
    border-bottom: 1px dashed var(--lic-line);
    transition: background .25s ease;
}
.lic-row:hover { background: #f6f9ff; }
.lic-row:last-child { border-bottom: 0; }
.lic-row dt {
    color: var(--lic-mute);
    font-size: 14.5px;
    font-weight: 700;
    flex: 0 0 auto;
}
.lic-row dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: end;
}
.lic-row__val {
    color: var(--lic-ink);
    font-size: 15px;
    font-weight: 800;
    word-break: break-word;
}

.lic-copy {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--lic-line);
    background: #f7f9fc;
    color: var(--lic-blue);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lic-copy svg { width: 15px; height: 15px; }
.lic-copy:hover { background: var(--lic-blue); color: #fff; transform: translateY(-2px); }
.lic-copy.is-done { background: var(--lic-green); color: #fff; border-color: var(--lic-green); }
.lic-copy--solid { background: #fff; }

/* Document thumbnail */
.lic-card__media { margin-bottom: 18px; }
/* Documents arrive in whatever shape the authority issued them — the CR is
   landscape, the address proof is A4 portrait. `contain` shows the whole
   page instead of cropping the half that matters. */
.lic-thumb {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--lic-line);
    background: #f7f9fc;
    aspect-ratio: 4 / 3;
    padding: 8px;
}
.lic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform .55s cubic-bezier(.22, .8, .3, 1);
}
.lic-thumb:hover img { transform: scale(1.06); }
.lic-thumb__zoom {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(12, 26, 42, .7);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}
.lic-thumb__zoom svg { width: 18px; height: 18px; }
.lic-thumb:hover .lic-thumb__zoom { opacity: 1; }

.lic-thumb--empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #9aa7b8;
    border-style: dashed;
    border-width: 2px;
}
.lic-thumb--empty svg { width: 34px; height: 34px; }
.lic-thumb--empty span { font-size: 13.5px; font-weight: 700; }

.lic-card__foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--lic-line);
    margin-top: auto;
}

/* ─── Bank accounts ─── */
.lic-banks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
    align-items: start;
}
.lic-bank {
    --brand: #2f5aae;
    position: relative;
    background: #fff;
    border: 2px solid var(--lic-line);
    border-radius: 24px;
    padding: 24px 22px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Accent bar + a tint of the bank's own colour behind the header */
.lic-bank::before {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 5px;
    background: var(--brand);
    z-index: 2;
}
.lic-bank::after {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--brand) 12%, transparent),
        transparent);
}
.lic-bank:hover {
    transform: translateY(-10px);
    border-color: var(--brand);
    box-shadow: 0 28px 60px color-mix(in srgb, var(--brand) 26%, transparent);
}

.lic-bank__head,
.lic-bank__field,
.lic-bank__card { position: relative; z-index: 1; }

.lic-bank__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lic-bank__logo {
    width: 78px; height: 54px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--lic-line));
    border-radius: 12px;
    padding: 6px;
}
.lic-bank__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.lic-bank__logo--glyph {
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    border-color: color-mix(in srgb, var(--brand) 34%, var(--lic-line));
    color: var(--brand);
    padding: 0;
}
.lic-bank__logo--glyph svg { width: 28px; height: 28px; }
.lic-bank__id { min-width: 0; }
.lic-bank__name { color: var(--lic-ink); font-size: 20px; font-weight: 900; margin: 0; line-height: 1.35; }
.lic-bank__note { margin: 3px 0 0; color: var(--brand); font-size: 13.5px; font-weight: 800; }

/* Label above the number: a 24-character IBAN needs the full card width,
   and side-by-side it broke mid-digits. */
.lic-bank__field {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label copy" "value copy";
    align-items: center;
    column-gap: 10px;
    background: color-mix(in srgb, var(--brand) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--lic-line));
    border-radius: 14px;
    padding: 11px 14px;
    margin-bottom: 10px;
}
.lic-bank__label {
    grid-area: label;
    color: var(--lic-mute);
    font-size: 12.5px;
    font-weight: 700;
}
.lic-bank__value {
    grid-area: value;
    color: var(--lic-ink);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .3px;
    text-align: start;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.lic-bank__value::-webkit-scrollbar { display: none; }
.lic-bank .lic-copy { grid-area: copy; }
.lic-bank .lic-copy {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--lic-line));
    color: var(--brand);
}
.lic-bank .lic-copy:hover { background: var(--brand); color: #fff; }

/* The ready-made account card sits under the numbers */
.lic-bank__card {
    display: block;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--lic-line));
    background: #fff;
}
.lic-bank__card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .55s cubic-bezier(.22, .8, .3, 1);
}
.lic-bank__card:hover img { transform: scale(1.03); }

.lic-banks__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
    margin: 32px auto 0;
    padding: 18px 22px;
    border-radius: 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}
.lic-banks__note svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 4px; color: #d97706; }

/* ─── Map ─── */
.lic-map {
    background: #fff;
    border: 2px solid var(--lic-line);
    border-radius: 24px;
    overflow: hidden;
}
.lic-map__frame { position: relative; width: 100%; aspect-ratio: 16 / 7; background: #eef2f7; }
.lic-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lic-map__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 26px;
}
.lic-map__address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--lic-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}
.lic-map__address svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--lic-blue); }

/* ─── Contacts ─── */
.lic-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.lic-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 20px;
    background: #fff;
    border: 2px solid var(--lic-line);
    border-radius: 24px;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lic-contact:hover {
    transform: translateY(-10px);
    border-color: #cdd9ee;
    box-shadow: 0 28px 60px rgba(12, 26, 42, .15);
}
.lic-contact__icon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.lic-contact:hover .lic-contact__icon { transform: scale(1.1) rotate(-7deg); }
.lic-contact__icon {
    width: 62px; height: 62px;
    flex: 0 0 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
}
.lic-contact__icon svg { width: 28px; height: 28px; }
.lic-contact__icon--phone    { background: linear-gradient(135deg, #2f5aae, #338eaa); }
.lic-contact__icon--whatsapp { background: linear-gradient(135deg, #16a34a, #4ade80); }
.lic-contact__icon--email    { background: linear-gradient(135deg, #d97706, #fbbf24); }
.lic-contact__icon--web      { background: linear-gradient(135deg, #6d28d9, #a78bfa); }

.lic-contact__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lic-contact__label { color: var(--lic-mute); font-size: 13.5px; font-weight: 700; }
.lic-contact__value {
    color: var(--lic-ink);
    font-size: 17px;
    font-weight: 900;
    word-break: break-word;
}

/* ─── Social accounts ─── */
.lic-section--social { background: linear-gradient(160deg, #f7fbff, #eef4fc 55%, #f3f7fb); }

.lic-social__lead {
    max-width: 760px;
    margin: -30px auto 44px;
    text-align: center;
    color: var(--lic-mute);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.95;
}

.lic-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.lic-socials > .reveal:nth-child(2) { animation-delay: .08s; }
.lic-socials > .reveal:nth-child(3) { animation-delay: .16s; }
.lic-socials > .reveal:nth-child(4) { animation-delay: .24s; }
.lic-socials > .reveal:nth-child(5) { animation-delay: .32s; }
.lic-socials > .reveal:nth-child(6) { animation-delay: .4s; }
.lic-socials > .reveal:nth-child(7) { animation-delay: .48s; }

.lic-social {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    background: #fff;
    border: 2px solid var(--lic-line);
    border-radius: 22px;
    text-decoration: none;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Brand colour washes in from the edge on hover */
.lic-social::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand, var(--lic-blue));
    opacity: 0;
    transition: opacity .3s ease;
}
.lic-social:hover {
    transform: translateY(-8px);
    border-color: var(--brand, var(--lic-blue));
    box-shadow: 0 24px 52px color-mix(in srgb, var(--brand, #2f5aae) 30%, transparent);
}
.lic-social:hover::before { opacity: .06; }

.lic-social__icon {
    position: relative;
    width: 58px; height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand, var(--lic-blue));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand, #2f5aae) 38%, transparent);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lic-social__icon svg { width: 26px; height: 26px; }
.lic-social:hover .lic-social__icon { transform: scale(1.1) rotate(-7deg); }

.lic-social__text { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lic-social__name { color: var(--lic-ink); font-size: 17px; font-weight: 900; }
.lic-social__handle {
    color: var(--lic-mute);
    font-size: 14px;
    font-weight: 700;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lic-social__go {
    position: relative;
    width: 34px; height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2f6fc;
    color: var(--brand, var(--lic-blue));
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.lic-social__go svg { width: 16px; height: 16px; }
/* Arrow points the way the page reads */
[dir="rtl"] .lic-social__go svg { transform: scaleX(-1); }
.lic-social:hover .lic-social__go {
    background: var(--brand, var(--lic-blue));
    color: #fff;
    transform: translateX(-4px);
}
[dir="ltr"] .lic-social:hover .lic-social__go { transform: translateX(4px); }

/* ─── Copy toast ─── */
.lic-toast {
    position: fixed;
    inset-block-end: 28px;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(14px);
    z-index: 9999;
    padding: 12px 26px;
    border-radius: 50px;
    background: var(--lic-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.lic-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Responsive ─── */
/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

/* ─── Tablet ─── */
@media (max-width: 900px) {
    .lic-docs, .lic-banks { grid-template-columns: 1fr; }
    .lic-socials { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .lic-section { padding: 76px 0; }
    .lic-hero { min-height: auto; padding: 130px 0 90px; }
    .lic-hero__shape--1 { width: 300px; height: 300px; }
    .lic-hero__shape--3 { inset-inline-end: 4%; opacity: .7; }
}

/* ─── Phone ─── */
@media (max-width: 640px) {

    .lic-page .container { padding-inline: 16px; }
    .lic-section { padding: 58px 0; }

    /* Hero — the photo is busy at this size, so the veil goes heavier and
       the decorative shapes drop out entirely. */
    .lic-hero { min-height: auto; padding: 92px 0 58px; }
    .lic-hero__veil { --lic-overlay: .88; }
    .lic-hero__grid { opacity: .3; }
    .lic-hero__shape--2,
    .lic-hero__shape--3,
    .lic-hero__shape--4 { display: none; }
    .lic-hero__shape--1 { width: 230px; height: 230px; top: -80px; inset-inline-start: -80px; }
    .lic-hero__scroll { display: none; }

    .lic-hero__badge { padding: 9px 18px; font-size: 13.5px; margin-bottom: 16px; }
    .lic-hero__badge svg { width: 16px; height: 16px; }
    .lic-hero__title { font-size: 29px; line-height: 1.32; margin-bottom: 12px; }
    .lic-hero__sub { font-size: 17px; line-height: 1.55; margin-bottom: 14px; }
    .lic-hero__desc { font-size: 14.5px; line-height: 1.95; margin-bottom: 26px; }

    .lic-hero__cta { gap: 11px; }
    .lic-hero__cta .lic-btn { width: 100%; padding: 14px 20px; font-size: 15.5px; }

    /* One chip per row. A 15-digit VAT number cannot share a 375px line with
       its label, and half-width chips were breaking it mid-number. */
    .lic-hero__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 26px;
    }
    .lic-hero__facts li {
        max-width: none;
        padding: 11px 14px;
        gap: 12px;
        border-radius: 15px;
    }
    .lic-fact__icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
    .lic-fact__icon svg { width: 19px; height: 19px; }
    /* Label then number, both packed to the reading edge. The site-wide
       WhatsApp button floats over the opposite bottom corner, so leaving that
       side empty keeps it off the numbers. */
    .lic-fact__text {
        flex: 1;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 10px;
    }
    .lic-fact__lbl { font-size: 12.5px; order: -1; flex: 0 0 auto; }
    .lic-fact__val { font-size: 15px; letter-spacing: .2px; }

    /* Section headings */
    .lic-page .section-badge { font-size: 13px; padding: 7px 18px; }
    .lic-h2 { font-size: 25px; margin-bottom: 12px; }
    .lic-h2::after { width: 58px; height: 3px; margin-top: 14px; }
    .lic-section > .container > .lic-h2 { margin-bottom: 34px; }

    /* Document cards */
    .lic-docs { gap: 20px; }
    .lic-card { border-radius: 20px; }
    .lic-card__head { padding: 20px 16px 14px; gap: 13px; }
    .lic-card__icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
    .lic-card__icon svg { width: 26px; height: 26px; }
    .lic-card__title { font-size: 19px; }
    .lic-card__issuer { font-size: 13px; }
    .lic-card__body { padding: 0 16px 6px; }
    .lic-card__foot { padding: 15px 16px 18px; gap: 9px; }
    .lic-card__foot .lic-btn { width: 100%; }

    .lic-row { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; }
    .lic-row dt { font-size: 13px; }
    .lic-row dd { text-align: start; }
    .lic-row__val { font-size: 14.5px; }
    .lic-thumb { aspect-ratio: 3 / 2; }

    /* Bank cards */
    .lic-banks { gap: 18px; }
    .lic-bank { border-radius: 20px; padding: 20px 16px; }
    .lic-bank__logo { width: 66px; height: 46px; flex-basis: 66px; }
    .lic-bank__name { font-size: 18px; }
    .lic-bank__field { padding: 10px 12px; }
    .lic-bank__value { font-size: 14.5px; }
    .lic-banks__note { padding: 15px 16px; font-size: 14px; line-height: 1.85; border-radius: 15px; }
    .lic-banks__note svg { width: 19px; height: 19px; flex-basis: 19px; }

    /* Map */
    .lic-map { border-radius: 20px; }
    .lic-map__frame { aspect-ratio: 3 / 4; }
    .lic-map__info { padding: 16px; gap: 14px; }
    .lic-map__address { font-size: 14.5px; }
    .lic-map__info .lic-btn { width: 100%; }

    /* Contacts + social */
    .lic-contacts { gap: 14px; }
    .lic-contact { padding: 16px 15px; gap: 13px; border-radius: 20px; }
    .lic-contact__icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
    .lic-contact__icon svg { width: 24px; height: 24px; }
    .lic-contact__value { font-size: 15.5px; }

    .lic-socials { grid-template-columns: 1fr; gap: 13px; }
    .lic-social { padding: 15px 16px; gap: 13px; border-radius: 18px; }
    .lic-social__icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; }
    .lic-social__icon svg { width: 23px; height: 23px; }
    .lic-social__name { font-size: 15.5px; }
    .lic-social__lead { margin-top: -18px; margin-bottom: 28px; font-size: 14.5px; line-height: 1.85; }

    /* Toast clears the floating WhatsApp button */
    .lic-toast { inset-block-end: 90px; font-size: 14px; padding: 11px 20px; }

    /* Hover lifts are pointless on touch and make taps feel jumpy */
    .lic-card:hover,
    .lic-bank:hover,
    .lic-contact:hover,
    .lic-social:hover { transform: none; }
}

/* ─── Small phones ─── */
@media (max-width: 380px) {
    .lic-hero__title { font-size: 26px; }
    .lic-hero__sub { font-size: 15.5px; }
    .lic-fact__val { font-size: 14px; }
    .lic-fact__lbl { font-size: 11.5px; }
    .lic-h2 { font-size: 23px; }
    .lic-card__title { font-size: 17.5px; }
    .lic-bank__value { font-size: 13.5px; }
}

/* ─── Reduced motion — keep everything visible, drop the movement ─── */
@media (prefers-reduced-motion: reduce) {
    .lic-page *,
    .lic-page *::before,
    .lic-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .lic-in,
    .lic-hero__scroll { opacity: 1 !important; }
    .lic-hero__bg { animation: none !important; }
}

/* No-JS safety — the reveal observer never runs, so never hide the content */
.no-js .lic-page .reveal { opacity: 1 !important; }
