/* ITP helpdesk - home page: welcome section over the ITP building photo,
   then a light band with both action cards overlapping the edge between them.
   Header, footer and base styles live in itp-pages.css. */

:root { --itp-overlap: 76px; }

/* ---------- Hero ---------- */
.itp-main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}
.itp-hero {
    position: relative;
    overflow: hidden;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: clamp(22px, 4vh, 48px) 0 calc(var(--itp-overlap) + clamp(16px, 3vh, 32px));
    background:
        linear-gradient(100deg, rgba(11, 21, 38, .94) 0%, rgba(14, 30, 56, .86) 45%, rgba(14, 30, 56, .62) 100%),
        url("../images/itp-hero.jpg?v=1") center 40% / cover no-repeat,
        #0e1e38;
}
/* Thin orange chevron lines, as on itp-prizren.com and in the ITP logo */
.itp-hero-glow {
    position: absolute;
    inset: 0;
    background: url("../images/itp-lines.svg?v=1") right center / auto 100% no-repeat;
    pointer-events: none;
}
.itp-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    pointer-events: none;
}
.itp-hero-inner { position: relative; }
.itp-hero-text {
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 18px rgba(30, 18, 140, .45);
}
.itp-hero-text h1,
.itp-hero-text h2 {
    background: none;
    color: #fff;
    padding: 0;
    margin: 0 0 8px;
    font-size: clamp(28px, 4.6vh, 42px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}
.itp-hero-text h2 br { display: none; }
.itp-hero-text p,
.itp-hero-text p span,
.itp-hero-text h4 {
    color: rgba(255, 255, 255, .86) !important;
    font-size: clamp(15px, 2.2vh, 17px);
    line-height: 1.55;
    margin: 0 auto;
    font-weight: 400;
}

/* ---------- Action cards: same size, centred, symmetric ---------- */
.itp-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
    gap: 24px;
    margin-top: calc(-1 * var(--itp-overlap));
}
.itp-home {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    padding-bottom: clamp(18px, 3.5vh, 36px);
}
.itp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(18px, 3.2vh, 28px) 26px;
    background: #fff;
    border: 1px solid var(--itp-line);
    border-radius: 6px;
    box-shadow: 0 18px 44px rgba(14, 30, 56, .10);
    color: var(--itp-ink);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.itp-card:hover,
.itp-card:focus {
    color: var(--itp-ink);
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, .35);
    box-shadow: 0 26px 56px rgba(255, 102, 0, .18);
}
.itp-card:focus-visible { outline: 3px solid rgba(255, 102, 0, .45); outline-offset: 3px; }
.itp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 6.4vh, 50px);
    height: clamp(42px, 6.4vh, 50px);
    border-radius: 4px;
    font-size: 19px;
    margin-bottom: clamp(10px, 1.8vh, 14px);
}
.itp-card-primary .itp-card-icon {
    background: var(--itp-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 102, 0, .35);
}
.itp-card-secondary .itp-card-icon {
    background: var(--itp-primary-soft);
    color: var(--itp-primary);
}
.itp-card h2 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 6px;
    color: var(--itp-ink);
}
.itp-card p {
    color: var(--itp-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 clamp(12px, 2.2vh, 18px);
    flex: 1;
}
.itp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, color .2s;
}
.itp-btn i { font-size: 12px; transition: transform .2s; }
.itp-card:hover .itp-btn i { transform: translateX(3px); }
.itp-btn-primary { background: var(--itp-primary); color: #fff; }
.itp-card:hover .itp-btn-primary { background: var(--itp-primary-dark); }
.itp-btn-outline {
    color: var(--itp-primary);
    box-shadow: inset 0 0 0 2px var(--itp-primary);
}
.itp-card:hover .itp-btn-outline { background: var(--itp-primary); color: #fff; }

/* ---------- Lower desktop screens: icon beside the title, still centred ---------- */
@media (min-width: 768px) and (max-height: 760px) {
    :root { --itp-overlap: 64px; }
    .itp-hero { padding: 16px 0 calc(var(--itp-overlap) + 14px); }
    .itp-hero-text h1,
    .itp-hero-text h2 { font-size: 30px; margin-bottom: 4px; }
    .itp-cards { gap: 20px; grid-template-columns: repeat(2, minmax(0, 420px)); }
    .itp-card {
        display: grid;
        grid-template-columns: 1fr auto auto 1fr;
        align-items: center;
        column-gap: 12px;
        padding: 18px 24px;
    }
    .itp-card-icon { grid-column: 2; width: 38px; height: 38px; border-radius: 4px; font-size: 16px; margin: 0; }
    .itp-card h2 { grid-column: 3; margin: 0; font-size: 18px; white-space: nowrap; }
    .itp-card p { grid-column: 1 / -1; margin: 10px 0 12px; }
    .itp-card .itp-btn { grid-column: 1 / -1; justify-self: center; padding: 8px 16px; }
}

@media (max-width: 767px) {
    :root { --itp-overlap: 56px; }
    .itp-hero { padding: 40px 0 calc(var(--itp-overlap) + 24px); }
    .itp-hero-text h1,
    .itp-hero-text h2 { font-size: 28px; }
    .itp-hero-text p,
    .itp-hero-text p span { font-size: 15px; }
    .itp-cards { grid-template-columns: minmax(0, 420px); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .itp-card, .itp-btn, .itp-btn i { transition: none; }
    .itp-card:hover { transform: none; }
}
