/* Shared visual layer; loaded after the template and page styles. */
body.theme-glass {
    --glass-border: rgba(255, 255, 255, .72);
    --glass-shadow: 0 12px 40px rgba(31, 42, 60, .07);
    --glass-radius: 24px;
    color: #596273;
    background: #f6f7fb;
    background-image: radial-gradient(ellipse at 0 12%, #fff0e5 0, transparent 36%), radial-gradient(ellipse at 100% 45%, #eaf0fa 0, transparent 40%);
}
.theme-glass #wrapper { background: transparent; }
.theme-glass :is(h1, h2, h3, h4) { letter-spacing: -.035em; }
.theme-glass h2 { font-weight: 600; }
.theme-glass p { line-height: 1.85; }
.theme-glass section[id], .theme-glass article[id] { scroll-margin-top: 120px; }

/* Tactile buttons with a quieter hover than the template's text slide. */
.theme-glass #content .btn-main,
.theme-glass #content a.btn-main:visited {
    padding: 11px 24px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: linear-gradient(135deg, #c74710, #a83108);
    color: #fff;
    font-weight: 650;
    line-height: 1.6;
    box-shadow: 0 6px 18px rgba(181, 62, 9, .18), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.theme-glass #content .btn-main.btn-line {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
}
.theme-glass #content .btn-main.bg-white {
    background: rgba(255, 255, 255, .94) !important;
    color: #202735 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.theme-glass #content a.btn-main.fx-slide::before { display: none; }
.theme-glass #content a.btn-main.fx-slide:hover span { opacity: 1; transform: none; }
.theme-glass #content .btn-main:active { transform: translateY(1px); }
.theme-glass :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #c74710;
    outline-offset: 4px;
}
.theme-glass .text-light :is(a, button):focus-visible { outline-color: #ffd3ac; }

/* Small labels read as badges, with opaque fallbacks for unsupported blur. */
.theme-glass .subtitle,
.theme-glass .badge {
    padding: 6px 13px;
    border: 1px solid rgba(183, 66, 12, .18);
    border-radius: 100px;
    background: rgba(255, 239, 226, .82);
    color: #9b380c;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .065em;
    font-weight: 700;
}
.theme-glass .text-light .subtitle,
.theme-glass .text-light .badge {
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
}
.theme-glass #subheader .crumb {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 100px;
    background: rgba(13, 20, 30, .42);
}
.theme-glass .feature-glass {
    left: 16px;
    right: 16px;
    bottom: 16px !important;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: rgba(18, 27, 40, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.theme-glass .feature-glass h3 { border: 0 !important; padding-top: 0 !important; font-size: clamp(23px, 2vw, 29px); }

/* Shared card surfaces across existing and newly added pages. */
.theme-glass .glass-card,
.theme-glass #industries article,
.theme-glass #supply-chain-solutions article,
.theme-glass #shipping-resources .border,
.theme-glass #incoterms .border,
.theme-glass .resource-form,
.theme-glass .border-gray.rounded-1 {
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--glass-radius) !important;
    background: linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)) !important;
    box-shadow: var(--glass-shadow), inset 0 1px 0 #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.theme-glass .glass-card { padding: 16px; height: 100%; }
.theme-glass .glass-card > .post-image { margin-bottom: 16px !important; }
.theme-glass .glass-card > .pt-2 { height: auto !important; padding: 4px 8px 8px !important; }
.theme-glass .glass-card img.rounded-1 { border-radius: 18px !important; }
.theme-glass form.glass-card { padding: clamp(20px, 4vw, 40px); }
.theme-glass .team-panel {
    position: relative;
    margin: -24px 12px 0;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--glass-shadow);
}
.theme-glass #industries article > span,
.theme-glass #supply-chain-solutions article > span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 9px;
    background: #fff0e4;
    color: #9b380c;
    font-size: 12px;
    letter-spacing: .04em;
}
.theme-glass #vision-values.bg-light,
.theme-glass #shipping-checklist.bg-light,
.theme-glass #supply-chain-solutions.bg-light {
    background: linear-gradient(120deg, rgba(255, 237, 222, .6), rgba(231, 237, 247, .65)) !important;
    border: 1px solid rgba(255, 255, 255, .85);
}
.theme-glass #trade-lanes { border: 1px solid rgba(255, 255, 255, .15); background: linear-gradient(120deg, #182332, #252936) !important; }

/* Image-and-copy service cards retain their alternating layout. */
.theme-glass #section-services .row.g-2 { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
.theme-glass .modern-service-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--glass-radius);
    background: linear-gradient(135deg, #26303f, #151c28) !important;
    box-shadow: 0 12px 32px rgba(26, 35, 49, .13), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}
.theme-glass .modern-service-card > .row { min-height: 100%; }
.theme-glass .modern-service-card .relative { height: 100%; }
.theme-glass .modern-service-card img { height: 100%; min-height: 280px; object-fit: cover; }
.theme-glass .modern-service-card .p-40 { padding: 30px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.theme-glass .modern-service-card h3 { font-size: clamp(23px, 2vw, 29px); line-height: 1.2; }
.theme-glass .modern-service-card p { color: #d7dfeb; font-size: 14px; line-height: 1.8; }
.theme-glass .modern-service-card h3.abs {
    top: 16px !important;
    left: 16px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 12px;
    background: rgba(18, 27, 40, .65);
    font-size: 18px;
    line-height: 1.2;
}

/* Inputs, FAQ panels, tabs and social actions share the same softer geometry. */
.theme-glass :is(.form-control, .form-select) {
    border: 1px solid #d6dce5;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .85);
    color: #283343;
    padding: 12px 15px;
    box-shadow: inset 0 1px 2px rgba(26, 35, 49, .03);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-glass :is(.form-control, .form-select):focus {
    background-color: #fff;
    border-color: #c74710;
    box-shadow: 0 0 0 4px rgba(199, 71, 16, .1);
}
.theme-glass .form-control::placeholder { color: #788292; }
.theme-glass .resource-results > div { border: 1px solid #e6eaf0; border-radius: 16px; background: #f4f7fa; }
.theme-glass .accordion-section-title {
    padding: 19px 52px 19px 20px;
    margin-bottom: 10px;
    border: 1px solid #e1e6ed;
    border-radius: 15px;
    background: rgba(255, 255, 255, .8);
    color: #283343;
    font-weight: 600;
}
.theme-glass .accordion-section-title.active { color: #9b380c; background: #fff3e9; border-color: #ebc6ae; }
.theme-glass .text-light .accordion-section-title { background: #ffffff14; border-color: #ffffff30; color: #fff; }
.theme-glass .accordion-section-content { padding: 8px 20px 20px; }
.theme-glass .d-tab-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-glass .d-tab-nav li { margin: 0; padding: 10px 16px; border: 1px solid #e1e6ed; border-radius: 100px; background: #fff; color: #596273; }
.theme-glass .d-tab-nav li.active-tab { color: #fff; background: #a83108; border-color: #a83108; }
.theme-glass .social-icons a i { border-radius: 12px; transition: transform .2s ease; }
.theme-glass #back-to-top { border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; box-shadow: 0 8px 24px #18233226; }
.theme-glass footer.section-dark { background: linear-gradient(135deg, #151e2b, #222a37); }
.theme-glass footer .subfooter { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .12); }

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .theme-glass .subtitle,
    .theme-glass #subheader .crumb,
    .theme-glass .feature-glass,
    .theme-glass .modern-service-card h3.abs { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
    .theme-glass .feature-glass { background: rgba(18, 27, 40, .55); }
    .theme-glass .glass-card,
    .theme-glass #industries article,
    .theme-glass #supply-chain-solutions article,
    .theme-glass .resource-form { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .theme-glass .team-panel { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (hover: hover) and (pointer: fine) {
    .theme-glass #content .btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(154, 56, 12, .24); }
    .theme-glass .glass-card:hover,
    .theme-glass #industries article:hover,
    .theme-glass #supply-chain-solutions article:hover,
    .theme-glass #shipping-resources .border:hover,
    .theme-glass .modern-service-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(26, 35, 49, .13); }
    .theme-glass .social-icons a:hover i { transform: translateY(-3px); }
}
@media (max-width: 992px) {
    .theme-glass .modern-service-card h3 { font-size: 27px; }
}
@media (max-width: 575px) {
    .theme-glass #content .btn-main { padding: 10px 18px; }
    .theme-glass .modern-service-card .p-40 { min-height: auto; padding: 26px; }
    .theme-glass .modern-service-card img { max-height: 320px; }
    .theme-glass #section-services .row.g-2 { --bs-gutter-y: 18px; }
    .theme-glass .subtitle { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-glass *, .theme-glass *::before, .theme-glass *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .theme-glass .wow { visibility: visible !important; }
    .theme-glass #content .btn-main:hover,
    .theme-glass .glass-card:hover,
    .theme-glass #industries article:hover,
    .theme-glass #supply-chain-solutions article:hover,
    .theme-glass #shipping-resources .border:hover,
    .theme-glass .modern-service-card:hover { transform: none; }
}
