/* ============================================
   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=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;
}

* { 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(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.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;
}

@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: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-lockup-mark {
  height: 190px;
  width: auto;
  filter: drop-shadow(0 10px 26px rgba(6, 14, 28, 0.55));
  flex-shrink: 0;
}

.hero-lockup-word {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hlw-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-transform: uppercase;
  margin: 0;
}

.hlw-name .amp {
  color: var(--brass);
  font-style: italic;
  font-weight: 500;
}

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

@media (max-width: 780px) {
  .hero-lockup { gap: 20px; }
  .hero-lockup-mark { height: 110px; }
  .hlw-tag { font-size: 0.78rem; letter-spacing: 0.1em; }
}

@media (max-width: 480px) {
  .hero-lockup { flex-direction: column; align-items: flex-start; }
}
.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(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 26px;
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.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(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  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(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  max-width: 18ch;
}

.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-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 18px;
}

.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; }

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

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

.team-card { }

.team-photo {
  aspect-ratio: 4/5;
  background: var(--line);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

.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;
}
