/*
Theme Name: Seatrade Astra
Template: astra
Description: Shared child theme for the Seatrade agency websites (replaces the Everybody theme). Page banners, section navigation, local clock, news list and footer. Colors are set per site under Appearance > Customize > Seatrade.
Version: 1.0.0
Text Domain: seatrade-astra
*/

:root {
	--st-accent: #fe911c;     /* orange: links, lines, buttons */
	--st-heading: #0d278f;    /* blue: section titles */
	--st-text: #555;
	--st-dark: #232323;       /* footer */
	--st-darker: #1d1d1d;     /* footer bottom bar */
	--st-light: #f6f6f6;
	--st-border: #e5e5e5;
	--st-line: var(--st-accent);    /* underline below titles */
	--st-content-bg: #fff;          /* background of inner pages */
}

/* ---------- Language switch (WPML) ---------- */
.st-langs { background: #fff; }
.st-langs-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: flex-end; gap: 2px; }
.st-langs a { font-size: 11px; font-weight: 600; color: #888; padding: 4px 8px; border: 1px solid var(--st-border); border-top: 0; }
.st-langs a.active { color: #222; background: var(--st-light); }

/* ---------- Footer bar text + social ---------- */
.st-footer-strip-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 20px; }
.st-footer-strip .st-social { display: flex; gap: 22px; }
.st-footer-strip .st-social a { color: #fff; display: flex; }
.st-footer-strip .st-social a:hover { opacity: .8; color: #fff; }

/* ---------- Inner page background ---------- */
.st-has-banner .site-content { background: var(--st-content-bg); }
.st-has-banner .st-sectionnav { background: #fff; }

/* ---------- Base typography ---------- */
body, button, input, select, textarea, .ast-button, .elementor-widget-text-editor {
	font-family: 'Raleway', sans-serif;
}
body {
	color: var(--st-text);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.55;
}
h1, h2, h3, h4, h5, h6, .entry-title {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	color: #222;
}
a, .elementor a, .entry-content a, .ast-single-post .entry-content a, .st-footer a { color: var(--st-accent); text-decoration: none !important; }
.home #primary, .home .site-main, .home .entry-content, .home .ast-article-single { margin: 0 !important; padding: 0 !important; }
a:hover, a:focus { color: var(--st-heading); }
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-description { font-family: 'Raleway', sans-serif; }
.elementor-widget-text-editor { color: var(--st-text); font-weight: 300; }
.elementor-widget-heading .elementor-heading-title { color: #333; font-weight: 400; }
.st-gallery-title .elementor-heading-title { font-size: 24px; color: #333; }
.ast-header-break-point .main-header-menu .menu-link { color: #222; }
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.main-header-menu .menu-item:hover > .menu-link { color: #222 !important; }
strong, b { font-weight: 600; }

/* ---------- Header ---------- */
.site-header .ast-primary-header-bar { border-bottom: 0; }
.main-header-menu > .menu-item > .menu-link {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #222;
	position: relative;
	padding: 0 12px;
	white-space: nowrap;
}
.main-header-menu > .menu-item:last-child > .menu-link { padding-right: 0; }
.main-header-menu > .menu-item:last-child > .menu-link::after { right: 0; }
.ast-desktop .main-header-menu .dropdown-menu-toggle,
.ast-desktop .main-header-menu .ast-icon.icon-arrow { display: none; }
.ast-desktop .main-header-menu .menu-item-has-children > .menu-link { padding-right: 12px; }
.ast-primary-header-bar .site-primary-header-wrap { min-height: 98px; }
.ast-builder-menu-1 .main-header-menu { flex-wrap: nowrap; }
.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1em; right: 1em; bottom: 0;
	height: 2px;
	background: var(--st-accent);
	transform: scaleX(0);
	transition: transform .2s;
}
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after,
.main-header-menu > .current_page_ancestor > .menu-link::after,
.main-header-menu > .menu-item:hover > .menu-link::after { transform: scaleX(1); }
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link { color: #222; }
.main-header-menu .sub-menu {
	border-top: 2px solid var(--st-accent);
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.main-header-menu .sub-menu .menu-link {
	font-size: 13px;
	font-weight: 400;
	color: #555;
}
.main-header-menu .sub-menu .menu-link:hover { color: var(--st-accent); background: var(--st-light); }

/* ---------- Page banner ---------- */
.st-banner {
	position: relative;
	background: #6d8fb3 center / cover no-repeat;
	min-height: 250px;
	display: flex;
	align-items: flex-start;
}
.st-banner::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%);
}
.st-banner .st-banner-inner {
	position: relative;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 50px 20px 40px;
}
.st-banner h1 {
	color: #fff;
	font-size: 38px;
	font-weight: 300;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}
.st-banner h1::after {
	content: ""; display: block;
	width: 90px; height: 3px;
	background: var(--st-line);
	margin-top: 16px;
}
.st-has-banner.page .entry-header { display: none; }
/* Single news post under the banner */
.single-post.st-has-banner .site-main { padding: 60px 0 70px; }
.single-post .entry-title { font-size: 28px; color: var(--st-heading); }
.single-post .entry-meta, .single-post .entry-meta a { color: #999 !important; font-size: 13px; }
.st-step { overflow: hidden; }

/* ---------- Left navigation template ---------- */
.st-leftnav-wrap {
	display: grid;
	grid-template-columns: 255px 1fr;
	gap: 20px 18px;
	padding: 70px 0 80px;
}
.st-leftnav-wrap.st-no-nav { grid-template-columns: 1fr; }
.st-sectionnav {
	background: var(--st-light);
	border: 1px solid var(--st-border);
	border-radius: 3px;
	align-self: start;
}
.st-sectionnav ul { list-style: none; margin: 0; padding: 0; }
.st-sectionnav li { border-top: 1px solid var(--st-border); margin: 0; }
.st-sectionnav li:first-child { border-top: 0; }
.st-sectionnav a {
	display: block;
	padding: 10px 19px;
	color: var(--st-accent);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .6px;
}
.st-sectionnav .st-nav-parent a { text-transform: uppercase; }
.st-sectionnav a:hover, .st-sectionnav .current a { color: #222; }
.st-leftnav-content { min-width: 0; }
.st-leftnav-content > .elementor { margin-top: -8px; }
@media (max-width: 921px) {
	.st-leftnav-wrap { grid-template-columns: 1fr; padding: 40px 0 50px; }
	.st-sectionnav { order: 2; }
}

/* Remove Astra's default page spacing when the page is built with sections */
.st-has-banner #primary,
.home #primary { margin-top: 0; margin-bottom: 0; }
.home .site-content > .ast-container,
.page-template-default.st-has-banner .site-content > .ast-container { max-width: 100%; padding: 0; }
.page-template-default.st-has-banner .entry-content > .elementor { }

/* ---------- Section title (was [page_header]) ---------- */
.st-title .elementor-heading-title {
	color: var(--st-heading);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.st-title .elementor-heading-title::after {
	content: ""; display: block;
	width: 85px; height: 3px;
	background: var(--st-line);
	margin: 18px auto 0;
}
.st-title.st-left .elementor-heading-title::after { margin-left: 0; }
.st-subtitle .elementor-heading-title {
	color: var(--st-heading);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

/* ---------- Service boxes (was [services_boxed] / [services_step]) ---------- */
.st-box .elementor-icon-box-wrapper {
	border: 1px solid var(--st-border);
	padding: 0 25px 30px;
	margin-top: 62px;
	background: #fff;
}
.st-box .elementor-icon-box-icon { margin: -62px auto 18px !important; }
.st-box .elementor-icon,
.st-step .elementor-icon {
	width: 120px; height: 120px;
	border-radius: 50%;
	background: var(--st-light);
	border: 1px solid var(--st-border) !important;
	display: flex; align-items: center; justify-content: center;
	color: var(--st-accent);
	font-size: 26px;
}
.st-box .elementor-icon svg, .st-step .elementor-icon svg { width: 26px; height: 26px; fill: var(--st-accent); }
.st-box .elementor-icon-box-title, .st-step .elementor-icon-box-title {
	color: var(--st-accent);
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.st-box .elementor-icon-box-title a, .st-step .elementor-icon-box-title a { color: inherit; }
.st-box .elementor-icon-box-description, .st-step .elementor-icon-box-description { font-size: 14px; color: #555; }
.st-step .elementor-icon { background: #fff; }
.st-step .elementor-icon-box-icon { position: relative; z-index: 0; }
.st-step .elementor-icon-box-icon .elementor-icon { position: relative; z-index: 1; }
.st-step .elementor-icon-box-icon::before {
	content: ""; position: absolute; left: -40px; right: -40px; top: 50%;
	border-top: 1px solid #ddd; z-index: 0;
}
.st-step .elementor-icon-box-description { color: #888; }
.st-readmore {
	display: inline-block;
	margin-top: 18px;
	color: var(--st-accent);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
}

/* ---------- Team cards (was [staff]) ---------- */
.st-staff { text-align: center; }
.st-staff img { border: 1px solid var(--st-border); width: 100%; height: auto; }
.st-staff .st-staff-name { margin: 14px 0 0; font-size: 15px; font-weight: 400; color: #222; text-transform: uppercase; }
.st-staff .st-staff-pos { font-size: 12px; color: var(--st-accent); text-transform: uppercase; margin-bottom: 14px; }
.st-staff .st-staff-info { font-size: 14px; color: #888; }
.st-staff .st-staff-info p { margin-bottom: 0; }

/* ---------- Home hero + clock ---------- */
.st-clock {
	display: inline-block;
	background: rgba(255,255,255,.85);
	border: 3px solid var(--st-accent);
	padding: 26px 24px 22px;
	min-width: 245px;
}
.st-clock .st-clock-label { display: block; color: #222; font-size: 19px; font-weight: 500; text-transform: uppercase; }
.st-clock .st-clock-time { display: block; color: var(--st-heading); font-size: 38px; line-height: 1.1; font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- Gallery ---------- */
.st-gallery .gallery { margin: 0 !important; display: grid !important; grid-template-columns: repeat(8, 1fr); }
.st-gallery .gallery-item { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; float: none !important; }
.st-gallery .gallery br { display: none; }
@media (max-width: 767px) { .st-gallery .gallery { grid-template-columns: repeat(4, 1fr); } }
.st-gallery .gallery-item img { border: 0 !important; display: block; width: 100%; height: auto; }

/* ---------- News list ---------- */
.st-news-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--st-border); }
.st-news-item.st-no-thumb { grid-template-columns: 1fr; }
.st-news-item img { width: 100%; height: auto; display: block; }
.st-news-item h3 { font-size: 20px; margin: 0 0 4px; }
.st-news-item h3 a { color: #222; }
.st-news-item h3 a:hover { color: var(--st-accent); }
.st-news-date { font-size: 13px; color: #999; margin-bottom: 10px; }
.st-news .nav-links { display: flex; gap: 8px; }
.st-news .page-numbers { padding: 4px 10px; border: 1px solid var(--st-border); }
.st-news .page-numbers.current { background: var(--st-accent); color: #fff; border-color: var(--st-accent); }
@media (max-width: 600px) { .st-news-item { grid-template-columns: 1fr; } }

/* ---------- Accordion (FAQ) ---------- */
.elementor-widget-accordion .elementor-tab-title,
.elementor-widget-toggle .elementor-tab-title { font-weight: 500; }

/* ---------- Footer ---------- */
.st-footer-strip { background: var(--st-accent); height: 70px; }
.st-footer { background: var(--st-dark); color: #999; font-size: 13px; }
.st-footer .st-footer-cols {
	max-width: 1140px; margin: 0 auto;
	padding: 55px 20px 45px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px 120px;
}
.st-footer .st-footer-cols > div:last-child { justify-self: end; min-width: 280px; }
.st-footer .widget { margin: 0 0 20px; }
.st-footer .widget-title { color: #fff; font-size: 16px; font-weight: 500; text-transform: uppercase; margin-bottom: 25px; }
.st-footer a { color: #aaa; }
.st-footer a:hover { color: #fff; }
.st-footer ul { list-style: none; margin: 0; }
.st-footer .widget_recent_entries li { margin-bottom: 16px; max-width: 330px; font-size: 14px; text-transform: none; }
.st-footer .widget_recent_entries .post-date { display: block; font-size: 11px; color: #777; }
.st-footer-bottom {
	background: var(--st-darker); color: #bbb; text-align: center;
	padding: 22px 20px; font-size: 14px; text-transform: uppercase;
}
.st-footer-bottom a { color: #bbb; }
@media (max-width: 768px) {
	.st-footer .st-footer-cols { grid-template-columns: 1fr; }
	.st-footer .st-footer-cols > div:last-child { justify-self: start; }
}
