/* ----------------------------------------------------------------------------------------
 * refine.css — design refinements layered on top of custom.css.
 * Loaded after custom.css. Visual polish only: no markup, content or behaviour changes.
 * Mobile-first: base rules target phones, min-width queries scale up.
 * -------------------------------------------------------------------------------------- */

/* ---------- 1. Tokens ---------- */
:root{
	--space-section: clamp(48px, 7vw, 100px);
	--radius-sm: 8px;
	--radius-md: 12px;
	--shadow-sm: 0 2px 8px rgba(35, 31, 32, 0.06);
	--shadow-md: 0 8px 24px rgba(35, 31, 32, 0.10);
	--ease: cubic-bezier(.4, 0, .2, 1);
	--focus-ring: 0 0 0 3px rgba(190, 30, 45, 0.35);
}

/* ---------- 2. Base typography & rendering ---------- */
html{
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body{
	font-size: clamp(16px, 0.35vw + 15px, 18px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

p{
	font-size: clamp(15px, 0.2vw + 14.5px, 16px);
	line-height: 1.7;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6{
	line-height: 1.25;
	text-wrap: balance;
	overflow-wrap: break-word;
}

img{
	height: auto;
}

a{
	transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* ---------- 3. Fluid headings ---------- */
.section-title{
	margin-bottom: clamp(28px, 4vw, 60px);
}

.section-title h1,
.section-title h2{
	font-size: clamp(26px, 3.2vw + 14px, 48px);
	line-height: 1.2;
}

.section-title p{
	line-height: 1.7;
}

.hero-content-title h1,
.hero-content-title h2{
	font-size: clamp(28px, 4vw + 12px, 60px);
	line-height: 1.15;
}

/* ---------- 4. Section rhythm (consistent vertical spacing) ---------- */
.home-transportation,
.our-service,
.our-contract,
.our-goals,
.our-indurstry,
.service-page,
.service-details,
.get-in-touch,
.page-faqs,
.page-not-found{
	padding-top: var(--space-section);
	padding-bottom: var(--space-section);
}

/* ---------- 5. Buttons ---------- */
.btn-default{
	font-size: clamp(14px, 0.4vw + 13px, 17px);
	padding: 14px clamp(20px, 3vw, 30px);
	min-height: 48px;               /* comfortable touch target */
	border-radius: var(--radius-sm);
	letter-spacing: 0.01em;
	-webkit-tap-highlight-color: transparent;
}

.btn-default:active{
	transform: translateY(1px);
}

/* ---------- 6. Focus & accessibility ---------- */
a:focus-visible,
button:focus-visible,
.btn-default:focus-visible,
.form-control:focus-visible,
.accordion-button:focus-visible{
	outline: 2px solid var(--accent-color);
	outline-offset: 3px;
	box-shadow: var(--focus-ring);
}

.accordion-button:focus{
	box-shadow: none;
}

/* ---------- 7. Header / navigation ---------- */
header.main-header{
	transition: box-shadow 0.3s var(--ease);
}

header.main-header .header-sticky.active{
	box-shadow: var(--shadow-md);
}

.main-menu ul li a{
	transition: color 0.25s var(--ease);
}

.slicknav_menu{
	border-radius: var(--radius-sm);
}

.slicknav_nav li a{
	min-height: 44px;
	display: flex;
	align-items: center;
}

/* ---------- 8. Cards & imagery ---------- */
.project-item,
.transport-item,
.our-goals-item{
	border-radius: var(--radius-md);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-image img,
.service-details-featured-image img,
#service-image{
	width: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
}

@media (hover: hover) and (pointer: fine){
	.transport-item:hover{
		transform: translateY(-4px);
		box-shadow: var(--shadow-md);
	}
}

/* ---------- 9. Forms ---------- */
.form-control{
	font-size: 16px;                /* prevents iOS zoom-on-focus */
	min-height: 48px;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

textarea.form-control{
	min-height: 120px;
	resize: vertical;
}

.get-quote-form .form-control:focus{
	border-bottom-color: var(--accent-color);
	box-shadow: none;
}

.form-group .help-block.with-errors{
	font-size: 14px;
	margin-top: 6px;
}

/* ---------- 10. Contact blocks ---------- */
.contact-us{
	padding: clamp(24px, 4vw, 40px);
}

.contact-us-info p{
	font-size: clamp(16px, 0.5vw + 14px, 18px);
	overflow-wrap: anywhere;
}

/* ---------- 11. Accordion (FAQ-style items) ---------- */
.accordion-button{
	min-height: 52px;
	line-height: 1.4;
}

/* ---------- 12. Footer ---------- */
.main-footer{
	padding-top: clamp(40px, 6vw, 80px);
}

.main-footer img{
	max-width: 100%;
	height: auto;
}

.footer-info-box p,
.footer-copyright p{
	overflow-wrap: anywhere;
}

/* ---------- 13. Floating WhatsApp button ---------- */
.whatsapp-float{
	bottom: max(20px, env(safe-area-inset-bottom));
	right: max(20px, env(safe-area-inset-right));
}

/* ---------- 14. Small-screen tuning (phones) ---------- */
@media (max-width: 575.98px){
	.container{
		padding-left: 16px;
		padding-right: 16px;
	}

	.hero.hero-slider .hero-slider-layout .hero-slide{
		padding: 48px 0 140px;
	}

	.hero-content-title h1,
	.hero-content-title h2{
		width: 100%;
	}

	.contact-us-footer{
		flex-wrap: wrap;
		gap: 16px;
	}
}

/* ---------- 15. Tablet+ ---------- */
@media (min-width: 768px){
	.container{
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* ---------- 16. Performance & motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
	*,
	*::before,
	*::after{
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.whatsapp-float{
		animation: none;
	}
}

/* Hide the custom cursor on touch devices */
@media (hover: none), (pointer: coarse){
	#magic-cursor{
		display: none !important;
	}
}

/* ---------- 17. Mobile menu: no empty bar under the header ----------
   slicknav.min.css (loaded after custom.css) re-applies a dark grey background and
   5px padding to the empty .slicknav_menu wrapper, which showed as a black bar
   between the header and the hero slider. Higher specificity wins regardless of order. */
.responsive-menu .slicknav_menu{
	background: transparent;
	padding: 0;
	margin: 0;
}

.responsive-menu .slicknav_menu .slicknav_nav{
	background: var(--accent-color);
	margin: 0;
}

/* ---------- 18. Mobile: balance Our Goals → footer spacing ----------
   Section bottom padding + each card's 30px bottom margin stacked into a large empty gap. */
@media (max-width: 991.98px){
	.our-goals{
		padding-top: 40px;
		padding-bottom: 10px;
	}

	.our-goals-item{
		margin-bottom: 30px;
	}
}

/* ---------- 19. Hero slider: compact, fluid height, clear image ----------
   Slides were ~120px + ~220px padding around content (700px+ tall). Height is now driven by
   viewport width with sensible floor/ceiling; the 16:9 image fills it centred and uncropped
   horizontally (object-fit: cover), so it stays sharp and undistorted on every screen. */
.hero.hero-slider .hero-slider-layout .hero-slide{
	display: flex;
	align-items: center;
	padding: 32px 0 56px !important;                       /* bottom room for pagination dots */
	min-height: clamp(380px, 36vw, 560px);
}

.hero.hero-slider .hero-slider-layout .hero-slide > .container{
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content{
	margin-top: 0 !important;                              /* overrides inline margin-top:100px */
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-title h2{
	font-size: clamp(24px, 2.2vw + 14px, 42px) !important; /* overrides inline 42px */
	line-height: 1.2;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-body p{
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-title{
	margin-bottom: 12px;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-body{
	margin-bottom: 20px;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-slider-image img{
	object-fit: cover;
	object-position: center center;
}

/* Lighter, even scrim: keeps text legible while the photo stays clear (was fade to solid black). */
.hero-slider-layout .hero-slide::before{
	background-image: linear-gradient(180deg, rgba(35, 31, 32, 0.30) 0%, rgba(35, 31, 32, 0.60) 100%);
}

.hero-slider-layout .swiper-pagination{
	bottom: 16px;
}

@media (max-width: 767.98px){
	.hero.hero-slider .hero-slider-layout .hero-slide{
		min-height: clamp(360px, 95vw, 460px);
		padding: 28px 0 52px !important;
	}

	/* On phones the empty 2nd column is hidden; text uses the full width over the image. */
	.hero.hero-slider .hero-slider-layout .hero-slide .row > [class*="col-"]:empty{
		display: none;
	}

	.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-body p{
		-webkit-line-clamp: 3;
	}

	.hero.hero-slider .hero-slider-layout .hero-slide .hero-content-footer .btn-default{
		min-height: 44px;
		padding: 10px 22px;
	}
}

/* Very wide screens: cap height so the slider never dominates the viewport. */
@media (min-width: 1600px){
	.hero.hero-slider .hero-slider-layout .hero-slide{
		min-height: 580px;
	}
}

/* ---------- 20. Compact, consistent section spacing ----------
   One fluid scale replaces the 100px / 50px / 40px mix in custom.css:
     --sp     section top/bottom padding   36px (phone) → 64px (desktop)
     --sp-sm  reduced edge where a section's own cards/slider already add margin below
   Later in the cascade than custom.css and section 4, so it supersedes both. */
:root{
	--sp: clamp(36px, 4.5vw, 64px);
	--sp-sm: clamp(20px, 2.5vw, 36px);
	--space-section: var(--sp);
}

/* Standard sections */
.home-transportation,
.our-service,
.our-contract,
.our-goals,
.our-indurstry,
.service-details,
.get-in-touch,
.page-faqs,
.page-not-found,
.latest-posts.blog-page{
	padding-top: var(--sp);
	padding-bottom: var(--sp);
}

/* Sections followed by cards/sliders that already carry bottom margin */
.recent-project,
.providing-service,
.service-page,
.export-team,
.our-project,
.home-transportation.about-transportation{
	padding-top: var(--sp);
	padding-bottom: var(--sp-sm);
}

.about-transport{
	padding-top: var(--sp-sm);
	padding-bottom: var(--sp);
}

/* Section headings */
.section-title{
	margin-bottom: clamp(20px, 3vw, 40px);
}

/* Inner page banner (was 150px / 50px) */
.page-header{
	padding-top: clamp(48px, 8vw, 100px);
	padding-bottom: clamp(48px, 8vw, 100px);
}

/* Footer */
.mega-footer{
	padding-top: clamp(32px, 4.5vw, 56px);
	padding-bottom: clamp(32px, 4.5vw, 56px);
}

.footer-heading,
.footer-info-heading{
	margin-bottom: 16px;
}

/* Cards: card margin supplies the gap before the next row/section */
.project-item{
	margin-bottom: 20px;
}

.our-goals-item{
	padding: clamp(20px, 3vw, 30px);
}

/* Tablet & below: items stack, so keep gaps even and drop the last one's double spacing */
@media (max-width: 991.98px){
	.our-goals{
		padding-top: var(--sp);
		padding-bottom: calc(var(--sp) - 20px);   /* last card's 20px margin completes the gap */
	}

	.our-goals-item{
		margin-bottom: 20px;
	}

	.recent-project{
		padding-bottom: 0;                         /* slide margin-bottom already adds 20px */
	}
}

/* Slider width: custom.css fixed it at 1180/900/660/270px, which overflowed the container
   between breakpoints. Fluid width that still caps at the original desktop size. */
.project-slider{
	width: min(1180px, calc(100% - 60px));
}

/* Map: 600px was taller than most screens on phones/tablets */
.google-map-iframe,
.google-map-iframe iframe{
	height: clamp(300px, 45vw, 480px);
}

/* Contact card/form blocks */
.get-quote{
	padding: clamp(20px, 4vw, 40px);
}
