/* ==========================================================
   UNION GROUP — PREMIUM CORPORATE REDESIGN
   Independent override stylesheet; existing files preserved
   Palette: warm ivory, sand, charcoal and bronze
   ========================================================== */

:root {
    --color-bg: #F5F8FC;
    --color-bg-secondary: #EAF0F7;
    --color-text: #17283D;
    --color-text-muted: #64748B;
    --color-primary: #0B1D35;
    --color-primary-glow: #245A88;
    --color-accent: #245A88;
    --color-accent-glow: #8FB8E8;
    --color-group-primary: #0B1D35;
    --color-group-secondary: #245A88;
    --color-group-dark: #0B1D35;
    --gradient-hero: linear-gradient(135deg, #0B1D35, #245A88);
    --gradient-text: linear-gradient(110deg, #0B1D35, #8FB8E8);
    --gradient-card: linear-gradient(145deg, #ffffff, #EAF0F7);
    --gradient-ship: linear-gradient(135deg, #0B1D35, #245A88);
    --gradient-construction: linear-gradient(135deg, #0B1D35, #245A88);
    --gradient-trading: linear-gradient(135deg, #0B1D35, #245A88);
    --shadow-glow: 0 8px 24px rgba(149, 107, 61, .18);
    --shadow-ship: 0 8px 24px rgba(149, 107, 61, .18);
    --shadow-construction: 0 8px 24px rgba(149, 107, 61, .18);
    --border-glass: 1px solid rgba(11, 29, 53, .13);
}

/* Global foundation */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: #F5F8FC !important;
    color: #17283D !important;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1200px, 100%);
}

::selection {
    background: #245A88;
    color: #17283D;
}

/* Header */
.header {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(11, 29, 53, .14) !important;
    box-shadow: 0 5px 25px rgba(35, 30, 23, .06) !important;
    backdrop-filter: blur(16px);
}

.header-container {
    min-height: 82px;
}

.nav-list {
    gap: clamp(.25rem, 1.5vw, 1.25rem);
}

.nav-link {
    color: #17283D !important;
    font-size: .91rem;
    letter-spacing: .015em;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #0B1D35 !important;
}

/* Hero and slideshow */
.hero {
    min-height: min(780px, 100svh);
    padding-top: 105px;
    padding-bottom: 75px;
    background: #0B1D35 !important;
    isolation: isolate;
}

.hero-slideshow,
.slideshow-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    background-position: center center;
    background-size: cover;
}

.slideshow-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(5, 18, 35, .88) 0%,
            rgba(5, 18, 35, .66) 47%,
            rgba(5, 18, 35, .30) 100%) !important;
}

.hero-bg-glow {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
    align-items: center;
    width: min(1200px, 100%);
}

.hero-content {
    max-width: 760px;
    text-align: left;
}

.hero-title {
    max-width: 760px;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 5.6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.045em;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.hero-title .text-gradient,
.section-title .text-gradient,
.about-content h2 .text-gradient {
    background: linear-gradient(110deg, #8FB8E8, #245A88) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-subtitle,
.hero-subtitle-dark {
    max-width: 620px;
    color: rgba(255, 250, 242, .9) !important;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.85;
    margin-bottom: 2rem;
    text-shadow: none !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    min-height: 48px;
    padding: .9rem 1.5rem;
    border-radius: 5px !important;
    font-size: .92rem;
    letter-spacing: .01em;
    box-shadow: none !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

.btn-primary {
    color: #fff !important;
    background: #0B1D35 !important;
    border: 1px solid #0B1D35 !important;
}

.btn-primary:hover {
    background: #173A60 !important;
    border-color: #173A60 !important;
}

.btn-outline {
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 250, 242, .7) !important;
    background: rgba(255, 255, 255, .06) !important;
}

.btn-outline:hover {
    color: #0B1D35 !important;
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Services introduction */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.services {
    background: #F5F8FC !important;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-title {
    color: #0B1D35 !important;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.section-subtitle {
    color: #64748B !important;
    font-size: 1.04rem;
    line-height: 1.8;
}

/* Four equally prominent business division cards */
.services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch;
}

.service-card {
    min-width: 0;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.4rem) !important;
    background: #fffdf9 !important;
    color: #0B1D35 !important;
    border: 1px solid #e6ded1 !important;
    border-radius: 9px !important;
    box-shadow: 0 8px 28px rgba(54, 43, 29, .045);
    backdrop-filter: none !important;
    transform: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.service-card::before {
    height: 3px !important;
    background: linear-gradient(90deg, #173A60, #8FB8E8) !important;
    transform: scaleX(1) !important;
}

.service-card:hover {
    transform: translateY(-5px) !important;
    border-color: #cbb18e !important;
    box-shadow: 0 18px 42px rgba(54, 43, 29, .11) !important;
}

.card-icon {
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 1.25rem !important;
    border-radius: 8px !important;
    font-size: 1.65rem !important;
    background: #eee5d8 !important;
    color: #173A60 !important;
}

.devhub-icon,
.ship-icon,
.construction-icon,
.trading-icon {
    background: #eee5d8 !important;
    color: #173A60 !important;
}

.card-content h3 {
    color: #0B1D35 !important;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.3;
    margin-bottom: .65rem;
}

.card-content p:not(.service-tagline) {
    color: #69645b !important;
    font-size: .96rem;
    line-height: 1.8;
}

.service-tagline {
    color: #0B1D35 !important;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.6;
    text-transform: uppercase;
}

.service-highlights {
    margin: 1rem 0;
}

.service-highlights li {
    color: #5f5b53 !important;
    font-size: .92rem;
    line-height: 1.6;
}

.service-highlights i {
    color: #0B1D35 !important;
}

.learn-more {
    display: inline-flex;
    flex-wrap: wrap;
    color: #173A60 !important;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
}

.learn-more i {
    transition: transform .2s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(4px);
}

/* About section */
.about {
    background: #EAF0F7 !important;
    border-top: 1px solid #e5dccf;
}

.about-wrapper {
    gap: clamp(2rem, 6vw, 5rem);
}

.about-content h2 {
    color: #0B1D35 !important;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.about-content p {
    color: #625d54 !important;
    font-size: 1rem;
    line-height: 1.95;
}

.about-visual img {
    max-width: 340px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(54, 43, 29, .08));
}

/* Footer */
.footer {
    background: #0B1D35 !important;
    color: #F5F8FC !important;
    border-top: 3px solid #0B1D35 !important;
    padding: 3.5rem 0 2rem !important;
}

.footer p,
.footer li,
.footer a {
    color: #d6cfc3 !important;
}

.footer a:hover {
    color: #8FB8E8 !important;
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.8;
}

.footer-content {
    align-items: center;
    gap: 2rem;
}

/* Keyboard accessibility and motion preferences */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #245A88;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Tablet and mobile */
@media (max-width: 768px) {
    .header-container {
        min-height: 72px;
        padding: .35rem 1rem !important;
    }

    .logo-img {
        max-width: 190px;
        object-fit: contain;
    }

    .nav-list {
        background: #faf8f3 !important;
        border-bottom: 1px solid #e6ded1 !important;
    }

    .hero {
        min-height: 690px;
        min-height: min(760px, 92svh);
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .slideshow-overlay {
        background: linear-gradient(90deg,
            rgba(5, 18, 35, .88),
            rgba(31, 27, 22, .62)) !important;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr) !important;
        text-align: left !important;
    }

    .hero-content {
        text-align: left !important;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        line-height: 1.08;
    }

    .hero-subtitle,
    .hero-subtitle-dark {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    .about-wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .about-visual {
        order: -1;
    }

    .about-visual img {
        max-width: 220px;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr) !important;
        text-align: center;
    }

    .footer-brand img {
        max-width: 100%;
        object-fit: contain;
        transform: none !important;
        margin: 0 auto 1rem !important;
        height: auto !important;
        max-height: 90px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 2.35rem !important;
    }

    .hero-actions {
        gap: .7rem;
    }

    .hero-actions .btn {
        padding: .8rem 1rem;
        font-size: .88rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* ==========================================================
   UNION GROUP — IMAGE-LED BUSINESS PORTFOLIO
   Homepage services section only
   ========================================================== */

.business-portfolio {
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(72px, 9vw, 120px);
    background: #F5F8FC;
}

.business-section-header {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: left;
}

.business-eyebrow {
    margin: 0 0 16px;
    color: #0B1D35;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.business-section-header .section-title {
    color: #17283D;
    font-size: clamp(2.2rem, 4.6vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin-bottom: 20px;
}

.business-heading-accent {
    color: #0B1D35;
}

.business-section-header .section-subtitle {
    max-width: 650px;
    color: #64748B;
    font-size: 1.05rem;
    line-height: 1.8;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.business-panel {
    position: relative;
    display: flex;
    min-height: 440px;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    text-decoration: none !important;
    background: #0B1D35;
    border-radius: 2px;
    align-items: flex-end;
}

.business-image,
.business-image-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.business-image {
    z-index: -2;
    object-fit: cover;
    object-position: center;
    transition: transform .7s cubic-bezier(.2, .65, .3, 1);
}

.business-image-shade {
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(15, 17, 18, .08) 0%,
        rgba(15, 17, 18, .28) 38%,
        rgba(15, 17, 18, .88) 100%
    );
    transition: background .35s ease;
}

.business-panel:hover .business-image,
.business-panel:focus-visible .business-image {
    transform: scale(1.055);
}

.business-panel:hover .business-image-shade,
.business-panel:focus-visible .business-image-shade {
    background: linear-gradient(
        180deg,
        rgba(15, 17, 18, .12) 0%,
        rgba(15, 17, 18, .35) 35%,
        rgba(15, 17, 18, .93) 100%
    );
}

.business-panel-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: clamp(24px, 3.3vw, 42px);
}

.business-number {
    align-self: flex-end;
    margin-bottom: auto;
    color: rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.business-category {
    margin: 38px 0 10px;
    color: #e0bd89;
    font-size: .72rem;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: .13em;
}

.business-name {
    max-width: 100%;
    color: #fff;
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(1.7rem, 2.7vw, 2.55rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.business-description {
    max-width: 480px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .88);
    font-size: .96rem;
    line-height: 1.75;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-bottom: 5px;
    color: #e0bd89;
    font-size: .92rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(224, 189, 137, .65);
}

.business-link span {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform .25s ease;
}

.business-panel:hover .business-link span,
.business-panel:focus-visible .business-link span {
    transform: translateX(5px);
}

.business-panel:focus-visible {
    outline: 3px solid #245A88;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .business-section-header {
        margin-bottom: 30px;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-panel {
        min-height: 390px;
    }

    .business-panel-content {
        padding: 25px;
    }

    .business-name {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .business-description {
        font-size: .92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .business-image,
    .business-image-shade,
    .business-link span {
        transition: none;
    }
}
