/*
Theme Name: Navis Marine Workwear
Theme URI: https://goretexpro.com
Author: Navis Marine
Author URI: https://goretexpro.com
Description: WooCommerce and RFQ theme for Navis Marine waterproof workwear supply.
Version: 1.1.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: navis-workwear
*/

:root {
  --ink: #172026;
  --charcoal: #243039;
  --slate: #40515c;
  --muted: #697883;
  --paper: #f4f6f1;
  --surface: #ffffff;
  --line: #d9e0df;
  --blue: #236f96;
  --green: #5b7f5a;
  --orange: #e8632a;
  --safety: #d7ef3b;
  --cream: #fbfbf6;
  --shadow: 0 18px 44px rgba(17, 28, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
select,
textarea,
button {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  min-height: 38px;
  padding: 8px 18px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar a {
  color: var(--safety);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(244, 246, 241, 0.96);
  border-bottom: 1px solid rgba(217, 224, 223, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #fff;
  background: var(--orange);
  border: 2px solid var(--ink);
  font-weight: 900;
}

.brand-logo {
  overflow: hidden;
  background: #b3162d;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--orange);
}

.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-hero {
  position: relative;
  min-height: clamp(600px, 80vh, 780px);
  display: grid;
  align-items: end;
  padding: clamp(38px, 6vw, 74px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: saturate(0.94) contrast(1.08);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(14, 22, 28, 0.9), rgba(14, 22, 28, 0.62) 43%, rgba(14, 22, 28, 0.22)),
    linear-gradient(0deg, rgba(14, 22, 28, 0.56), rgba(14, 22, 28, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(870px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-hero h1 {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 0.98;
}

.trade-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.rfq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  color: #fff;
  background: var(--orange);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.58);
}

.button-secondary.dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-link {
  color: #fff;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-proof {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(24px, 6vw, 74px);
  z-index: 2;
  display: grid;
  gap: 4px;
  width: min(270px, 30vw);
  min-width: 230px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.hero-proof span,
.hero-proof small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-proof strong {
  font-size: 34px;
  line-height: 1;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-nav a {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 12px;
  color: var(--charcoal);
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quick-nav a:last-child {
  border-right: 0;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  color: #fff;
  background: var(--blue);
}

.section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 4vw, 58px);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin-bottom: 30px;
}

.split-heading {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: end;
  max-width: none;
}

.section-heading h2,
.capability-copy h2,
.rfq-panel h2,
.shop-hero h1,
.content-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
}

.section-heading p:not(.section-kicker),
.capability-copy p,
.rfq-panel p,
.site-footer p,
.shop-hero p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.intro-section {
  background: var(--cream);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metric-grid strong {
  color: var(--blue);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metric-grid span {
  color: var(--slate);
  font-weight: 750;
}

.product-line-section {
  background: var(--paper);
}

.product-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-line-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  min-height: 330px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-line-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  background: #fff;
}

.product-line-card div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.product-line-card p,
.product-copy p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-line-card h3,
.capability-grid h3,
.quality-grid h3,
.process-steps h3,
.faq-grid h3,
.product-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.08;
}

.product-line-card ul,
.capability-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.capability-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(58px, 8vw, 100px) clamp(18px, 4vw, 58px);
  color: #fff;
  background: var(--charcoal);
}

.capability-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 6px;
}

.capability-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.capability-copy h2,
.capability-grid h3 {
  color: #fff;
}

.capability-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.quality-section {
  background: var(--cream);
}

.quality-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quality-grid article,
.faq-grid article {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quality-grid span,
.process-steps span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quality-grid p,
.process-steps p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.process-section {
  background: #fff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  counter-reset: process;
}

.process-steps article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 265px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.process-steps article::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -13px;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.process-steps article:last-child::after {
  display: none;
}

.faq-section {
  background: var(--paper);
}

.rfq-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 8vw, 94px) clamp(18px, 4vw, 58px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.94), rgba(35, 111, 150, 0.88)),
    var(--charcoal);
}

.rfq-panel h2 {
  color: #fff;
}

.rfq-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.content-card,
.page-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 70px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.page-content h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.page-body {
  display: grid;
  gap: 18px;
}

.page-template-default .site-main {
  padding: clamp(32px, 5vw, 70px) clamp(18px, 4vw, 58px);
}

.rfq-form-wrap {
  max-width: 980px;
  margin-top: 28px;
}

.rfq-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rfq-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 850;
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.rfq-form textarea {
  resize: vertical;
}

.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
  outline: 2px solid rgba(35, 111, 150, 0.22);
  border-color: var(--blue);
}

.rfq-hp {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 800;
}

.form-alert-success {
  color: #173c26;
  background: #dcefdc;
  border: 1px solid #afd4af;
}

.form-alert-error {
  color: #6e2516;
  background: #ffe1d6;
  border: 1px solid #efaa93;
}

.shop-hero {
  padding: clamp(46px, 7vw, 84px) clamp(18px, 4vw, 58px);
  color: #fff;
  background: var(--charcoal);
}

.shop-hero h1 {
  color: #fff;
}

.shop-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.woo-section .woocommerce {
  width: 100%;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 18px;
  margin-right: 18px;
}

.woocommerce ul.products li.product .button {
  margin-bottom: 18px;
}

.woocommerce div.product {
  padding: clamp(32px, 5vw, 70px) clamp(18px, 4vw, 58px);
}

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  padding: clamp(32px, 5vw, 70px) clamp(18px, 4vw, 58px);
}

.empty-store-note {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(24px, 5vw, 56px);
  padding: 44px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-brand,
.site-footer h3 {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 430px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
}

@media (max-width: 1180px) {
  .site-header,
  .split-heading,
  .capability-band,
  .rfq-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 14px;
  }

  .site-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .quote-button {
    width: max-content;
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-steps article::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .metric-grid,
  .product-line-grid,
  .quality-grid,
  .faq-grid,
  .capability-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-line-card {
    grid-template-columns: 1fr;
  }

  .product-line-card img {
    height: 300px;
    min-height: 300px;
  }

  .hero-proof {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(420px, 100%);
    margin-top: 26px;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: start;
    overflow-x: hidden;
  }

  .topbar a:nth-of-type(1) {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .trade-hero {
    min-height: 640px;
    align-items: start;
    padding: 36px 18px;
  }

  .trade-hero h1 {
    font-size: 34px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .trade-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .quick-nav,
  .metric-grid,
  .product-line-grid,
  .quality-grid,
  .faq-grid,
  .capability-grid,
  .process-steps,
  .rfq-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .quick-nav a {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-image {
    min-height: 360px;
  }

  .product-line-card,
  .quality-grid article,
  .faq-grid article,
  .process-steps article {
    min-height: auto;
  }

  .product-line-card img,
  .woocommerce ul.products li.product a img {
    height: 280px;
  }
}
