/* Bender Brands — design tokens */
:root {
  --navy: #082764;
  --navy-rgba: 8, 39, 100;
  --cream: #F1EBE1;
  --cream-light: #F7F2EA;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: var(--navy);
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 60px);
  --header-h: 90px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 8px 14px;
  background: var(--navy); color: var(--white); z-index: 1000; border-radius: 4px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(var(--navy-rgba), 0.06);
}
.site-header__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo img { width: 145px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a, .site-nav button {
  font-family: var(--sans);
  font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--navy); padding: 8px 0; position: relative;
}
.site-nav a:hover, .site-nav button:hover { opacity: 0.7; }

.site-nav__group { position: relative; }
.site-nav__group > button { display: inline-flex; align-items: center; gap: 6px; }
.site-nav__group > button::after {
  content: ""; width: 6px; height: 6px; border: solid var(--navy); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s;
}
.site-nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid rgba(var(--navy-rgba), 0.08);
  padding: 12px 0; min-width: 180px; opacity: 0; visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s; box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.site-nav__group:hover .site-nav__dropdown,
.site-nav__group:focus-within .site-nav__dropdown { opacity: 1; visibility: visible; }
.site-nav__dropdown a { display: block; padding: 10px 22px; white-space: nowrap; }
.site-nav__dropdown a:hover { background: var(--cream); opacity: 1; }

/* Mobile menu toggle */
.nav-toggle {
  display: none; width: 32px; height: 32px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: transform 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--white);
}
.hero__slides { position: relative; aspect-ratio: 1440 / 720; max-height: calc(100vh - var(--header-h)); min-height: 420px; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out;
  background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  pointer-events: none;
}
.hero__overlay-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.hero__title {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1.0;
  font-weight: 400; letter-spacing: 0.005em;
  max-width: 12em;
}
.hero__title em { font-style: italic; font-weight: 400; display: block; }

/* ===== Section ===== */
.section {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__heading {
  font-family: var(--sans);
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); font-size: 22px;
  text-align: center; margin-bottom: clamp(36px, 5vw, 60px);
}
.section__heading--small { font-size: 16px; letter-spacing: 0.18em; }

/* ===== Brand cards ===== */
.brands-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.brand-card {
  position: relative; display: block;
  aspect-ratio: 460 / 588; overflow: hidden;
}
.brand-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease;
}
.brand-card:hover img { transform: scale(1.04); }
.brand-card__label {
  position: absolute; bottom: 7%; left: 7%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: #F1EBE1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
  pointer-events: none;
  white-space: nowrap;
}

/* ===== Press ===== */
.press {
  background: var(--white);
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
}
.press__title {
  font-family: var(--sans); font-weight: 400; color: var(--navy);
  text-align: center; font-size: 16px; letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.press__row {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2.6vw, 36px);
  align-items: center; justify-content: center;
}
.press__row img {
  height: clamp(14px, 1.7vw, 22px); width: auto; opacity: 0.95;
}
.press__row img.press--forbes,
.press__row img.press--rs,
.press__row img.press--rsimple,
.press__row img.press--rw,
.press__row img.press--ny,
.press__row img.press--bb,
.press__row img.press--wired { filter: none; }

/* ===== About ===== */
.about {
  background: var(--cream);
  padding: clamp(60px, 8vw, 90px) var(--pad-x);
}
.about__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  align-items: center;
}
.about__image {
  position: relative; aspect-ratio: 645 / 414; overflow: hidden;
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__panel {
  background: var(--white);
  padding: clamp(36px, 5vw, 60px);
  margin-left: -8%;
  position: relative; z-index: 1;
  box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}
.about__panel h2 {
  font-family: var(--sans); font-weight: 400;
  font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 22px;
}
.about__panel p {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(17px, 1.4vw, 22px); line-height: 1.4;
  font-weight: 400;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--cream);
  padding: clamp(50px, 6vw, 80px) var(--pad-x);
  text-align: center;
}
.site-footer__dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); margin: 0 auto 22px;
}
.site-footer__heading {
  font-family: var(--sans); color: var(--navy); font-weight: 400;
  letter-spacing: 0.18em; font-size: 16px; margin-bottom: 10px;
}
.site-footer__email { font-family: var(--sans); color: var(--navy); font-size: 16px; display: inline-block; margin-bottom: 28px; }
.site-footer__careers {
  font-family: var(--sans); color: var(--navy); font-weight: 400; font-size: 15px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--navy); padding-bottom: 2px;
  display: inline-block;
}
.site-footer__careers:hover { opacity: 0.7; }

/* ===== Contact page ===== */
.contact-hero {
  position: relative; min-height: clamp(560px, 70vh, 760px);
  background: url('/assets/images/contact-sand.jpg') center / cover no-repeat;
  display: flex; align-items: center; padding: 80px var(--pad-x);
}
.contact-card {
  width: 100%; max-width: 1080px; margin: 0 auto;
  background: var(--cream-light);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: clamp(36px, 4vw, 56px); align-items: start;
}
.contact-card__intro h1 {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(38px, 4.5vw, 60px); font-weight: 400; line-height: 1.05;
  margin-bottom: 20px;
}
.contact-card__intro p {
  font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); color: var(--navy); line-height: 1.4;
  max-width: 24em;
}
.contact-form { display: grid; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label {
  display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 12px;
  font: 15px/1.4 var(--sans); color: var(--navy);
  background: transparent; border: 1.5px solid var(--navy);
  outline: none; border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { background: rgba(255,255,255,0.5); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button[type="submit"] {
  margin-top: 8px; padding: 14px;
  background: var(--navy); color: var(--white); font-size: 14px; letter-spacing: 0.06em;
  border-radius: 0; transition: opacity 0.15s;
}
.contact-form button[type="submit"]:hover { opacity: 0.88; }

/* ===== Careers page ===== */
.careers {
  padding: clamp(60px, 8vw, 100px) var(--pad-x) clamp(40px, 6vw, 70px);
  background: var(--white);
}
.careers__inner { max-width: 1080px; margin: 0 auto; }
.careers__heading {
  font-family: var(--sans); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); font-size: 22px; text-align: center; margin-bottom: 46px;
}
.careers-table { width: 100%; border-collapse: collapse; }
.careers-table thead th {
  font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--navy);
  padding: 18px 16px 22px; border-bottom: 1.5px solid var(--navy);
}
.careers-table thead th .icon { display: block; margin: 0 auto 10px; }
.careers-table tbody tr { border-bottom: 1.5px solid rgba(var(--navy-rgba), 0.6); }
.careers-table tbody td {
  padding: 28px 16px; font-family: var(--sans); color: var(--navy); font-size: 15px;
  vertical-align: middle;
}
.careers-table tbody td:first-child { font-weight: 700; max-width: 280px; line-height: 1.35; }
.careers-table tbody td:last-child { text-align: right; }
.btn-apply {
  display: inline-block; padding: 14px 38px; background: var(--navy); color: var(--white);
  font-family: var(--sans); letter-spacing: 0.08em; font-size: 14px;
  transition: opacity 0.15s;
}
.btn-apply:hover { opacity: 0.88; }

/* ===== Job Detail page ===== */
.job {
  padding: clamp(40px, 5vw, 70px) var(--pad-x);
  background: var(--white);
}
.job__inner { max-width: 920px; margin: 0 auto; }
.job__pill {
  display: inline-block; padding: 18px 50px;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); letter-spacing: 0.16em; font-size: 14px;
  border-radius: 999px;
  margin: 0 auto 32px; text-align: center;
}
.job__header {
  text-align: center; margin: 8px 0 32px;
}
.job__pill-wrap { text-align: center; margin: 16px 0 28px; }
.job__title {
  font-family: var(--sans); font-weight: 400;
  color: var(--navy); font-size: clamp(20px, 2vw, 24px);
  text-align: center; text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 24px;
}
.job__apply-btn {
  display: inline-block; padding: 14px 50px;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); letter-spacing: 0.16em; font-size: 14px;
  border-radius: 0; margin: 0 auto;
}
.job__apply-wrap { text-align: center; margin: 24px 0 48px; }
.job__body { font-family: var(--sans); color: var(--navy); font-size: 15px; line-height: 1.6; }
.job__body h2 {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); margin: 36px 0 16px;
}
.job__body p { margin-bottom: 18px; max-width: 70ch; }
.job__body ul { margin: 0 0 18px 22px; }
.job__body ul li { margin-bottom: 8px; }
.job__body ul ul { margin-top: 8px; margin-bottom: 12px; list-style: circle; }
.job__body strong { font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .site-header__logo img { width: 120px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); padding: 12px 0;
    border-top: 1px solid rgba(var(--navy-rgba), 0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open a, .site-nav.is-open button {
    width: 100%; padding: 16px var(--pad-x); font-size: 16px;
    border-bottom: 1px solid rgba(var(--navy-rgba), 0.06);
    text-align: left;
  }
  .site-nav.is-open .site-nav__dropdown {
    position: static; transform: none; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; padding: 0 0 8px;
    background: var(--cream-light);
  }
  .site-nav.is-open .site-nav__group > button::after { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero__slides { aspect-ratio: 4 / 5; max-height: 76vh; }
  .hero__title { font-size: clamp(40px, 12vw, 80px); }

  .brands-grid { grid-template-columns: 1fr; gap: 6px; }
  .brand-card { aspect-ratio: 4 / 5; }
  .brand-card__label { font-size: clamp(48px, 13vw, 96px); }

  .about__inner { grid-template-columns: 1fr; }
  .about__panel { margin-left: 0; margin-top: -8%; }

  .contact-hero { padding: 50px var(--pad-x); min-height: 420px; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .contact-card__intro h1 { font-size: 40px; }

  .careers-table thead th { font-size: 11px; padding: 12px 6px 16px; }
  .careers-table tbody td { padding: 18px 6px; font-size: 13px; }
  .careers-table tbody td:first-child { font-size: 14px; }
  .btn-apply { padding: 10px 22px; font-size: 12px; }

  .job__pill { padding: 14px 28px; font-size: 12px; }
}

@media (max-width: 520px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
