/* ============================================
   PRYMEX GLOBAL — Brand Stylesheet
   ============================================ */

:root {
  --navy: #0A1628;
  --navy-soft: #112338;
  --steel: #1B3A5C;
  --gold: #C8A85A;
  --gold-soft: #E3D2A8;
  --blue: #185FA5;
  --blue-soft: #E6F1FB;
  --ivory: #F5F0E8;
  --ivory-line: #E0D8CC;
  --ink: #1E2530;
  --muted: #6B7585;
  --muted-on-dark: #8A9BB5;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ TRI-COLOR ACCENT BAR ============ */
.accent-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.accent-bar span:nth-child(1) { flex: 2; background: var(--gold); }
.accent-bar span:nth-child(2) { flex: 1; background: var(--blue); }
.accent-bar span:nth-child(3) { flex: 3; background: var(--navy); }

/* ============ HEADER / NAV ============ */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ivory);
  letter-spacing: 4px;
}
.brand-text .sub {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 5px;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  gap: 36px;
}
nav.main-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ivory);
  border-color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: 3px;
  border-bottom: none !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px;
}
.nav-cta:hover { background: var(--gold-soft); border-color: transparent !important; }

/* mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px 32px;
    border-top: 1px solid var(--steel);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--steel);
    color: var(--ivory);
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 3px;
    cursor: pointer;
  }
  .nav-cta { align-self: flex-start; }
}

/* ============ HEX MARK (logo icon) ============ */
.hexmark {
  flex-shrink: 0;
}

/* ============ HERO ============ */
.hero {
  background: var(--navy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero p.lead {
  font-size: 17px;
  color: var(--muted-on-dark);
  max-width: 480px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* decorative hex outlines scattered in background */
.bg-hex {
  position: absolute;
  stroke: var(--steel);
  fill: none;
  opacity: 0.45;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 3px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-soft); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--steel);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline.dark {
  color: var(--navy);
  border-color: var(--ivory-line);
}
.btn-outline.dark:hover { border-color: var(--blue); color: var(--blue); }

/* ============ SECTIONS ============ */
section { padding: 90px 0; }
section.tight { padding: 70px 0; }
section.alt { background: #ffffff; }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 0 0 14px;
  color: var(--navy);
  line-height: 1.25;
}
.section-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============ CATEGORY / FEATURE GRID ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ivory);
  border: 1px solid var(--ivory-line);
  border-radius: 6px;
  padding: 30px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(10,22,40,0.35);
  border-color: var(--gold);
}
.card .hexicon { margin-bottom: 18px; }
.card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--navy);
}
.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.card a.card-link:hover { border-color: var(--blue); }

/* ============ STATS ============ */
.stats-band {
  background: var(--steel);
  color: var(--ivory);
}
.stats-band .grid-4 { text-align: center; }
.stat .num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--gold);
  font-weight: 700;
}
.stat .label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 6px;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 12px;
}
.cta-band p {
  color: var(--muted-on-dark);
  max-width: 480px;
  margin: 0 auto 30px;
}

/* ============ PAGE HEADER (sub-pages) ============ */
.page-header {
  background: var(--navy);
  color: var(--ivory);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header .eyebrow { color: var(--gold); }
.page-header h1 {
  font-family: var(--serif);
  font-size: 42px;
  margin: 8px 0 14px;
}
.page-header p {
  color: var(--muted-on-dark);
  max-width: 560px;
  font-size: 15px;
  margin: 0;
}

/* ============ PRODUCT CATALOG ============ */
.category-block { margin-bottom: 70px; }
.category-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--ivory-line);
  padding-bottom: 14px;
}
.category-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  margin: 0;
}
.category-head .tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--ivory-line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { box-shadow: 0 14px 30px -20px rgba(10,22,40,0.3); border-color: var(--gold); }
.product-media {
  height: 110px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-body { padding: 22px 22px 24px; }
.product-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--navy);
}
.product-spec {
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 10px;
}
.product-body p.desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 14px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--ivory-line);
  padding-top: 12px;
  margin-bottom: 14px;
}
.product-meta strong { color: var(--ink); }
.badge-organic {
  display: inline-block;
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ============ ABOUT PAGE ============ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-split, .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 38px; }
}
.about-split h2 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 18px;
}
.about-split p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.values-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.value-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.value-item .hexicon { flex-shrink: 0; }
.value-item h4 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--navy);
}
.value-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--ivory-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.info-card {
  background: var(--navy);
  color: var(--ivory);
  border-radius: 6px;
  padding: 32px 28px;
}
.info-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--gold);
}
.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  align-items: flex-start;
}
.info-row .lbl {
  color: var(--muted-on-dark);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-width: 90px;
}
.info-row a { color: var(--ivory); text-decoration: none; }
.info-row a:hover { color: var(--gold); }
.divider-line {
  height: 1px;
  background: var(--steel);
  margin: 22px 0;
}
.tag-pill {
  display: inline-block;
  background: var(--steel);
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--navy);
  color: var(--muted-on-dark);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid a { text-decoration: none; color: var(--muted-on-dark); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted-on-dark);
  max-width: 280px;
  margin: 14px 0 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--steel);
  padding-top: 22px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .tagline {
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
}

/* ============ MISC ============ */
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 12px;
  z-index: 100;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
