/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
    --ib-blue: #034EA2; /* Info Badge blue */
    --sb-blue: #034EA2; /* Submit Button blue */
    --ma-btn-blue: #0C4DA2; /* More About button blue*/
    --header-accent: #0C4DA2;

    font-size: 16px;
}

/* Contact services */
.contact-services {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(auto-fit, 100px);
    gap: 24px;
    width: 100%;
}

@media (max-width: 1024px){
    .contact-services {
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
        margin: 20px 0;
    }
}

.contact-service--single {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    font-size: 0.6875rem; /* 11px */
    line-height: 100%;
    color: #000000;
}

.contact-service--single img {
    width: 42px;
    height: auto;
    aspect-ratio: 1/1;
}
/* END Contact services */

/* Info badge styles */
.info-badge-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 11px;
}

.info-badge {
    position: relative;
    min-height: 45px;
    max-width: 450px !important;
    width: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    color: white;
    font-size: 1.25rem;
    font-weight: 300;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--ib-blue);
    margin: 0 auto;
}

@media (max-width: 1024px){
    .info-badge {
        min-width: 420px;
    }
}

@media (max-width: 480px){
    .info-badge-container__elementor {
        width: 100% !important;
    }
    
    .info-badge {
        width: 100% !important;
        min-width: auto;
    }
}

/* Animated overlay */
.info-badge::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #034EA2 0%, #011D3C 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.15s ease-in-out;
    z-index: 0;
    border-radius: inherit;
}

/* On hover: scale to full width from right to left */
.info-badge:hover::before {
    transform: scaleX(1);
}

/* Keep content above the animated background */
.info-badge > * {
    position: relative;
    z-index: 1;
}

.info-badge img {
  height: 30px;
  width: 30px;
  object-fit: cover;
  margin-right: 16px;
}
/* END Info badge styles */

/* Main wrapper - use transform instead of max-height */
.transport-card .transport-card--anim-wrap {
  overflow: hidden;
  transform: translateY(-33%);
  transition: transform 0.35s ease;
}

/* Individual content items - staggered transform animation */
.transport-card .transport-card--anim-wrap > * {
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Hover state - wrapper slides in */
.transport-card:hover .transport-card--anim-wrap {
  transform: translateY(0%);
  pointer-events: auto;
}

/* Hover state - content items fade and slide in with staggered timing */
.transport-card:hover .transport-card--anim-wrap > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
  pointer-events: auto;
}

.transport-card:hover .transport-card--anim-wrap > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
  pointer-events: auto;
}

/* Add more nth-child selectors as needed for additional items */

/* Parent card overflow */
.transport-card {
  overflow: hidden !important;
  transition: background 0.3s ease;
}

/* Image transitions remain the same */
.transport-card .first-img, 
.transport-card .second-img {
  transition: all 0.35s ease;
}

.transport-card .first-img {
  opacity: 0;
  transform: translateX(-200%);
}

.transport-card .second-img {
    opacity: 1;
    transform: translateX(0%) translateY(-20px);
    margin-top: -125px !important;
}

.transport-card:hover .first-img {
  opacity: 1;
  transform: translateX(0%);
}

/* .transport-card:hover {
    background: 
} */

.transport-card:hover .second-img {
  opacity: 0;
  transform: translateX(200%) translateY(-20px);
}

/* Always visible when editing in Elementor */
.elementor-editor-active .transport-card--anim-wrap > * {
  opacity: 1 !important;
  transform: translateY(0) !important;
  max-height: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Skip to content link hide */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    padding: 1em;
    z-index: 1000;
    background: #000;
    color: #fff;
}
/* END Skip to content link hide */

/* Cargo Type card animation */
/* Try targeting with Elementor's specific classes */
.cargo-type-card {
    position: relative !important;
    overflow: hidden !important;
    background: #0171A7;
}

.cargo-type-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, #0171A7 0%, #002C41 100%) !important;
    transform: scaleY(0) !important;
    transform-origin: bottom !important;
    transition: transform 0.15s ease-in-out !important;
    z-index: 1 !important;
    border-radius: inherit !important;
    display: block !important;
}

.cargo-type-card:hover::before {
    transform: scaleY(1) !important;
}

.cargo-type-card > .elementor-element {
    position: relative !important;
    z-index: 2 !important;
}
/* END Cargo Type card animation */

.blue-content-section::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 20%;
  background: #022D66;
  border-radius: 10px;
}

/* More About Button */
.more-about-btn:hover .btn-text::after {
    right: -230px;
}

.more-about-btn:hover img {
    filter: brightness(0) saturate(100%) invert(1);
}

.more-about-btn {
    position: relative;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid black;
    min-width: 350px;
}

.btn-text {
    display: flex;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    justify-content: center;
    width: fit-content;
    min-width: 180px;
    height: 100%;
    line-height: 100%;
    padding: 16px 80px;
    color: white;
    background: #0C4DA2;
    z-index: 2;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 600px){
    .btn-text {
        padding: 16px 24px;
    }
}

.btn-text::after {
    transition: all 0.3s ease;
    content: '';
    position: absolute;
    top: 0;
    right: -64px;
    width: 65px;
    height: 100%;
    background: #0C4DA2;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.btn-text--underlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 165px;
    background: #0C4DA2;
    z-index: 1;
    transition: right 0.3s ease;
}

.more-about-btn:hover .btn-text--underlay {
    right: 0;
}

.btn-polygon {
    display: none;
}

.btn-image {
    margin-left: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    background: transparent;
}

.btn-image img {
    width: 15px;
    object-fit: cover;
    transition: filter 0.3s ease;
    z-index: 999;
}
/* END More About Button */

/* More About Button - Mini Version */
.more-about-btn--mini:hover .btn-text::after {
    right: -110px;
}

.more-about-btn--mini:hover img {
    filter: brightness(0) saturate(100%) invert(1);
}

.more-about-btn--mini {
    position: relative;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    border: 0.5px solid #034EA2;
    max-width: 200px;
}

.more-about-btn--mini .btn-text {
    display: flex;
    align-items: center;
    font-family: Inter;
    font-weight: 300;
    justify-content: center;
    font-size: 0.5rem;
    width: fit-content;
    min-width: 90px;
    height: 100%;
    line-height: 100%;
    padding: 10px 16px;
    color: white;
    background: #0C4DA2;
    z-index: 2;
    box-sizing: border-box;
    position: relative;
}

.more-about-btn--mini .btn-text::after {
    transition: all 0.3s ease;
    content: '';
    position: absolute;
    top: 0;
    right: -35px;
    width: 33px;
    height: 100%;
    background: #0C4DA2;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.more-about-btn--mini .btn-text--underlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 80px;
    background: #0C4DA2;
    z-index: 1;
    transition: right 0.3s ease;
}

.more-about-btn--mini:hover .btn-text--underlay {
    right: 0;
}

.more-about-btn--mini .btn-polygon {
    display: none;
}

.more-about-btn--mini .btn-image {
    margin-left: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: transparent;
}

.more-about-btn--mini .btn-image img {
    width: 8px;
    object-fit: cover;
    transition: filter 0.3s ease;
    z-index: 999;
}
/* END More About Button - Mini Version */

.blue-info-bg--elementor {
  position: absolute !important;
  left: 0;
  top: 0;
  bottom: 0;
  right: 20%;
  background: #022D66;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;

  width: 80vw;
}

.blue-info-bg--elementor-center {
  right: 10% !important;
  width: 95vw;
}

.sky-blue-info-bg {
    background: #0171A7 !important;
}

.sky-blue-info-bg-right {
    right: 0;
    left: 0;

    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 10px;

    border-top-right-radius: 0px;
    border-top-left-radius: 10px;
}

.blue-content-section {
  position: relative !important;
}

/* Custom accordion */
.accordion {
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.5rem;
    user-select: none;
    position: relative;
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: #ffffff;
}

.accordion-header:hover div {
    color: #022D66;
}

/* Number on the left */
.accordion-number {
    font-weight: 300;
    font-size: 1.25rem;
    width: 3rem;
    flex-shrink: 0;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Title text */
.accordion-title {
    flex-grow: 1;
    font-size: 1.25rem;
    font-family: 'Inter' sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 300 !important;
    transition: color 0.3s ease;
}

/* Content container - optimized for smooth transitions */
.accordion-content {
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    padding: 0 0 0 4.5rem; /* tied with accordion-number / 3rem number + 1.5rem header container */
    color: #ffffff;
    /* border-bottom: 1px solid transparent; */
    will-change: max-height, opacity;
}

/* When open - use max-height with a reasonable value */
.accordion-content.open {
    max-height: 500px;
    opacity: 1;
    padding: 0.5rem 0 0.875rem 4.5rem;
    /* border-bottom: 1px solid #e0e0e0; */
}

/* Text inside content */
.accordion-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-weight: 300 !important;
    font-size: 1.25rem;
    font-family: 'Archivo' sans-serif;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

span.accordion-bottom-line {
    display: block;
    width: 100%;
    height: 1px;
    background: #FFFFFF;
    margin-top: 2rem;
}
/* END Custom accordion */

/* ===== More About Button – consistent geometry (desktop + mobile) ===== */
.more-about-btn{
  /* one source of truth */
  --arrowW: 100px;   /* width of the right arrow block */
  --gap:    65px;    /* space between text area and arrow block (also triangle width) */
}

/* make pieces read those variables */
.more-about-btn .btn-image{
  min-width: var(--arrowW) !important;
  margin-left: var(--gap);
}
.more-about-btn .btn-text--underlay{
  right: calc(var(--arrowW) + var(--gap)) !important;
}
.more-about-btn .btn-text::after{
  /* triangle that points into the white area */
  right: calc(-1 * var(--gap));
  width: var(--gap);
}

/* Optional: remove black border if you don't want the outline */
.more-about-btn{
  border-color: transparent;
}

/* ===== Mobile sizing – just change the variables ===== */
@media (max-width: 768px){
  .more-about-btn{
    --arrowW: 56px;
    --gap:    24px;

    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-width: 0;
  }
  .more-about-btn .btn-text{
    padding: 14px 22px !important;
    font-size: 14px;
    text-align: center;
  }
  .more-about-btn .btn-image img{ width: 18px; }
}

@media (max-width: 420px){
  .more-about-btn{
    --arrowW: 48px;
    --gap:    22px;
    max-width: 100%;
  }
  .more-about-btn .btn-text{
    padding: 12px 18px !important;
    font-size: 13px;
  }
  .more-about-btn .btn-image img{ width: 16px; }
}

/* ===== More About Button – fix border, seam, and mobile tap fill ===== */

/* 1) Single source of truth for geometry */
.more-about-btn{
  --arrowW: 100px;  /* width of right arrow block on desktop */
  --gap:    65px;   /* space between text and arrow block (triangle width) */
  border: 0 !important;               /* remove black outline */
  overflow: hidden;                   /* clip internals to rounded corners */
}

/* 2) Pieces read the same variables */
.more-about-btn .btn-image{
  min-width: var(--arrowW) !important;
  margin-left: var(--gap);
}
.more-about-btn .btn-text--underlay{
  /* slight -1px overlap to kill the seam */
  right: calc(var(--arrowW) + var(--gap) - 1px) !important;
}
.more-about-btn .btn-text::after{
  right: calc(-1 * var(--gap) + 1px); /* match underlay overlap */
  width: var(--gap);
}

/* 3) Hover state (desktop) — slide the blue to the right */
.more-about-btn:hover .btn-text--underlay{
  right: 0 !important;
}
.more-about-btn:hover .btn-text::after{
  /* push triangle off to the right */
  right: calc(-1 * (var(--arrowW) + 12px));
}
.more-about-btn:hover img{
  filter: brightness(0) saturate(100%) invert(1);
}

/* 4) Tap/keyboard state (mobile + a11y) – same as hover */
.more-about-btn:active .btn-text--underlay,
.more-about-btn:focus-visible .btn-text--underlay{
  right: 0 !important;
}
.more-about-btn:active .btn-text::after,
.more-about-btn:focus-visible .btn-text::after{
  right: calc(-1 * (var(--arrowW) + 12px));
}
.more-about-btn:active img,
.more-about-btn:focus-visible img{
  filter: brightness(0) saturate(100%) invert(1);
}

/* 5) Mobile sizing – only change the variables, everything stays aligned */
@media (max-width: 768px){
  .more-about-btn{
    --arrowW: 100px;
    --gap:    65px;

    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-width: 0;
    border-radius: 10px;   /* keep pill shape */
  }
  .more-about-btn .btn-text{
    padding: 14px 22px !important;
    font-size: 14px;
    text-align: center;
  }
  .more-about-btn .btn-image img{ width: 18px; }
}

@media (max-width: 420px){
  .more-about-btn{
    --arrowW: 48px;
    --gap:    22px;

    max-width: 100%;
  }
  .more-about-btn .btn-text{
    padding: 12px 18px !important;
    font-size: 13px;
  }
  .more-about-btn .btn-image img{ width: 16px; }
}
