/* Redesign: Industrial editorial style */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500&display=swap');

:root {
    --bg: #eef3fa;
    --surface: #ffffff;
    --surface-alt: #dde8f6;
    --ink: #0f1621;
    --ink-soft: #3e4d62;
    --line: #c9d7ea;
    --accent: #1768bf;
    --accent-dark: #0f4e92;
    --accent-soft: #cfe2f7;
    --signal: #2b86dc;
    --signal-dark: #15579f;
    --shadow: 0 12px 35px rgba(8, 19, 36, 0.14);
    --radius: 18px;
    --transition: 240ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background:
        radial-gradient(circle at 10% -10%, rgba(23, 104, 191, 0.12), transparent 40%),
        radial-gradient(circle at 92% 15%, rgba(15, 78, 146, 0.1), transparent 38%),
        var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 400;
}

a {
    color: var(--signal);
}

a:hover {
    color: var(--signal-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 0.75rem;
    top: 0.75rem;
    width: auto;
    height: auto;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    z-index: 1200;
}

:focus-visible {
    outline: 3px solid rgba(23, 104, 191, 0.35);
    outline-offset: 2px;
}

strong,
b {
    color: #0f1621;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link,
.form-label,
.btn {
    font-weight: 400;
}

.navbar {
    background: rgba(6, 12, 20, 0.9) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(236, 230, 216, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar-brand {
    color: #f2f8ff;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.navbar-brand img {
    border-radius: 8px;
    border: 2px solid rgba(207, 226, 247, 0.4);
}

.navbar .nav-link {
    color: rgba(226, 238, 252, 0.88);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--signal));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #f2f8ff;
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    background:
        linear-gradient(112deg, rgba(10, 20, 34, 0.92), rgba(23, 104, 191, 0.78)),
        linear-gradient(40deg, #050a12 0%, #0f2440 50%, #1457a4 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: auto -20% -45% -20%;
    height: 72%;
    background: radial-gradient(ellipse at center, rgba(180, 212, 247, 0.26), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.03;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 56ch;
    color: rgba(233, 243, 255, 0.93);
}

.hero-image {
    min-height: 320px;
    display: grid;
    place-items: center;
}

.hero-logo {
    width: min(92%, 390px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 28px;
    border: 4px solid rgba(207, 226, 247, 0.45);
    box-shadow:
        0 24px 45px rgba(15, 10, 8, 0.4),
        inset 0 0 0 2px rgba(207, 226, 247, 0.16);
    transform: rotate(-2deg);
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #0a1830;
    text-transform: uppercase;
    padding-bottom: 0.55rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(130px, 65%);
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--signal));
}

.card-highlight,
.service-card,
.benefit-card,
.contact-info,
.contact-form,
.service-detail,
.legal-document,
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-highlight {
    position: relative;
    overflow: hidden;
}

.card-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--signal));
}

.card-highlight .card-body {
    padding: 2.1rem 1.8rem 1.8rem;
}

.service-card,
.benefit-card {
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 107, 116, 0.45);
    box-shadow: 0 16px 32px rgba(25, 36, 41, 0.18);
}

.service-icon,
.benefit-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(150deg, var(--signal), var(--accent));
    box-shadow: 0 10px 20px rgba(15, 107, 116, 0.25);
}

.service-card h4,
.benefit-card h5 {
    font-size: 1.45rem;
    margin-bottom: 0.7rem;
}

.service-card p,
.benefit-card p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.page-header {
    position: relative;
    overflow: hidden;
    padding: clamp(3.1rem, 7vw, 5rem) 0;
    text-align: center;
    color: #f2f8ff;
    background: linear-gradient(130deg, #060d18, #12305a 58%, #1768bf);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: auto 10% -80px;
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(169, 206, 247, 0.3), transparent 72%);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.page-header p,
.page-header .text-muted {
    color: rgba(233, 243, 255, 0.9) !important;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.service-detail {
    padding: 1.8rem;
    position: relative;
    margin-bottom: 0;
}

.service-number {
    display: none;
}

.service-detail h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.9rem;
}

.service-detail p {
    color: var(--ink-soft);
    font-size: 1rem;
}

.alert-info {
    border: 1px solid rgba(23, 104, 191, 0.35);
    background: linear-gradient(180deg, rgba(23, 104, 191, 0.1), rgba(23, 104, 191, 0.06));
    color: #103864;
    border-radius: 12px;
}

.contact-info,
.contact-form {
    padding: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--signal), var(--accent));
}

.form-label {
    font-weight: 400;
    color: #142026;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: #fff;
    color: var(--ink);
    padding: 0.75rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(23, 104, 191, 0.5);
    box-shadow: 0 0 0 0.22rem rgba(23, 104, 191, 0.16);
}

.form-check-input {
    width: 1.15em;
    height: 1.15em;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn {
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 400;
    border-width: 2px;
    padding: 0.74rem 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(125deg, var(--accent), #d9814f);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(194, 97, 45, 0.34);
}

.btn-primary:hover {
    color: #fff;
    border-color: var(--accent-dark);
    background: linear-gradient(125deg, #b8592a, var(--accent-dark));
    box-shadow: 0 12px 24px rgba(159, 77, 36, 0.35);
}

.btn-outline-primary {
    color: var(--signal);
    border-color: var(--signal);
    background: rgba(15, 107, 116, 0.06);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--signal);
    border-color: var(--signal);
}

.btn-light {
    color: var(--ink);
    background: #e7f0fc;
    border-color: #e7f0fc;
}

.btn-light:hover {
    color: var(--ink);
    background: #cfe2f7;
    border-color: #cfe2f7;
}

.legal-document {
    padding: 2.1rem;
}

.legal-document h2 {
    font-size: 2rem;
}

.legal-document h3 {
    font-size: 1.35rem;
}

.legal-document p,
.legal-document li {
    color: var(--ink-soft);
}

.legal-document ul {
    margin-left: 1.2rem;
}

.legal-document a {
    color: var(--signal);
}

.legal-document a:hover {
    color: var(--signal-dark);
}

.modal-content {
    border-radius: 16px;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

#galleryCarousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 38px rgba(20, 28, 32, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#galleryCarousel .carousel-item {
    height: clamp(260px, 48vw, 620px);
    background: var(--surface-alt);
}

#galleryCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(105%) contrast(104%);
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: rgba(18, 31, 36, 0.6);
}

.gallery-admin-list {
    display: grid;
    gap: 0.9rem;
}

.gallery-admin-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.gallery-admin-thumb {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.gallery-admin-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gallery-admin-meta small {
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-light {
    background: linear-gradient(180deg, var(--surface-alt), #edf4fd) !important;
}

.bg-primary {
    background: linear-gradient(125deg, #060d18, #12305a 50%, #1768bf) !important;
}

.text-muted {
    color: #67757b !important;
}

footer {
    position: relative;
    background: linear-gradient(180deg, #050a12 0%, #0a182b 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer h5,
footer h6 {
    color: #f2f8ff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

footer a,
footer .text-muted {
    color: #c7d8ee !important;
}

footer a:hover {
    color: #ffffff !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }
    50% {
        transform: rotate(-2deg) translateY(-6px);
    }
}

.hero-logo {
    animation: heroFloat 6s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out both;
}

@media (max-width: 992px) {
    .hero-section {
        padding: 6.6rem 0 4.6rem;
        min-height: auto;
    }

    .hero-image {
        margin-top: 1.8rem;
    }

    .service-detail {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.08rem;
    }

    .hero-section .mt-4 {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .hero-section .btn-lg {
        width: 100%;
        margin-right: 0 !important;
    }

    .contact-info,
    .contact-form,
    .legal-document {
        padding: 1.35rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .navbar-brand img {
        height: 34px !important;
    }

    .btn {
        width: 100%;
    }

    .service-icon,
    .benefit-icon {
        width: 62px;
        height: 62px;
        font-size: 1.45rem;
    }

    .page-header {
        padding: 2.5rem 0;
    }

    .gallery-admin-item {
        grid-template-columns: 1fr;
    }

    .gallery-admin-thumb {
        width: 100%;
        height: 170px;
    }
}
