/* SJ Builders — Premium Recruitment Landing Page */
/* Design system inspired by Gurner Group aesthetic */

:root {
  /* Core Colors — Premium Dark Palette */
  --primary-black: #0a0a0a;
  --primary-white: #ffffff;
  --fg-contrast: #1a1a1a;
  --fg-reversed-contrast: #fafafa;
  --fg-subtle: #6b7280;
  --fg-reversed-subtle: #a1a1aa;
  
  /* Accent — Warm Gold */
  --accent: #c9a84c;
  --accent-hover: #b8952f;
  
  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Type Scale */
  --type-display-01: clamp(3rem, 6vw, 4.5rem);      /* 48px mobile, 72px desktop */
  --type-display-02: clamp(2.25rem, 4.5vw, 3.5rem); /* 36px mobile, 56px desktop */
  --type-display-03: clamp(1.75rem, 3vw, 2.5rem);   /* 28px mobile, 40px desktop */
  --type-display-04: clamp(1.5rem, 2.5vw, 2rem);    /* 24px mobile, 32px desktop */
  --type-display-05: clamp(1.25rem, 2vw, 1.5rem);    /* 20px mobile, 24px desktop */
  --type-body-01: clamp(1rem, 1.2vw, 1.125rem);      /* 16px mobile, 18px desktop */
  --type-body-02: clamp(0.875rem, 1vw, 1rem);        /* 14px mobile, 16px desktop */
  --type-label-01: clamp(0.75rem, 0.9vw, 0.875rem);  /* 12px mobile, 14px desktop */
  --type-label-02: clamp(0.6875rem, 0.8vw, 0.75rem); /* 11px mobile, 12px desktop */
  
  /* Spacing — Responsive */
  --grid-margin: 1.5rem;     /* mobile */
  --grid-gutter: 1.5rem;     /* mobile */
  --section-padding: 4rem;   /* mobile */
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  
  /* Layout */
  --container-max: 1440px;
  --content-max: 48rem; /* 768px — constrained content width */
  
  /* Misc */
  --tap-min: 56px;
}

@media (min-width: 768px) {
  :root {
    --grid-margin: 2.5rem;
    --grid-gutter: 2rem;
    --section-padding: 6rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --grid-margin: 4rem;
    --section-padding: 8rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --grid-margin: 5rem;
    --section-padding: 10rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-02);
  line-height: 1.6;
  color: var(--fg-contrast);
  background: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

.container--content {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--section-padding) 0;
}

/* Credibility one-liner */
.section-credibility {
  background: var(--primary-white);
}

.credibility-line {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  color: var(--fg-subtle);
}

/* Typography */
.text-display-01 {
  font-family: var(--font-display);
  font-size: var(--type-display-01);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-display-02 {
  font-family: var(--font-display);
  font-size: var(--type-display-02);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-display-03 {
  font-family: var(--font-display);
  font-size: var(--type-display-03);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-display-04 {
  font-family: var(--font-display);
  font-size: var(--type-display-04);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-display-05 {
  font-family: var(--font-display);
  font-size: var(--type-display-05);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-body-01 {
  font-family: var(--font-sans);
  font-size: var(--type-body-01);
  font-weight: 400;
  line-height: 1.6;
}

.text-body-02 {
  font-family: var(--font-sans);
  font-size: var(--type-body-02);
  font-weight: 400;
  line-height: 1.6;
}

.text-label-01 {
  font-family: var(--font-sans);
  font-size: var(--type-label-01);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-label-02 {
  font-family: var(--font-sans);
  font-size: var(--type-label-02);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-balance {
  text-wrap: balance;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-black);
  color: var(--fg-reversed-contrast);
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    min-height: 100vh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-black);
  background-image: url("images/hero/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.75) 40%, rgba(10,10,10,0.55) 70%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-max);
  padding: var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero-brand {
  margin: 0;
  color: var(--fg-reversed-subtle);
}

.hero-headline {
  margin: 0;
  color: var(--fg-reversed-contrast);
}

.hero-subhead {
  margin: 0;
  max-width: 42rem;
  color: var(--fg-reversed-subtle);
}

.hero-location {
  margin: 0;
  color: var(--fg-reversed-subtle);
}

.hero-availability {
  margin: 0.25rem 0 0;
  font-size: var(--type-label-02);
  color: var(--fg-reversed-subtle);
  opacity: 0.9;
}

.hero-urgency {
  margin: 0;
  color: var(--fg-reversed-subtle);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Large primary CTA — hero, benefits, register section */
.btn-primary--large {
  min-height: 64px;
  padding: 1.25rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

@media (min-width: 640px) {
  .btn-primary--large {
    min-height: 72px;
    padding: 1.5rem 4rem;
    font-size: 1.125rem;
  }
}

.hero-cta .btn-primary--large {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.register-inline {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
}

.register-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: var(--type-label-02);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--fg-reversed-contrast);
  border: 1px solid var(--fg-reversed-contrast);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Premium Link Style */
.premium-link {
  border-bottom: 1px solid currentColor;
  transition: border-color 0.2s ease;
}

.premium-link:hover {
  border-bottom-color: transparent;
}

/* Benefits Section */
.section-benefits {
  background: var(--primary-white);
}

.section-title {
  margin: 0 0 var(--space-md);
  text-align: center;
}

.section-intro {
  margin: 0 auto var(--space-2xl);
  max-width: var(--content-max);
  text-align: center;
  color: var(--fg-subtle);
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.benefits-row {
  display: grid;
  gap: var(--space-lg);
}

.benefits-row-1 {
  grid-template-columns: 1fr;
}

.benefits-row-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefits-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-row-2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefits-row-3 {
  grid-template-columns: 1fr;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.benefits-row-3 .benefit-card {
  flex: 1 1 100%;
  max-width: 22rem;
}

@media (min-width: 640px) {
  .benefits-row-3 .benefit-card {
    flex: 0 1 calc(50% - var(--space-lg) / 2);
    max-width: 22rem;
  }
}

.benefit-card {
  padding: var(--space-lg);
  border: 1px solid #e5e5e5;
  background: var(--primary-white);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.benefit-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  background: rgba(201, 168, 76, 0.05);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.benefit-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.benefit-card h3 {
  margin: 0 0 var(--space-sm);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--type-display-05);
  font-weight: 600;
  color: var(--fg-contrast);
}

.benefit-card p {
  margin: 0;
  text-align: center;
  color: var(--fg-subtle);
}

/* How It Works */
.section-how {
  background: var(--primary-white);
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

@media (min-width: 1024px) {
  .how-steps {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg) 0;
  }
  
  .how-steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: #e5e5e5;
    z-index: 0;
  }
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .how-step {
    flex: 1;
    max-width: 300px;
  }
}

.how-num {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--type-display-04);
  font-weight: 500;
  color: var(--accent);
  background: var(--primary-white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.how-step h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--type-display-05);
  font-weight: 600;
  color: var(--fg-contrast);
}

.how-step p {
  margin: 0;
  color: var(--fg-subtle);
}

/* Registration Form */
.section-register {
  background: var(--primary-white);
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-2xl);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e5e5;
  transition: background 0.3s ease;
}

.progress-dot.active {
  background: var(--accent);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--type-label-01);
  font-weight: 500;
  color: var(--fg-contrast);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--type-body-02);
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  background: var(--primary-white);
  color: var(--fg-contrast);
  transition: border-color 0.2s ease;
}

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

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.radio-label:hover {
  border-color: var(--accent);
}

.radio-label input[type="radio"] {
  margin: 0;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--accent);
}

.photo-upload {
  border: 2px dashed #e5e5e5;
  border-radius: 2px;
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.photo-upload:hover {
  border-color: var(--accent);
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--fg-contrast);
  border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* Confirmation Screen */
.confirmation {
  text-align: center;
  padding: var(--space-2xl);
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-black);
  font-size: 2rem;
}

.confirmation h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--type-display-03);
  color: var(--fg-contrast);
}

.confirmation p {
  margin: 0 0 var(--space-xl);
  color: var(--fg-subtle);
}

/* Footer — minimal, sits at bottom of page */
.footer {
  background: var(--primary-black);
  color: var(--fg-reversed-subtle);
  padding: var(--space-xl) var(--grid-margin);
  margin-top: 0;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer-location,
.footer-legal,
.footer-copy {
  margin: 0 0 var(--space-sm);
  font-size: var(--type-body-02);
  color: var(--fg-reversed-subtle);
}

.footer-copy {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--type-label-02);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
