/* Public pages — Portfolio, Contact, Service detail */

.it-public {
    --it-ink: #152C4A;
    --it-teal: #18A89A;
    --it-teal-soft: #d4f5f1;
    --it-orange: #E8952E;
    --it-paper: #faf8f5;
    --it-muted: #6b7280;
    background: var(--it-paper);
}

.it-public .landing-header {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 44, 74, 0.06);
}

.it-public .landing-brand-text,
.it-public .landing-nav-link {
    color: var(--it-ink);
}

/* Hero strip */
.it-pub-hero {
    padding: 6.5rem 0 3rem;
    position: relative;
}

.it-pub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(232, 149, 46, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(24, 168, 154, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.it-pub-hero--detail {
    padding-bottom: 2rem;
}

.it-pub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--it-teal);
    margin-bottom: 1rem;
}

.it-pub-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--it-orange);
}

.it-pub-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--it-ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.it-pub-title--lg {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.it-pub-title em {
    font-style: normal;
    color: var(--it-teal);
}

.it-pub-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--it-muted);
    max-width: 540px;
    margin-bottom: 0;
}

.it-pub-crumb {
    font-size: 0.85rem;
    color: var(--it-muted);
}

.it-pub-crumb a {
    color: var(--it-ink);
    text-decoration: none;
}

.it-pub-crumb a:hover {
    color: var(--it-teal);
}

.it-pub-crumb span {
    margin: 0 0.35rem;
    opacity: 0.45;
}

.it-pub-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--it-teal-soft);
    color: var(--it-teal);
    margin-bottom: 0.85rem;
}

.it-pub-section {
    padding: 2.5rem 0 4rem;
}

.it-pub-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.it-pub-section-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--it-ink);
    margin: 0;
}

.it-pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.it-pub-meta {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(21, 44, 74, 0.12);
}

.it-pub-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.it-pub-meta dt {
    color: var(--it-muted);
    font-weight: 500;
}

.it-pub-meta dd {
    margin: 0;
    font-weight: 700;
    color: var(--it-ink);
}

/* Portfolio grid */
.it-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.it-portfolio-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.it-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(21, 44, 74, 0.1);
    border-color: rgba(24, 168, 154, 0.35);
    color: inherit;
}

.it-portfolio-card-media {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0ece6;
}

.it-portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.it-portfolio-card:hover .it-portfolio-card-media img {
    transform: scale(1.04);
}

.it-portfolio-card-body {
    padding: 1rem 1.15rem 1.15rem;
}

.it-portfolio-card-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--it-ink);
    margin: 0 0 0.35rem;
    line-height: 1.45;
}

.it-portfolio-card-body span {
    font-size: 0.78rem;
    color: var(--it-muted);
}

.it-portfolio-card-brand {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--it-teal);
    margin-top: 0.35rem;
}

.it-portfolio-showcase {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(500px, 72vh);
    max-height: 500px;
    min-height: 160px;
    padding: 1rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(21, 44, 74, 0.08);
    box-shadow: 0 24px 64px rgba(21, 44, 74, 0.12);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(24, 168, 154, 0.07) 0%, transparent 58%),
        linear-gradient(165deg, #f8f6f2 0%, #ebe6de 100%);
}

.it-portfolio-showcase img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(21, 44, 74, 0.14);
}

.it-portfolio-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 2px dashed rgba(21, 44, 74, 0.1);
    border-radius: 20px;
    color: var(--it-muted);
}

/* Contact */
.it-contact-wrap {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .it-contact-wrap {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
    }
}

.it-contact-aside {
    position: relative;
    padding: 2rem;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--it-ink) 0%, #1e4468 55%, #0d6b62 100%);
    color: #fff;
    overflow: hidden;
}

.it-contact-aside::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    top: -60px;
    left: -40px;
    pointer-events: none;
}

.it-contact-aside h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.it-contact-aside p {
    opacity: 0.88;
    line-height: 1.85;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.it-contact-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.it-contact-points li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.it-contact-points li:first-child {
    border-top: none;
    padding-top: 0;
}

.it-contact-points strong {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.15rem;
}

.it-contact-form-card {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(21, 44, 74, 0.06);
}

.it-contact-form-card label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--it-ink);
    margin-bottom: 0.45rem;
}

.it-contact-form-card .form-control {
    border-radius: 12px;
    border: 1px solid rgba(21, 44, 74, 0.12);
    padding: 0.75rem 1rem;
    background: var(--it-paper);
}

.it-contact-form-card .form-control:focus {
    border-color: var(--it-teal);
    box-shadow: 0 0 0 3px rgba(24, 168, 154, 0.15);
    background: #fff;
}

.it-contact-form-card .it-btn-solid {
    justify-content: center;
}

.it-contact-form-card .it-btn-solid:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(21, 44, 74, 0.15);
}

.it-contact-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(24, 168, 154, 0.25);
}

.it-contact-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--it-teal-soft);
    color: var(--it-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Service detail */
.it-srv-hero {
    padding: 6.5rem 0 2rem;
}

.it-srv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}

.it-srv-stat {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
}

.it-srv-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--it-muted);
    margin-bottom: 0.35rem;
}

.it-srv-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--it-ink);
}

.it-srv-faq {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.it-srv-faq details {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.it-srv-faq summary {
    padding: 1rem 1.15rem;
    font-weight: 700;
    color: var(--it-ink);
    cursor: pointer;
    list-style: none;
}

.it-srv-faq summary::-webkit-details-marker {
    display: none;
}

.it-srv-faq details[open] summary {
    border-bottom: 1px solid rgba(21, 44, 74, 0.06);
    color: var(--it-teal);
}

.it-srv-faq details p {
    padding: 0.45rem 1.4rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--it-muted);
    line-height: 1.8;
}

.it-srv-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--it-muted);
    max-width: 640px;
    margin-bottom: 0;
}
