/* Malison overrides on top of the Logiz template (colours already swapped in style.css). */

/* Logo: the official badge is round, so size it by height. */
.malison-logo-header { height: 70px; width: auto; }
.malison-logo-side { height: 64px; width: auto; }
.malison-logo-footer { height: 96px; width: auto; }
.malison-loader-logo { width: 90px; height: auto; }
.theme-main-menu .logo { padding: 6px 0; }

/* Photos supplied by staff can have any size: crop them to the template's frames. */
.malison-hero-img { width: 100%; aspect-ratio: 640 / 457; object-fit: cover; }
.malison-about-img { width: 100%; max-width: 521px; aspect-ratio: 521 / 527; object-fit: cover; border-radius: 30px; }
.malison-detail-img { aspect-ratio: 770 / 430; object-fit: cover; border-radius: 20px; margin-top: 30px; }
.malison-team-photo { aspect-ratio: 328 / 360; object-fit: cover; }
.malison-flag-logo { object-fit: contain; background: #fff; }
.feedback-block-one .img-meta { object-fit: cover; }

/* Testimonial without a photo: show the first letter. */
.malison-initials {
	display: inline-flex; align-items: center; justify-content: center;
	width: 96px; height: 96px; background: #0F5E8C; color: #fff;
	font-size: 38px; font-weight: 600;
}

/* Work-process section hidden: the service section needs its own top background. */
.service-section-two.malison-no-process { margin-top: 0; }

/* Services grid page reuses the slider card. */
.malison-service-card { position: relative; min-height: 438px; }
.malison-service-card .info-meta { position: relative; z-index: 1; }

/* Client logos */
.malison-client-logos { gap: 30px 50px; }
.malison-client img { max-height: 80px; max-width: 180px; width: auto; filter: grayscale(100%); opacity: .8; transition: all .3s; }
.malison-client img:hover { filter: none; opacity: 1; }

/* Vision & mission cards, after the profile's blue / red panels. */
.malison-vm-card { padding: 50px 45px; color: #fff; height: 100%; }
.malison-vm-card h3 { color: #fff; font-size: 28px; margin-bottom: 20px; }
.malison-vm-card p { color: rgba(255, 255, 255, .92); margin: 0; font-size: 18px; line-height: 1.7; }
.malison-vm-card.vision { background: #0F5E8C; border-radius: 20px 0 0 20px; }
.malison-vm-card.mission { background: #FD0000; border-radius: 0 20px 20px 0; }
@media (max-width: 767px) {
	.malison-vm-card.vision { border-radius: 20px 20px 0 0; }
	.malison-vm-card.mission { border-radius: 0 0 20px 20px; }
}

/* Text written in the backend editor */
.malison-rich-text p { margin-bottom: 18px; }
.malison-rich-text ul { padding-left: 20px; margin-bottom: 18px; }
.malison-rich-text img { max-width: 100%; height: auto; border-radius: 12px; }

/* Forms */
.malison-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.footer-newsletter form { position: relative; }
.footer-newsletter .malison-messages .alert { font-size: 14px; padding: 8px 12px; }
.malison-short-textarea { height: 120px; }
.appointment-section-two .appointment-list li { margin-bottom: 10px; }
.appointment-section-two .appointment-list label { cursor: pointer; }

/* Search results */
.malison-search-result { padding-bottom: 25px; border-bottom: 1px solid #e4e4e4; }
.malison-search-kind { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #FD0000; font-weight: 500; }
.malison-search-result h4 a:hover { color: #FD0000; }

/* Active menu item */
.theme-main-menu .navbar .nav-item.active > .nav-link { color: #fff; text-decoration: underline; text-decoration-color: #FD0000; text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Template backgrounds that were grey placeholder photos or off-palette textures */
.feature-block-five {
	background: linear-gradient(rgba(10, 53, 80, .82), rgba(10, 53, 80, .82)),
		url("/assets/malison/img/stock/service-clearing.jpg") center / cover no-repeat;
}
.inner-banner-one {
	background: linear-gradient(rgba(10, 53, 80, .78), rgba(10, 53, 80, .78)),
		url("/assets/malison/img/stock/service-road-sea.jpg") center / cover no-repeat;
}
.main-footer.bg-two { background: #0A3550; }
.team-section-one { background: linear-gradient(135deg, #0A3550, #0F5E8C); }
.feedback-section-two { background: #F2F7FB; }
.malison-conclusion { position: relative; z-index: 3; background: #fff; }

/* ---------- Home page layout fixes ---------- */
/* Hero: two balanced columns instead of the template's offset grid */
.malison-hero .hero-heading { font-size: 76px; line-height: 1.08em; margin: 0 0 28px; }
.malison-hero-kicker {
	display: inline-block; font-size: 16px !important; line-height: 1.5em !important; font-weight: 500;
	color: #0F5E8C; background: #EAF3F9; border-left: 4px solid #FD0000; border-radius: 0 30px 30px 0;
	padding: 8px 20px; margin-bottom: 24px;
}
.malison-hero-actions { gap: 16px; margin-top: 35px; }
.malison-hero .media { margin: 0 0 0 auto; max-width: 640px; }
.malison-hero .malison-hero-img { border-radius: 30px; box-shadow: 0 30px 60px rgba(10, 53, 80, .18); }
.malison-hero .media .malison-hero-badge { position: absolute; left: -70px; bottom: -55px; width: 210px; z-index: 2; filter: drop-shadow(0 10px 20px rgba(10,53,80,.15)); }
.malison-hero .media .malison-hero-badge img, .malison-hero .media .malison-hero-badge svg { width: 100%; height: auto; display: block; }
.malison-hero-stat {
	position: absolute; top: 30px; right: -20px; z-index: 2; background: #fff; border-radius: 16px;
	padding: 16px 22px; box-shadow: 0 15px 40px rgba(10, 53, 80, .18); text-align: center; border-bottom: 4px solid #FD0000;
}
.malison-hero-stat strong { display: block; font-size: 32px; font-weight: 700; color: #0F5E8C; line-height: 1.1; }
.malison-hero-stat span { font-size: 15px; color: #555; }
@media (max-width: 1399px) { .malison-hero .hero-heading { font-size: 62px; } }
@media (max-width: 1199px) { .malison-hero .hero-heading { font-size: 52px; } .malison-hero .media .malison-hero-badge { left: -30px; width: 170px; } }
@media (max-width: 991px) {
	.malison-hero .media { margin: 60px auto 40px; }
	.malison-hero .media .malison-hero-badge { left: -5px; bottom: -45px; width: 150px; }
	.malison-hero-stat { right: 10px; }
}
@media (max-width: 575px) { .malison-hero .hero-heading { font-size: 38px; } .malison-hero .media .malison-hero-badge { width: 130px; } }

/* Service cards: let the white box grow with the text so "Read More" stays inside it */
.card-style-two.version-two .info-meta { height: auto; min-height: 336px; padding-bottom: 35px; margin-bottom: -200px; }
.card-style-two .info-meta:before { border-radius: 22px; }
.card-style-two .info-meta p { line-height: 26px; margin-bottom: 18px; }
.card-style-two.version-two .media-bg { height: 400px; }
.service-slider-one .item { padding-bottom: 10px; }

/* About block photo */
.feature-block-one .malison-about-photo { background-size: cover; background-position: center; height: 420px; margin: 40px 40px 0 0; }
@media (max-width: 991px) { .feature-block-one .malison-about-photo { height: 320px; margin: 30px 0 50px; } }

/* Call-to-action when there are no articles: no pale pill behind it */
.blog-section-two.malison-cta-only { background: transparent; margin-top: 0; padding-top: 50px; }
.blog-section-two.malison-cta-only > .shapes { display: none; }

/* Highlight cards under the hero: equal heights */
.feature-block-five .row > [class*="col-"] { display: flex; }
.feature-block-five .card-style-one { width: 100%; }
/* No counters/testimonials after the services: drop the template's blue overhang */
.service-section-two.version-two.pb-40::after { display: none; }

/* Labels on dark backgrounds: the red is too dark on logo blue */
.service-section-two .title-one .upper-title span,
.team-section-one .title-one .upper-title span { color: #fff !important; }
/* Footer intro: tagline under the logo */
.malison-footer-tagline { color: rgba(255,255,255,.75); margin: 20px 0 10px; font-size: 16px; line-height: 1.6; }

/* Experience badge (SVG) */
.malison-hero .media .malison-hero-badge { filter: drop-shadow(0 10px 22px rgba(10,53,80,.22)); }
.malison-about-badge { width: 190px; }
.malison-about-badge svg, .malison-about-badge img { width: 100%; height: auto; display: block; }

/* Ribbon: one line per phrase, white text, equal gaps either side of each star */
.malison-ribbon-viewport { overflow: hidden; }
.malison-ribbon-track { display: flex; align-items: center; width: max-content; animation: malison-ribbon 45s linear infinite; }
.malison-ribbon:hover .malison-ribbon-track { animation-play-state: paused; }
.malison-ribbon-item { white-space: nowrap; color: #fff; line-height: 1; }
.malison-ribbon-star { flex: none; width: 34px; height: auto; margin: 0 36px; }
@keyframes malison-ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) { .malison-ribbon-star { width: 24px; margin: 0 22px; } }
@media (prefers-reduced-motion: reduce) { .malison-ribbon-track { animation: none; } }
/* Footer: truck and trailer drives left to right along the line, then
   re-enters from the left end (the track hides it past either end). */
.main-footer .bottom-footer .malison-truck-track {
	--truck-w: 170px;
	position: absolute; left: 0; right: 0; top: calc(var(--truck-w) * -78 / 170);
	height: calc(var(--truck-w) * 78 / 170); overflow: hidden; pointer-events: none;
}
.malison-truck-track .malison-footer-truck {
	position: absolute; bottom: 0; left: calc(var(--truck-w) * -1); width: var(--truck-w); height: auto;
	transform: scaleX(-1); animation: malison-truck 22s linear infinite;
}
@keyframes malison-truck { from { left: calc(var(--truck-w) * -1); } to { left: 100%; } }
@media (max-width: 575px) { .main-footer .bottom-footer .malison-truck-track { --truck-w: 130px; } .malison-truck-track .malison-footer-truck { animation-duration: 14s; } }
@media (prefers-reduced-motion: reduce) { .malison-truck-track .malison-footer-truck { animation: none; left: 30%; } }

/* Industries and values cards */
.malison-info-card { background: #F2F7FB; border-radius: 20px; border-top: 4px solid #FD0000; padding: 30px 28px; }
.malison-info-card h4 { font-size: 22px; color: #0F5E8C; margin-bottom: 10px; }
.malison-info-card p { margin: 0; font-size: 16px; line-height: 1.7; }

/* Routes table; stacks into cards on small screens */
.malison-routes { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dbe6ee; border-radius: 16px; overflow: hidden; }
.malison-routes th, .malison-routes td { padding: 18px 20px; vertical-align: top; text-align: left; border-bottom: 1px solid #dbe6ee; }
.malison-routes thead th { background: #0F5E8C; color: #fff; font-weight: 600; }
.malison-routes tbody th { color: #0F5E8C; font-weight: 700; }
.malison-routes tbody tr:nth-child(even) { background: #F2F7FB; }
.malison-routes tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 767px) {
	.malison-routes, .malison-routes tbody, .malison-routes tr, .malison-routes th, .malison-routes td { display: block; width: 100%; }
	.malison-routes thead { display: none; }
	.malison-routes tbody tr { border-bottom: 3px solid #dbe6ee; padding: 8px 0; }
	.malison-routes tbody th, .malison-routes tbody td { border: 0; padding: 6px 18px; }
	.malison-routes tbody td::before { content: attr(data-label) ": "; font-weight: 600; color: #0A3550; }
}

/* Quote form selects and date */
.appointment-section-two .malison-select, .appointment-section-two .malison-date {
	height: 60px; border: 1px solid #d5d5d5; border-radius: 5px; padding: 0 20px; background-color: #fff; color: #444; font-size: 16px;
}
.appointment-section-two .malison-date { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appointment-section-two .malison-date input { border: 0; height: auto; padding: 0; width: auto; }

/* Six menu items: keep the header on one line on smaller desktops */
@media (min-width: 992px) and (max-width: 1399px) {
	.theme-main-menu .navbar .navbar-nav .nav-link { margin-left: 8px; margin-right: 8px; font-size: 16px; }
}
/* Keep the fleet text above the next section's 105px overhang */
.malison-fleet { position: relative; z-index: 3; background: #fff; }
.malison-fleet + .feature-block-one.bg-two { margin-top: 80px; }
