/* Brightlight Photonics — styled to match brightlightphotonics.com */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500&family=Poppins:wght@400;500;600&display=swap');

:root {
  --coral: #ef3d49;
  --blue: #486d9a;
  --gray: #5c5c5c;
  --ink: #111111;
  --muted: #55565a;
  --white: #ffffff;
  --black: #000000;
  --border: #e2e2e2;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 400; }
h3 { font-size: 1.7rem; font-weight: 400; }

p {
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1em;
}

a {
  color: var(--coral);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { line-height: 1.6; color: var(--muted); margin-bottom: 0.4em; }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  text-align: center;
}
.hero h1 {
  margin-bottom: 0.4em;
}
.hero p {
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto;
}
.hero-media img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

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

.section-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 40px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.product-row:first-of-type { border-top: none; }
.product-row.reverse .product-media { order: 2; }
.product-row.reverse .product-copy { order: 1; }

.product-media img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
}

.product-copy h3 {
  margin-bottom: 0.5em;
}
.product-copy .lede {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1em;
}
.product-copy ul { margin-top: 0.5em; }
.product-copy .sub-label {
  margin-top: 1.5em;
  font-weight: 500;
  color: var(--ink);
}

/* CTA buttons row */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 0 96px;
}
.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  background: transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.btn-block { width: 100%; text-align: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Connect page (dark) — header stays light like the rest of the site; only the page body is dark */
.connect-page-body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('/assets/connect-bg.webp') center / cover no-repeat,
    var(--black);
  color: var(--white);
}
.connect-page-body .btn { border-color: var(--white); color: var(--white); }
.connect-page-body .btn:hover { background: var(--white); color: var(--black); }

.connect-hero {
  text-align: center;
  padding: 72px 0 56px;
}
.connect-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--white);
  font-weight: 400;
}

.connect-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  padding-bottom: 96px;
}

.connect-info h2 {
  font-size: 2rem;
  color: var(--white);
  font-weight: 400;
  text-align: center;
  margin-top: 2em;
}
.connect-info h2:first-child { margin-top: 0; }
.connect-info p {
  text-align: center;
  color: #cfcfcf;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--white);
}
.field .req { color: #999; font-weight: 400; font-size: 0.85em; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: #f7f6f3;
  border: none;
  border-radius: 3px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 0.95rem;
}
.checkbox-row input { width: 16px; height: 16px; }

.form-success {
  display: none;
  color: var(--white);
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--white); }

/* Join the Team page */
.join-hero { padding: 72px 0 40px; }
.join-hero .hero-media img { max-height: 380px; width: 100%; object-fit: cover; }

.join-banner { padding-top: 40px; }
.join-banner img {
  width: 100%;
  border-radius: 6px;
}

.positions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.position-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.position-row + .position-row { border-top: none; }
.position-info h3 { margin-bottom: 0.15em; }
.position-location { margin: 0; font-size: 0.98rem; }
.position-link { white-space: nowrap; }

/* Application form (light theme overrides of the dark-form defaults) */
.apply-container { max-width: 720px; }
.apply-section .section-title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.apply-section .field label { color: var(--ink); }
.apply-section .field input[type="text"],
.apply-section .field input[type="email"],
.apply-section .field input[type="tel"],
.apply-section .field select,
.apply-section .field textarea {
  width: 100%;
  background: #f7f6f3;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
}
.apply-section .field input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: #f7f6f3;
  border: 1px dashed #c9c9c4;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--muted);
}
.apply-section .form-success { color: var(--ink); }
.apply-section .form-success h3 { color: var(--ink); }

/* Utility */
.text-center { text-align: center; }

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-row.reverse .product-media,
  .product-row.reverse .product-copy { order: initial; }
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .field-row { grid-template-columns: 1fr; }
}
