/* Southpaw Trading Co. — design system */

:root {
  --ink: #151310;
  --char: #1f1c18;
  --char-2: #262220;
  --paper: #ede7dc;
  --paper-2: #e2dbcc;
  --rust: #e0b554;
  --rust-dark: #a9793a;
  --brass: #a9863a;
  --steel: #8a867d;
  --steel-2: #6b675f;
  --white: #fbf9f5;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--rust);
}

.eyebrow.on-light { color: var(--rust-dark); }

p { margin: 0 0 1em; color: var(--steel); }
p:last-child { margin-bottom: 0; }

.on-paper p { color: var(--steel-2); }
.on-paper, .on-paper h1, .on-paper h2, .on-paper h3 { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 19, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(237, 231, 220, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0 0 0 -12px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.brand:hover, .brand:focus-visible {
  background: rgba(237, 231, 220, 0.08);
  transform: translateY(-1px);
}
.brand:active { transform: translateY(0); }

.brand img { height: 42px; width: 42px; }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}

.brand-word span { color: var(--rust); }
.brand:hover .brand-word span { color: var(--rust-dark); }

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 101;
  pointer-events: none;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  height: 100%;
  pointer-events: none;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
  pointer-events: auto;
}

.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--rust); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--rust);
  color: var(--white) !important;
  border-radius: 3px;
  opacity: 1 !important;
}

.nav-cta:hover { background: var(--rust-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(251, 249, 245, 0.35);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--char-2); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,19,16,0.15) 0%, rgba(21,19,16,0.35) 45%, rgba(21,19,16,0.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: var(--white);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--paper);
  max-width: 46ch;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-inner .eyebrow {
  margin-bottom: 14px;
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Page hero (interior pages, shorter) */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,19,16,0.25) 0%, rgba(21,19,16,0.9) 100%);
}
.page-hero .hero-inner { padding-bottom: 48px; position: relative; z-index: 1; }

/* Modifier for a lower-resolution source photo: renders the image on a blurred,
   slightly oversized ::before layer (instead of directly on the element) and darkens
   the gradient further, so upscaling artifacts read as an intentional soft-focus
   treatment rather than a blurry photo. */
.page-hero.soft-photo { background: none; }
.page-hero.soft-photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: var(--hero-pos, center);
  filter: blur(0.6px) saturate(1.05);
  transform: scale(1.02);
}
.page-hero.soft-photo::after {
  background: linear-gradient(180deg, rgba(21,19,16,0.08) 0%, rgba(21,19,16,0.1) 55%, rgba(21,19,16,0.88) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.tight { padding: 64px 0; }

.section-dark { background: var(--ink); }
.section-char { background: var(--char); }
.section-paper { background: var(--paper); color: var(--ink); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Quote strip ---------- */
.quote-strip {
  padding: 90px 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.quote-strip blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 auto 28px;
  text-transform: none;
  letter-spacing: 0;
}
.quote-strip cite {
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--rust-dark);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--char-2);
  border: 1px solid rgba(237,231,220,0.1);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--rust);
  margin-bottom: 10px;
}
.testimonial-card p {
  color: var(--paper);
  line-height: 1.55;
  flex: 1;
}
.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--white);
  margin-top: 14px;
}
.testimonial-card .testimonial-date {
  display: block;
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 2px;
}
/* ---------- Reviews page: stats bar ---------- */
.review-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(237,231,220,0.1);
}
.review-stats .stat { text-align: center; }
.review-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--rust);
  line-height: 1;
}
.review-stats .stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ---------- Reviews page: featured story spotlight ---------- */
.review-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--char-2);
  border: 1px solid rgba(237,231,220,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: 40px 0 40px;
}
.review-spotlight-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink);
}
.review-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.review-spotlight-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--rust);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
}
.review-spotlight-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-spotlight-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--white);
  margin: 16px 0 20px;
}
@media (max-width: 760px) {
  .review-spotlight { grid-template-columns: 1fr; }
  .review-spotlight-body { padding: 32px; }
}

/* ---------- Reviews page: grid ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
}
@media (max-width: 900px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--char);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }

.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,16,0) 40%, rgba(21,19,16,0.88) 100%);
}

.project-card-label {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  z-index: 2;
}
.project-card-label .eyebrow { color: var(--brass); }
.project-card-label h3 { color: var(--white); font-size: 1.5rem; margin-top: 6px; }
.project-card-label p { color: var(--paper); opacity: 0.85; font-size: 0.9rem; margin-top: 6px; max-width: 32ch; }

/* ---------- About teaser / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-main-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(237,231,220,0.1);
  display: block;
}

.badge-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border: 1px solid rgba(237,231,220,0.1);
  border-radius: 6px;
  padding: 48px;
}
.badge-frame img { max-width: 260px; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.about-gallery > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(237,231,220,0.1);
}
@media (max-width: 860px) {
  .about-gallery { grid-template-columns: 1fr; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 28px;
  text-align: left;
}
.video-grid .video-embed { margin-top: 0; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(21,19,16,0.1);
  background: var(--ink);
  cursor: pointer;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.video-embed:hover img { transform: scale(1.03); filter: brightness(0.85); }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(21,19,16,0.75);
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-embed:hover .video-play { background: var(--rust); transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { width: 24px; height: 24px; fill: var(--white); margin-left: 3px; }

/* Featured video: bigger, framed with an accent border to draw the eye */
.video-featured {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: left;
}
.video-featured .video-embed {
  margin-top: 0;
  border: 1px solid var(--rust);
  box-shadow: 0 12px 32px rgba(21,19,16,0.18);
}
.video-featured .video-play { width: 84px; height: 84px; }
.video-featured .video-play svg { width: 32px; height: 32px; }
.video-featured p { text-align: center; font-size: 0.95rem !important; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--rust);
  line-height: 1;
}
.stat-row .stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ---------- Gallery (work page) ---------- */
.gallery-jump {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid rgba(237,231,220,0.1);
}
.gallery-jump a {
  padding: 8px 16px;
  border: 1px solid rgba(237,231,220,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-jump a:hover { border-color: var(--rust); color: var(--rust); }

.project-block { padding: 80px 0; border-bottom: 1px solid rgba(237,231,220,0.08); }
.project-block:last-child { border-bottom: none; }

.project-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.project-block-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.masonry img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3/2;
  border-radius: 2px;
}
.masonry .tall { grid-row: span 2; aspect-ratio: 3/4; }
.masonry .wide { grid-column: span 2; aspect-ratio: 16/9; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--char);
  border: 1px solid rgba(237,231,220,0.08);
  border-radius: 8px;
  padding: 56px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(237,231,220,0.08);
}
.contact-line:first-child { border-top: none; }
.contact-line .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  width: 140px;
  flex-shrink: 0;
}
.contact-line .value { font-size: 1.15rem; color: var(--white); }
.contact-line a.value:hover { color: var(--rust); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(237,231,220,0.08);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--steel); }
.footer-nav a:hover { color: var(--rust); }
.footer-bottom a { color: var(--steel-2); text-decoration: underline; text-decoration-color: rgba(237,231,220,0.25); text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--rust); text-decoration-color: var(--rust); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(237,231,220,0.08);
  font-size: 0.78rem;
  color: var(--steel-2);
}

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

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry .wide { grid-column: span 2; }

  .main-nav {
    top: 76px; height: auto; bottom: 0;
    background: var(--ink);
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    padding: 32px 28px;
    gap: 24px;
  }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 101;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--white); }
  .contact-card { padding: 32px; }
  .contact-line { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------------- Project form ---------------- */
.project-form {
  background: var(--char);
  border: 1px solid rgba(237,231,220,0.08);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  background: var(--ink);
  border: 1px solid rgba(237,231,220,0.14);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--steel-2); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.form-group textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid rgba(237,231,220,0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-option input:checked + span {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--ink);
}

.pill-option:hover span { border-color: var(--rust); }

.form-note {
  font-size: 0.8rem;
  color: var(--steel);
}

.form-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rust);
  display: none;
}
.form-status.show { display: block; }

@media (max-width: 700px) {
  .project-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
