/*
Theme Name: Marine Storage Systems, LLC
Theme URI: 
Author: SRKPICS
Author URI: https://sumonrahmankabbo.com/
Description: A lightweight, Elementor-ready marine storage theme with an overlay header, sticky navigation, mobile off-canvas menu, widgetized footer, and extensive typography and color controls.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marine-storage-systems
Tags: custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

:root {
	--mss-primary: #00aaa5;
	--mss-accent: #f15a24;
	--mss-body-color: #20252b;
	--mss-heading-color: #00aaa5;
	--mss-link-color: #00aaa5;
	--mss-link-hover: #f15a24;
	--mss-content-width: 1170px;
	--mss-header-height: 92px;
	--mss-sticky-height: 105px;
	--mss-logo-width: 120px;
	--mss-mobile-logo-width: 96px;
	--mss-body-font: Arial, Helvetica, sans-serif;
	--mss-heading-font: Georgia, "Times New Roman", serif;
	--mss-menu-font: 'Freight Display Light', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--mss-body-color); margin: 0; overflow-x: hidden; }
body.mss-menu-open { overflow: hidden; }
img { height: auto; max-width: 100%; }
figure { margin: 0; }
a { color: var(--mss-link-color); text-decoration: none; transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
a:hover, a:focus { color: var(--mss-link-hover); }
button, input, select, textarea { font: inherit; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #f1f1f1; clip: auto !important; clip-path: none; color: #21759b; display: block; font-size: 14px; height: auto; left: 5px; padding: 15px 23px 14px; top: 5px; width: auto; z-index: 100000; }
.mss-container { margin-inline: auto; max-width: var(--mss-content-width); padding-inline: 24px; width: 100%; }

/* Header */
.site-header { background: rgba(0,0,0,.08); color: #fff; height: var(--mss-header-height); left: 0; position: absolute; right: 0; top: 0; transition: background-color .3s ease, box-shadow .3s ease, height .3s ease, transform .3s ease; width: 100%; z-index: 9990; }
.admin-bar .site-header { top: 32px; }
.site-header.is-sticky { background: #fff; box-shadow: 0 4px 22px rgba(20,38,50,.12); color: #00aaa5; height: var(--mss-sticky-height); position: fixed; }
.header-inner { align-items: center; display: flex; gap: 42px; height: 100%; justify-content: space-between; margin-inline: auto; max-width: var(--mss-content-width); padding-inline: 24px; }
.site-branding { align-items: center; display: flex; flex: 0 0 auto; position: relative; z-index: 2; top: 10px; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 100%; width: var(--mss-logo-width); }
.is-sticky .custom-logo { max-height: 100%; width: 100px; }
.site-title { color: inherit; font-family: var(--mss-heading-font); font-size: 24px; font-weight: 700; line-height: 1.1; }
.site-description { font-size: 12px; margin: 4px 0 0; }
.main-navigation { margin-left: auto; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { align-items: center; display: flex; gap: 4px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { border-radius: 4px; color: inherit; display: block; padding: 12px 17px; white-space: nowrap; }
.primary-menu > li:hover > a, .primary-menu > li:focus-within > a, .primary-menu > li.current-menu-item > a, .primary-menu > li.current-menu-ancestor > a { background: var(--mss-accent); color: #fff; }
.mss-last-menu-button .primary-menu > li:last-child { margin-left: 16px; }
.mss-last-menu-button .primary-menu > li:last-child > a { background: var(--mss-accent); color: #fff; padding-inline: 23px; }
.mss-last-menu-button .primary-menu > li:last-child > a:hover { filter: brightness(.92); }
.primary-menu .sub-menu { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); color: var(--mss-body-color); left: 0; min-width: 220px; opacity: 0; padding: 8px; pointer-events: none; position: absolute; top: calc(100% + 8px); transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; visibility: hidden; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.primary-menu .sub-menu a { border-radius: 3px; color: inherit; display: block; padding: 10px 12px; }
.primary-menu .sub-menu a:hover { background: var(--mss-accent); color: #fff; }
.menu-toggle, .mobile-menu-close, .mobile-menu-overlay { display: none; }

/* Content */
.site-main { min-height: 50vh; }
body:not(.elementor-page) .site-main { padding: calc(var(--mss-header-height) + 70px) 0 80px; }
.home:not(.elementor-page) .site-main { padding-top: calc(var(--mss-header-height) + 70px); }
.elementor-page .site-main { padding: 0; }
.page-header { border-bottom: 1px solid #e5e8eb; margin-bottom: 38px; padding-bottom: 18px; }
.page-title, .entry-title { margin-top: 0; }
.entry-title a { color: inherit; }
.entry-meta { color: #6b737b; font-size: .9em; margin-bottom: 20px; }
.entry-content::after { clear: both; content: ""; display: table; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.post-card { border-bottom: 1px solid #e5e8eb; margin-bottom: 42px; padding-bottom: 42px; }
.post-thumbnail { display: block; margin-bottom: 24px; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { border: 1px solid #d9dde1; display: inline-flex; min-height: 40px; min-width: 40px; padding: 8px 12px; place-content: center; }
.page-numbers.current, .page-numbers:hover { background: var(--mss-primary); border-color: var(--mss-primary); color: #fff; }
.wp-caption, .gallery-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky { display: block; }
.bypostauthor { display: block; }

/* Footer */
.site-footer { background: #fff; color: #20252b; }
.footer-widgets { padding: 78px 0 72px; }
.footer-grid { display: grid; gap: 54px; grid-template-columns: repeat(var(--mss-footer-columns, 3), minmax(0, 1fr)); }
.footer-widget .widget { margin: 0 0 28px; }
.footer-widget .widget:last-child { margin-bottom: 0; }
.footer-widget-title { color: var(--mss-primary); font-family: var(--mss-body-font); font-size: 14px; font-weight: 700; margin: 0 0 20px; text-transform: uppercase; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin-bottom: 11px; }
.footer-widget a { color: inherit; }
.footer-widget a:hover { color: var(--mss-accent); }
.footer-bottom { background: var(--mss-primary); color: #fff; padding: 22px 0; }
.footer-bottom-inner { align-items: center; display: flex; gap: 30px; justify-content: space-between; }
.footer-copyright { font-size: 14px; font-weight: 600; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: inherit; font-size: 14px; font-weight: 600; }
.back-to-top { align-items: center; background: #344f66; border: 0; border-radius: 50%; bottom: 24px; color: #fff; cursor: pointer; display: flex; height: 50px; justify-content: center; opacity: 0; pointer-events: none; position: fixed; right: 20px; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; width: 50px; z-index: 9980; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { height: 22px; width: 22px; }

/* WordPress widgets */
.widget_search .search-form { display: flex; }
.widget_search .search-field { border: 1px solid #d9dde1; min-width: 0; padding: 10px 12px; width: 100%; }
.widget_search .search-submit { background: var(--mss-accent); border: 0; color: #fff; cursor: pointer; padding: 10px 16px; }

@media (max-width: 1024px) {
	.header-inner { gap: 16px; }
	.primary-menu > li > a { padding-inline: 10px; }
	.mss-last-menu-button .primary-menu > li:last-child { margin-left: 4px; }
}

@media (max-width: 782px) {
	:root { --mss-header-height: 66px; --mss-sticky-height: 62px; }
	.admin-bar .site-header { top: 46px; }
	.site-header, .site-header.is-sticky { background: #252b31; color: #fff; }
	.header-inner { justify-content: center; padding-inline: 16px; }
	.custom-logo { max-height: 100%; width: var(--mss-mobile-logo-width); }
	.site-title { font-size: 19px; }
	.menu-toggle { align-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; height: 44px; justify-content: center; left: 8px; padding: 10px; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; }
	.menu-toggle svg { height: 22px; width: 22px; }
	.main-navigation { background: #252b31; bottom: 0; color: #fff; display: block; left: 0; margin: 0; max-width: 320px; overflow-y: auto; padding-top: 54px; position: fixed; top: 0; transform: translateX(-102%); transition: transform .3s ease; width: 74vw; z-index: 10020; }
	.admin-bar .main-navigation { top: 46px; }
	body.mss-menu-open .main-navigation { transform: translateX(0); }
	.mobile-menu-close { align-items: center; background: transparent; border: 0; color: #fff; cursor: pointer; display: flex; font-size: 25px; height: 46px; justify-content: center; position: absolute; right: 7px; top: 2px; width: 46px; }
	.primary-menu { align-items: stretch; display: block; }
	.primary-menu > li { border-bottom: 1px solid rgba(255,255,255,.18); }
	.primary-menu > li > a, .mss-last-menu-button .primary-menu > li:last-child > a { background: transparent; border-radius: 0; color: #fff; display: block; margin: 0; padding: 17px 20px; }
	.mss-last-menu-button .primary-menu > li:last-child { margin-left: 0; }
	.primary-menu > li:hover > a, .primary-menu > li:focus-within > a, .primary-menu > li.current-menu-item > a { background: rgba(255,255,255,.07); color: #fff; }
	.primary-menu .sub-menu { background: rgba(0,0,0,.14); box-shadow: none; display: block; min-width: 0; opacity: 1; padding: 0 0 8px 16px; pointer-events: auto; position: static; transform: none; visibility: visible; }
	.primary-menu .sub-menu a { color: #fff; }
	.mobile-menu-overlay { background: rgba(0,0,0,.45); border: 0; bottom: 0; display: block; left: 0; opacity: 0; pointer-events: none; position: fixed; right: 0; top: 0; transition: opacity .3s ease; z-index: 10010; }
	body.mss-menu-open .mobile-menu-overlay { opacity: 1; pointer-events: auto; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-widgets { padding-block: 50px; }
	.footer-bottom-inner { align-items: flex-start; flex-direction: column; }
	.footer-menu { gap: 16px 24px; justify-content: flex-start; }
	body:not(.elementor-page) .site-main { padding-top: calc(var(--mss-header-height) + 48px); }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .site-header.is-sticky { top: 0; }
	.mss-container { padding-inline: 18px; }
	.alignleft, .alignright { float: none; margin: 0 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
