/* Public site styles for Jaykirch Tech Hub — black & gold brand theme */

:root {
  --color-gold: #c9a227;
  --color-gold-dark: #9c7d1a;
  --color-black: #0d0d0d;
  --color-black-soft: #1a1a1a;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f2;
  --color-border: #e2e2df;
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-error-bg: #fee2e2;
  --color-error-text: #991b1b;
  --radius: 8px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

.section {
  padding: 3rem 1.5rem;
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--color-muted);
  max-width: 640px;
}

.text-center {
  text-align: center;
}

a {
  color: var(--color-gold-dark);
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-black);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: #f2f2f0;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

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

.hero {
  background: linear-gradient(160deg, var(--color-black) 55%, var(--color-black-soft));
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-logo {
  height: 88px;
  width: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.75rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: #d9d9d6;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Stats strip ---------------------------------------------------------- */

.stats-strip {
  background: var(--color-black-soft);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  color: #d9d9d6;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-black);
}

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

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--color-black);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
}

.btn-outline:hover {
  background: var(--color-gold-dark);
  color: #fff;
}

/* --- Cards ---------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--color-bg-alt);
}

.card h3 {
  margin-top: 0;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin: -0.25rem 0 1rem;
}

.job-flyer {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* --- Why Choose Us -------------------------------------------------------- */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.highlight-card h3 {
  color: var(--color-gold-dark);
  margin-bottom: 0.4rem;
}

/* --- CTA banner ------------------------------------------------------------ */

.cta-banner {
  background: var(--color-black);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  margin-top: 0;
}

.cta-banner .hero-actions {
  margin-top: 1.5rem;
}

/* --- Forms ------------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Modal (used for the "Application Successful" confirmation) ------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal h2 {
  color: var(--color-gold-dark);
  margin-top: 0;
}

.modal button {
  margin-top: 1rem;
}

/* Hidden from real visitors, left in the DOM for bots to (hopefully) fill in. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

.contact-form button {
  margin-top: 1rem;
  align-self: flex-start;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0 0 1rem;
  list-style: none;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 2rem 0;
  color: var(--color-muted);
  background: var(--color-black);
}

.site-footer p {
  color: #d9d9d6;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #d9d9d6;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-gold);
}

/* --- Responsive --------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-black);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-bar {
    position: relative;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}
