/* ============================================
   Corbett, Wingard & Ray — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Michroma&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1D3E6B;
  --ink-soft: #2C5484;
  --ink-deep: #142C4C;
  --paper: #FAFAF8;
  --paper-raised: #FFFFFF;
  --brass: #A2774D;
  --brass-dark: #86603C;
  --steel: #8B95A3;
  --steel-line: #D7DBE2;
  --slate: #4B5563;
  --line: #E2E5EA;
  --line-dark: #33507C;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', -apple-system, sans-serif;
  --display: 'Michroma', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
}

.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.3;
}

.logo .logo-sub {
  display: block;
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--brass);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  color: #CBD3DB;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #4A5C6E;
  color: var(--paper);
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 3px solid var(--brass);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #2E4256; width: 100%; }
  .site-header { position: relative; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(155deg, var(--ink-deep) 0%, var(--ink) 62%, var(--ink-soft) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/hero-photo.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(155deg, rgba(20,44,76,0.94) 0%, rgba(29,62,107,0.88) 45%, rgba(44,84,132,0.72) 100%);
}

.hero-logo-band {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 30px 0 34px;
  position: relative;
  z-index: 2;
}

.hero-lockup {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-lockup-mark {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 26px rgba(6, 14, 28, 0.55));
}

.hero-lockup-word {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 24px;
}

.hlw-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-transform: uppercase;
  margin: 0;
}

.hlw-name .amp {
  color: var(--brass);
}

.hlw-tag {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

@media (max-width: 780px) {
  .hero-lockup { grid-template-columns: 1fr; gap: 18px; }
  .hero-lockup-mark { max-height: 170px; }
  .hero-lockup-word { border-left: none; padding-left: 0; }
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 112px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.hero-eyebrow {
  font-size: 0.9rem;
  color: var(--brass);
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 26px;
  max-width: 20ch;
  letter-spacing: 0;
}

.hero p {
  font-size: 1.25rem;
  color: #D3DCE7;
  max-width: 46ch;
  margin: 0 0 34px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 30px;
}

.hero-stats div { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--brass); line-height: 1; }
.hero-stats span { display: block; font-family: var(--sans); font-size: 0.85rem; color: #9FADC4; margin-top: 10px; font-weight: 500; }

.hero-panel {
  background: var(--paper-raised);
  color: var(--ink);
  padding: 38px;
  border-top: 5px solid var(--brass);
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(6, 18, 36, 0.35);
}

.hero-panel h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.hero-panel p {
  color: var(--slate);
  font-size: 1rem;
  margin: 0 0 22px;
}

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 64px; }
  .hero-stats { flex-wrap: wrap; row-gap: 22px; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--brass);
  color: var(--brass);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--brass); color: var(--paper); }

.btn-solid {
  background: var(--brass);
  color: var(--paper);
}

.btn-solid:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

.btn-light { border-color: var(--paper); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Sections ---------- */

section { padding: 76px 0; }

/* ---------- About / Company History ---------- */

.about-hero-band {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}

.about-hero-band img { height: 220px; width: auto; justify-self: end; }

.about-hero-band .ahb-text {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: #C7D2E0;
  line-height: 1.5;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 26px;
}

@media (max-width: 780px) {
  .about-hero-band { grid-template-columns: 1fr; text-align: center; }
  .about-hero-band img { justify-self: center; height: 160px; }
  .about-hero-band .ahb-text { border-left: none; padding-left: 0; }
}

.history-era {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 40px;
}

.history-era:first-of-type { border-top: none; }

.history-era h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  position: sticky;
  top: 24px;
}

.history-era .era-body p {
  color: var(--slate);
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.history-era .era-body p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .history-era { grid-template-columns: 1fr; gap: 12px; }
  .history-era h3 { position: static; }
}


.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.3;
  margin: 0;
  max-width: 20ch;
}

.section-head p { color: var(--slate); max-width: 42ch; margin: 0; font-size: 1rem; }

.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-head h2 { color: var(--paper); }
.section-dark .section-head p { color: #B7C2CC; }
.section-dark .section-head { border-bottom-color: #34495D; }

/* ---------- Manufacturer region filter ---------- */

.mfr-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.mfr-filter-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border: 1.5px solid var(--steel-line);
  background: var(--paper-raised);
  color: var(--slate);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mfr-filter-btn:hover {
  border-color: var(--brass);
  color: var(--brass-dark);
}

.mfr-filter-btn[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--paper);
}

.mfr-card[hidden] { display: none; }

/* ---------- Manufacturer grid ---------- */

.mfr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mfr-card {
  background: var(--paper-raised);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: background 0.15s ease;
  position: relative;
}

.mfr-card:hover { background: #FFFDF9; }

.mfr-card .mfr-logo-img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.mfr-card .mfr-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
}

.mfr-card .mfr-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--brass);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mfr-card:hover .mfr-hint { opacity: 1; }

@media (max-width: 900px) {
  .mfr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mfr-grid { grid-template-columns: 1fr; }
}

/* ---------- Manufacturer detail panel (modal) ---------- */

.mfr-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(27, 43, 58, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.mfr-overlay.open { display: flex; }

.mfr-sheet {
  background: var(--paper-raised);
  max-width: 460px;
  width: 100%;
  border-top: 5px solid var(--brass);
  padding: 36px;
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
}

.mfr-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--slate);
  padding: 6px;
}

.mfr-sheet-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 6px;
}

.mfr-sheet h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.mfr-sheet-role {
  font-size: 0.85rem;
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 18px;
}

.mfr-sheet-bio p {
  color: var(--slate);
  font-size: 0.98rem;
  margin: 0 0 14px;
}

.mfr-sheet-bio p:last-child { margin-bottom: 0; }

.mfr-sheet-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.mfr-sheet-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 5px;
}

.mfr-sheet-row dd { margin: 0; font-size: 0.98rem; }

.mfr-sheet-link-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 4px 0 0;
}

.mfr-sheet-link-row a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brass-dark);
  text-decoration: none;
}

.mfr-sheet-link-row a:hover { text-decoration: underline; }

/* ---------- Team grid ---------- */

.team-group-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.team-group-head:first-of-type { border-top: none; padding-top: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.team-card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}

.team-photo,
.team-photo-img {
  aspect-ratio: 4/5;
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.team-photo {
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
}

.team-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--brass);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #B7C2CC;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #34495D;
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 16px;
}

.footer-grid p, .footer-grid a {
  font-size: 0.9rem;
  color: #B7C2CC;
  text-decoration: none;
  margin: 0 0 8px;
  display: block;
}

.footer-grid a:hover { color: var(--brass); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7E8C99;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc content pages ---------- */

.prose { max-width: 68ch; }
.prose p { color: var(--slate); font-size: 1.02rem; }

.placeholder-note {
  background: #FBF3E4;
  border-left: 3px solid var(--brass);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--brass-dark);
  margin: 24px 0;
}

/* ---------- About history refresh ---------- */
.about-history-hero .hero-bg {
  background-position: center 28%;
}
.about-history-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(15,35,61,.97) 0%, rgba(20,49,84,.92) 48%, rgba(30,65,108,.70) 100%);
}
.about-history-hero .about-history-hero-inner {
  min-height: 520px;
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 56px;
}
.about-history-copy { max-width: 720px; }
.about-history-copy .hero-eyebrow { margin-bottom: 16px; }
.about-history-copy h1 {
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  margin-bottom: 20px;
}
.about-history-copy > p:not(.hero-eyebrow):not(.about-history-kicker) {
  font-size: 1.18rem;
  max-width: 58ch;
  margin-bottom: 28px;
}
.about-history-rule { width: 72px; height: 3px; background: var(--brass); margin: 30px 0 22px; }
.about-history-kicker {
  font-size: .86rem !important;
  line-height: 1.65 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #D8E0EA !important;
  margin: 0 !important;
}
.about-history-mark { display:flex; justify-content:center; align-items:center; }
.about-history-mark img {
  width: min(320px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.32));
  opacity: .96;
}

.history-intro { padding: 0; background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.history-intro .wrap {
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
  gap:0;
  max-width: 1180px;
}
.history-archive-card { margin:0; background:var(--ink); }
.history-archive-image { position:relative; height:430px; overflow:hidden; }
.history-archive-image img { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.75) contrast(1.03); }
.history-archive-image::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(17,42,72,.06), rgba(17,42,72,.35));
}
.history-year {
  position:absolute; left:30px; bottom:22px; z-index:2;
  font-family:var(--display); font-size:clamp(3rem,7vw,5.8rem); line-height:1;
  color:rgba(255,255,255,.94); letter-spacing:.02em;
}
.history-archive-card figcaption {
  padding:13px 18px 15px; color:#D4DDE8; font-size:.75rem; letter-spacing:.04em;
}
.history-archive-card figcaption span { color:#96A8BC; margin-left:8px; }
.history-intro-copy { padding:64px 54px; display:flex; flex-direction:column; justify-content:center; }
.history-intro-label { color:var(--brass); font-weight:700; letter-spacing:.11em; font-size:.78rem; margin:0 0 16px; }
.history-intro-lede { font-family:var(--serif); color:var(--ink); font-size:clamp(1.55rem,2.5vw,2.2rem); line-height:1.35; margin:0 0 20px; }
.history-intro-note { color:var(--slate); font-size:.82rem; line-height:1.55; margin:0; }

.history-section { padding-top:72px; }
.history-section .history-era { position:relative; }
.history-section .history-era::before {
  content:""; position:absolute; left:0; top:44px; width:5px; height:42px; background:var(--brass);
  transform:translateX(-22px);
}

.about-team-feature { background:var(--ink); color:var(--paper); padding:72px 0 84px; }
.about-team-feature .wrap { max-width:1180px; }
.about-team-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:30px; }
.about-team-heading .history-intro-label { margin:0 0 8px; }
.about-team-heading h2 { font-family:var(--display); font-weight:400; font-size:clamp(1.7rem,3vw,2.7rem); margin:0; max-width:24ch; }
.about-team-photo { margin:0; overflow:hidden; border-top:4px solid var(--brass); box-shadow:0 24px 60px rgba(0,0,0,.24); }
.about-team-photo img { width:100%; height:auto; display:block; }

@media (max-width: 780px) {
  .about-history-hero .about-history-hero-inner { min-height:auto; grid-template-columns:1fr; padding-top:58px; padding-bottom:58px; gap:32px; }
  .about-history-mark { justify-content:flex-start; }
  .about-history-mark img { width:190px; }
  .history-intro .wrap { grid-template-columns:1fr; }
  .history-archive-image { height:300px; }
  .history-intro-copy { padding:40px 24px 46px; }
  .history-section .history-era::before { display:none; }
  .about-team-heading { display:block; }
}
