/*
Theme Name: Materialis Shellware
Template: materialis
Description: Shellware migration child theme for Materialis.
Version: 0.1.0
*/

:root {
  --shellware-ink: #0f172a;
  --shellware-blue: #2563eb;
  --shellware-cyan: #0891b2;
  --shellware-orange: #f97316;
  --shellware-paper: #f8fafc;
}

body {
  color: var(--shellware-ink);
}

.shellware-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  max-width: 52px;
}

.shellware-logo {
  display: block;
  width: 46px;
  height: 46px;
  max-height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.shellware-marquee {
  margin: 0 auto 2rem;
  max-width: 1100px;
}

.shellware-marquee img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.entry-content img[src*="/legacy/"] {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.header-top,
.navigation-bar {
  --materialis-primary-color: var(--shellware-blue);
}

body.home .navigation-bar:not(.fixto-fixed) {
  background: rgba(248, 250, 252, 0.94) !important;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.10);
}

body.home .navigation-bar:not(.fixto-fixed) #main_menu > li > a,
body.home .navigation-bar:not(.fixto-fixed) #main_menu > li > a:visited,
body.home .navigation-bar:not(.fixto-fixed) #main_menu > li > a:hover,
body.home .navigation-bar:not(.fixto-fixed) .mdi {
  color: var(--shellware-ink) !important;
}

body.home .navigation-bar:not(.fixto-fixed) #main_menu > li.current-menu-item > a,
body.home .navigation-bar:not(.fixto-fixed) #main_menu > li.current_page_item > a,
body.home .navigation-bar:not(.fixto-fixed) #main_menu > li > a:hover {
  color: var(--shellware-blue) !important;
}

body.home .header-homepage {
  min-height: clamp(320px, 52vw, 560px) !important;
  padding-bottom: 0 !important;
  background-color: var(--shellware-paper) !important;
  background-image: url('/wp-content/uploads/shellware-brand/shellware-marquee.svg'), radial-gradient(circle at 77% 50%, rgba(8, 145, 178, 0.16), transparent 36%), linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%) !important;
  background-position: center calc(50% + 20px), center, center !important;
  background-repeat: no-repeat !important;
  background-size: min(1100px, 92vw) auto, min(760px, 70vw) min(420px, 54vw), cover !important;
}

body.home .header-homepage.color-overlay::before,
body.home .header-homepage .background-overlay {
  display: none !important;
  opacity: 0 !important;
}

body.home .inner-header-description,
body.home .header-homepage .header-description-row {
  min-height: 0 !important;
  padding: 0 !important;
}

body.home .header-homepage .header-description-row > .col-xs {
  display: none !important;
}

body.home .page-content .shellware-marquee {
  display: none;
}

body.home .page-content > .gridContainer.content {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

body.home .header-content .align-holder,
body.home .header-content .header-buttons-wrapper {
  display: none !important;
}

body.home .header-content,
body.home .header-content-centered {
  min-height: 0 !important;
  padding: 0 !important;
}

.shellware-archive-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 2rem 0;
}

.shellware-archive-card {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 1.35rem;
}

.shellware-archive-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.shellware-archive-card a {
  color: var(--shellware-blue);
  text-decoration: none;
}

.shellware-archive-card a:hover {
  color: var(--shellware-cyan);
}

.shellware-archive-card p {
  color: #475569;
  margin: 0;
}

.shellware-project-media {
  margin: 1.5rem auto;
  text-align: center;
}

.shellware-project-media img,
.wp-block-gallery img {
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  height: auto;
  max-width: 100%;
}

.shellware-project-media img[src*="web_hi_res_512"] {
  max-width: 220px;
}
