/*
Theme Name: Marine Technologies
Description: Recreates the look of the site's former Zerif Lite 1.8.5 theme by ThemeIsle (Zerif Lite was infected on the old server and is no longer on wordpress.org). Reads Zerif's customizer settings, sidebar IDs and focus widgets, so the existing content keeps working.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: marinetechs
License: GPL-2.0-or-later
*/

/* Montserrat (headings) and Lato (text), self-hosted; licences in fonts/ */
@font-face {
	font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
	src: url("fonts/lato-300-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
	src: url("fonts/lato-300-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("fonts/lato-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("fonts/lato-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
	src: url("fonts/lato-400italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
	src: url("fonts/lato-400italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("fonts/lato-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("fonts/lato-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--text: #808080;
	--dark: #404040;
	--red: #e96656;
	--red-dark: #cb4332;
	--green: #34d293;
	--green-btn: #1e9e6b;
	--green-btn-dark: #069059;
	--blue: #3ab0e2;
	--yellow: #f7d861;
	--footer: #272727;
	--footer-text: #939393;
	--copyright: #171717;
	--nav-height: 76px;
	--font: "Lato", Helvetica, Arial, sans-serif;
	--heading: "Montserrat", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-height); }
/* The fixed background image (custom-background) shows through the translucent sections */
body {
	margin: 0; padding-top: var(--nav-height); overflow-x: hidden; background-color: #fff;
	font: 14px/25px var(--font); color: var(--text); text-align: center;
}
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--heading); font-weight: 700; line-height: 1.25; color: var(--dark); }
p { margin: 0 0 1.2em; }
img { max-width: 100%; height: auto; }
input, textarea, select { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link:focus { position: fixed !important; top: 5px; left: 5px; z-index: 2000; width: auto; height: auto; clip-path: none; padding: 8px 12px; background: #fff; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ---------- Buttons ---------- */
.button, .contact-form button, .comment-form .submit {
	display: inline-block; margin: 10px; padding: 13px 35px; border: 0; border-radius: 4px; cursor: pointer;
	font: 400 14px/20px var(--font); text-transform: uppercase; text-align: center; color: #fff;
	transition: background-color .3s ease-in-out;
}
.button:hover, .contact-form button:hover, .comment-form .submit:hover { color: #fff; }
.red-btn, .comment-form .submit { background: var(--red); }
.red-btn:hover, .comment-form .submit:hover { background: var(--red-dark); }
.green-btn { background: var(--green-btn); }
.green-btn:hover { background: var(--green-btn-dark); }

/* ---------- Navigation bar (fixed, white) ---------- */
#main-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000; min-height: var(--nav-height);
	background: #fff; box-shadow: 0 5px 11px 0 rgba(50, 50, 50, .08); text-align: left;
}
.admin-bar #main-nav { top: var(--wp-admin--admin-bar--height, 32px); }
#main-nav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; }
.navbar-brand { height: var(--nav-height); padding: 7px 0; }
.navbar-brand img { display: block; width: auto; height: 100%; max-height: 62px; }
.navbar-brand .site-name { font: 700 22px/62px var(--heading); color: var(--dark); }
#site-navigation ul { margin: 0; padding: 0; list-style: none; }
#site-navigation .nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
#site-navigation .nav li { position: relative; }
#site-navigation .nav a { display: block; color: #404040; font-size: 15px; line-height: 35px; }
#site-navigation .nav a:hover,
#site-navigation .nav .current-menu-item > a { color: var(--red); }
#site-navigation .sub-menu {
	position: absolute; left: -999em; top: 100%; z-index: 10; min-width: 200px; padding: 5px 0;
	background: #fff; box-shadow: 0 5px 11px 0 rgba(50, 50, 50, .15);
}
#site-navigation li:hover > .sub-menu, #site-navigation li:focus-within > .sub-menu { left: 0; }
#site-navigation .sub-menu a { padding: 0 15px; font-size: 14px; }

/* ---------- Front page: big title ---------- */
.header-content-wrap { padding: 225px 0 150px; background: rgba(0, 0, 0, .5); }
.intro-text { margin: 0 0 30px; font-size: 55px; line-height: 65px; color: #fff; text-transform: uppercase; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; }

/* ---------- Front page: sections ---------- */
.section-header { padding-bottom: 75px; text-align: center; }
.section-header h2 {
	display: inline-block; margin: 15px 0 0; padding-bottom: 10px;
	font-size: 45px; line-height: 40px; color: var(--dark); text-transform: uppercase;
}
.section-header .section-legend { margin: 0; color: #000; font-size: 16px; }
.contact-us .section-header h2, .contact-us .section-header .section-legend { color: #fff; }

.focus { padding: 100px 0 70px; background: #fff; }
.focus-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.focus-box { flex: 0 1 262px; }
.focus-box .service-icon {
	position: relative; width: 145px; height: 145px; margin: 0 auto 20px; overflow: hidden;
	border: 10px solid #ececec; border-radius: 50%; transition: border-color .2s ease-in-out;
}
.focus-box .service-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-box:hover .service-icon { border-color: var(--rule-color, var(--red)); }
.focus-title { position: relative; display: inline-block; margin: 0 0 25px; font-size: 15px; text-transform: uppercase; }
.focus-title a { color: var(--dark); }
/* Colored rules under titles, cycling red / green / blue / yellow as Zerif did */
.focus-title::after, .latestnews-title::after {
	content: ""; position: absolute; left: 12.5%; bottom: -9px; width: 75%; height: 2px; background: var(--rule-color, var(--red));
}
.focus-box:nth-child(4n+2), .latestnews-box:nth-child(4n+2) { --rule-color: var(--green); }
.focus-box:nth-child(4n+3), .latestnews-box:nth-child(4n+3) { --rule-color: var(--blue); }
.focus-box:nth-child(4n+4), .latestnews-box:nth-child(4n+4) { --rule-color: var(--yellow); }
.focus-box p { font-size: 14px; }

.separator-one { padding: 100px 0; background: rgba(52, 210, 147, .8); }
.separator-one .text { max-width: 800px; margin: 15px auto 20px; color: #fff; font-size: 18px; line-height: 34px; }
.separator-one .text img { display: inline-block; }
.separator-one .green-btn { background: #14a168; }
.separator-one .green-btn:hover { background: #007345; }

.purchase-now { padding: 70px 0; background: var(--red); }
.purchase-now h3 { margin: 14px 0; font: 400 21px/40px var(--font); color: #fff; }
.purchase-now .red-btn { background: #db5a4a; }
.purchase-now .red-btn:hover { background: #bf3928; }

.latest-news { padding: 100px 0 66px; background: #fff; }
.carousel { position: relative; padding: 0 45px; }
.carousel-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
	margin: 0; padding: 0 0 10px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.latestnews-box { scroll-snap-align: start; min-width: 0; }
.latestnews-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.latestnews-title { position: relative; display: inline-block; margin: 15px 0 30px; font-size: 16px; text-transform: uppercase; }
.latestnews-title a { color: var(--dark); }
.latestnews-excerpt { font-size: 13px; line-height: 20px; }
.latestnews-excerpt p { margin: 0; }
.carousel-control {
	position: absolute; top: 90px; width: 40px; height: 60px; padding: 0; border: 0; cursor: pointer;
	background: none; font: 60px/1 var(--font); color: #bbb;
}
.carousel-control:hover { color: var(--red); }
.carousel-control:disabled { opacity: .3; cursor: default; }
.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

/* ---------- Contact (front page section and Contact page) ---------- */
.contact-us { padding: 100px 0 95px; background: rgba(0, 0, 0, .5); }
.contact-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; max-width: 1140px; margin: 0 auto; text-align: left; }
.contact-form p { margin: 0 0 20px; }
.contact-form .field-message, .contact-form .field-submit { grid-column: 1 / -1; }
.contact-form .field-submit { text-align: right; }
.contact-form label { display: block; margin-bottom: 4px; font-size: 13px; }
.contact-us .contact-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form input, .contact-form textarea {
	width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #555;
}
.contact-us .contact-form input, .contact-us .contact-form textarea { border-color: transparent; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #999; }
.contact-form button { margin: 0; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-notice { display: inline-block; margin: 0 0 20px; padding: 5px 12px; border-radius: 3px; color: #fff; }
.contact-notice.ok { background: var(--green-btn); }
.contact-notice.error { background: var(--red); }
.contact-page-form .contact-form { grid-template-columns: 1fr; max-width: 600px; margin: 0; }
.contact-page-form .contact-form .field-submit { text-align: left; }

/* ---------- Footer ---------- */
#footer { background: var(--footer); color: var(--footer-text); line-height: 20px; }
.company-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 0; padding-top: 67px; padding-bottom: 30px; }
.company-details .detail { flex: 0 0 25%; padding: 0 15px; }
.company-details a { color: var(--footer-text); }
.company-details a:hover { color: var(--red); }
.company-details .icon-top { display: block; width: 30px; height: 30px; margin: 0 auto 10px; fill: var(--red); }
.detail-email .icon-top { fill: var(--green); }
.detail-phone .icon-top { fill: var(--blue); }
.copyright { padding: 33px 0; background: var(--copyright); color: #666; font-size: 13px; }

/* ---------- Inner pages: content and sidebar ---------- */
.site-content { background: #fff; text-align: left; }
.content-wrap { display: flex; align-items: flex-start; gap: 0 30px; padding-bottom: 60px; }
.content-left-wrap { flex: 1 1 0; min-width: 0; padding-top: 60px; }
.sidebar-wrap { flex: 0 0 25%; min-width: 0; margin-top: 60px; padding-left: 15px; border-left: 1px solid rgba(0, 0, 0, .05); }

.entry-title { position: relative; margin: 0 0 20px; padding-bottom: 5px; font-size: 20px; line-height: 22px; color: var(--dark); }
.entry-title a { color: var(--dark); }
.entry-title a:hover { color: var(--red); }
.entry-title::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 10%; min-width: 40px; height: 2px; background: var(--red); }
.entry-meta { margin: -5px 0 20px; color: #404040; font-size: 14px; }
.entry-meta time { color: #888; font-style: italic; }
.entry-content { color: #404040; font-size: 14px; line-height: 20px; }
.entry-content p { margin: 0 0 20px; text-align: justify; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; font-family: var(--font); font-weight: 400; color: #404040; }
.entry-content ul, .entry-content ol { padding-left: 30px; }
.entry-content table { border-collapse: collapse; margin-bottom: 20px; }
.entry-content th, .entry-content td { padding: 6px 10px; border: 1px solid #e5e5e5; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter, img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; margin-bottom: 20px; }
.wp-caption-text { margin: 5px 0 0; font-size: 13px; font-style: italic; text-align: center; color: #888; }
.entry-content::after, .listpost::after { content: ""; display: table; clear: both; }

.listpost { display: flex; gap: 25px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.listpost .post-img-wrap { flex: 0 0 174px; }
.listpost .post-img-wrap img { display: block; width: 174px; height: 174px; object-fit: cover; }
.listpost-content-wrap { flex: 1; min-width: 0; }
.page-header .page-title { font-size: 24px; margin-bottom: 40px; }

.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; padding: 15px 0; border-top: 1px solid #f0f0f0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links .page-numbers { padding: 3px 10px; border: 1px solid #e5e5e5; border-radius: 3px; color: var(--dark); }
.nav-links .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

/* Sidebar widgets */
.widget { margin-bottom: 30px; }
.widget-title {
	position: relative; margin: 30px 0 30px; padding-bottom: 5px;
	font-size: 17px; text-transform: uppercase; color: var(--dark);
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 35%; height: 2px; background: var(--red); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 5px 0 5px 12px; position: relative; }
.widget li::before { content: "·"; position: absolute; left: 0; color: #aaa; }
.widget li a { color: #737373; }
.widget li a:hover { color: var(--red); }
.search-form { display: flex; margin-top: 25px; border: 2px solid #ececec; }
.search-field { flex: 1; min-width: 0; padding: 10px; border: 0; color: #555; }
.search-submit { flex: 0 0 40px; border: 0; background: none; cursor: pointer; color: #bbb; }
.search-submit svg { width: 16px; height: 16px; }

/* Comments */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 18px; }
.comment-list { margin: 0 0 30px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: #888; }
.comment-form label { display: block; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; max-width: 500px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px;
}

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
	.intro-text { font-size: 41px; line-height: 49px; }
	.carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
	.company-details .detail { flex-basis: 33.33%; }
}
@media (max-width: 767px) {
	:root { --nav-height: 64px; }
	body { padding-top: 0; }
	#main-nav { position: static; }
	html { scroll-padding-top: 0; }
	.navbar-brand { height: var(--nav-height); }
	#main-nav .container { justify-content: center; }
	.header-content-wrap { padding: 120px 0 90px; }
	.intro-text { font-size: 30px; line-height: 37px; }
	.section-header { padding-bottom: 45px; }
	.section-header h2 { font-size: 32px; line-height: 36px; }
	.focus, .latest-news, .contact-us { padding-top: 60px; padding-bottom: 50px; }
	.separator-one { padding: 60px 0; }
	.carousel { padding: 0; }
	.carousel-track { grid-auto-columns: 75%; }
	.carousel-control { display: none; }
	.contact-form { grid-template-columns: 1fr; }
	.contact-form .field-submit { text-align: center; }
	.company-details .detail { flex-basis: 100%; }
	.content-wrap { flex-direction: column; }
	.sidebar-wrap { flex-basis: auto; width: 100%; margin-top: 0; padding-left: 0; border-left: 0; }
	.listpost { flex-direction: column; }
	.entry-content p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
