/* INN Group main site — home page interactions & polish */

:root {
    --inn-navy: #094978;
    --inn-navy-deep: #072f4c;
    --inn-blue: #105e96;
    --inn-sky: #2388c2;
    --inn-muted: #5f6b7a;
    --inn-surface: #f4f7fb;
}

.service-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(9, 73, 120, 0.12);
    box-shadow: 0 8px 24px rgba(7, 47, 76, 0.12);
}

.service-card--dark .service-card__title,
.service-card--dark .service-card__text {
    color: #fff !important;
}

.service-card--dark .service-card__rule {
    background: rgba(255, 255, 255, 0.45) !important;
}

.service-card--light .service-card__title {
    color: #111827 !important;
}

.service-card--light .service-card__text {
    color: #4b5563 !important;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(7, 47, 76, 0.18);
    border-color: rgba(9, 73, 120, 0.22);
    z-index: 10;
    position: relative;
}

.operate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(9, 73, 120, 0.1);
    box-shadow: 0 6px 18px rgba(7, 47, 76, 0.06);
}

.operate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(7, 47, 76, 0.1);
    border-color: rgba(9, 73, 120, 0.2);
}

.operate-card img {
    transition: transform 0.45s ease;
}

.operate-card:hover img {
    transform: scale(1.05);
}

.expertise-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid rgba(9, 73, 120, 0.1);
    box-shadow: 0 8px 22px rgba(7, 47, 76, 0.1);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(7, 47, 76, 0.16);
    border-color: rgba(9, 73, 120, 0.22);
    z-index: 10;
    position: relative;
}

.expertise-card:hover .learn-btn {
    background-color: #094978 !important;
    color: white !important;
}

.learn-btn,
.hero-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Scroll motion — never hide content (tunnel / no-JS safe) */
.fade-in,
.slide-left,
.slide-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    html.js-ready .fade-in.visible,
    html.js-ready .slide-left.visible,
    html.js-ready .slide-right.visible {
        animation: inn-reveal 0.7s ease both;
    }
}

@keyframes inn-reveal {
    from {
        opacity: 0.35;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.font-display-main {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.inn-main-nav-logo {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: min(11.5rem, 52vw);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 640px) {
    .inn-main-nav-logo {
        height: 3rem;
        max-width: 12.5rem;
    }
}

@media (min-width: 1024px) {
    .inn-main-nav-logo {
        height: 3.25rem;
        max-width: 13.5rem;
    }
}

.inn-main-header-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ——— Hero ——— */
.inn-main-hero {
    --inn-hero-image: none;
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(145deg, #041e32 0%, #094978 48%, #0a5f96 100%);
}

.inn-main-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--inn-hero-image);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: inn-hero-kenburns 26s ease-out forwards;
}

.inn-main-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 30, 50, 0.62) 0%, rgba(7, 47, 76, 0.48) 40%, rgba(4, 30, 50, 0.78) 100%),
        linear-gradient(90deg, rgba(4, 30, 50, 0.28) 0%, transparent 50%, rgba(4, 30, 50, 0.18) 100%);
    pointer-events: none;
}

.inn-main-hero__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    padding: 2.25rem 1rem 2rem;
}

@media (min-width: 640px) {
    .inn-main-hero__inner {
        padding: 2.75rem 1.5rem 2.25rem;
    }
}

.inn-main-hero__headline {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 2.5rem;
    padding-top: 0.25rem;
    gap: 0;
}

.inn-main-hero__brand {
    margin: 0 0 0.75rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 6.5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.4);
}

.inn-main-hero__eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.inn-main-hero__title {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(1.9rem, 4.4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.inn-main-hero__lead {
    margin: 1.1rem 0 0;
    max-width: 34rem;
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 3;
}

.inn-main-hero__rule {
    margin-top: 1.35rem;
    width: 4.75rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.inn-main-hero__cards {
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    margin-top: 0.5rem;
}

@keyframes inn-hero-kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .inn-main-hero__media { animation: none; transform: none; }
}

/* ——— Sections ——— */
.inn-main-section {
    padding: 5.25rem 0;
}

.inn-main-section--operate { background: #fff; }
.inn-main-section--expertise { background: var(--inn-surface); }

.inn-main-section__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .inn-main-section__inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .inn-main-section__inner { padding: 0 2rem; }
}

.inn-main-section__intro {
    text-align: center;
    margin-bottom: 3.25rem;
}

.inn-main-section__title {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.12;
}

.inn-main-section__ornament {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--inn-navy-deep);
}

.inn-main-section__ornament span {
    display: block;
    width: 3.5rem;
    height: 1px;
    background: #dbe3ec;
}

.inn-main-section__ornament i { font-size: 1.15rem; }

.inn-main-section__lead {
    margin: 1.15rem auto 0;
    max-width: 38rem;
    color: var(--inn-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ——— Mission ——— */
.inn-main-mission {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5.25rem 1rem;
    text-align: center;
    color: #fff;
}

.inn-main-mission__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--inn-hero-image, none);
    background-size: cover;
    background-position: center 60%;
    transform: scale(1.03);
}

.inn-main-mission__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(9, 73, 120, 0.9) 0%, rgba(16, 94, 150, 0.86) 100%);
}

.inn-main-mission__inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    margin: 0 auto;
}

.inn-main-mission__title {
    margin: 0;
    font-size: clamp(1.85rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
}

.inn-main-mission__lead {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.inn-main-mission__rule {
    width: 3.5rem;
    height: 2px;
    margin: 1.5rem auto;
    background: rgba(255, 255, 255, 0.5);
}

.inn-main-mission__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--inn-navy);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
}

.inn-main-mission__btn:hover { background: #f3f4f6; }

/* ——— Stats ——— */
.inn-main-stats {
    padding: 4.5rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #094978 0%, #105e96 100%);
}

.inn-main-stats__inner {
    max-width: 80rem;
    margin: 0 auto;
}

.inn-main-stats__value {
    margin: 0 0 0.4rem;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.inn-main-stats__label {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}
