/* Palmer Solar Recruiting — warm, professional, trustworthy */

:root {
  /* Color: warm sunlight + deep navy trust */
  --bg: #fffaf0;
  --bg-alt: #fef5e5;
  --surface: #ffffff;
  --ink: #0f2036;
  --ink-2: #3d4a5f;
  --ink-3: #6b7684;
  --line: #e9dcc2;
  --line-2: #efe6d1;
  --brand: #0f2036;      /* deep navy — trust */
  --sun: #e8a33d;        /* warm sun accent */
  --sun-2: #d68a1a;
  --dark: #0b1a2e;       /* apply section */
  --dark-2: #142a44;

  /* Typography */
  --font-display: 'Cabinet Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'General Sans', ui-sans-serif, system-ui, sans-serif;

  /* Scale */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}

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

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,240,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand-mark { width: 34px; height: 34px; color: var(--sun); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-tag { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .15s; }
.site-nav a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  transition: background .15s;
}
.nav-cta:hover { background: #1c3454; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-tag { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  background: linear-gradient(180deg, #fffaf0 0%, #fef3d7 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sun-2); font-weight: 600;
  padding: 6px 14px; border: 1px solid var(--sun); border-radius: 999px;
  background: rgba(232,163,61,0.06);
  margin: 0 0 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--brand);
}
.hero-title .accent { color: var(--sun-2); }
.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-decoration {
  position: absolute; right: -60px; bottom: -20px;
  width: 55%; max-width: 620px; opacity: 0.85;
  pointer-events: none;
  mask-image: linear-gradient(to left, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent);
}
.hero-decoration svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero-decoration { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-block; text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn-primary {
  background: var(--brand); color: #fff;
}
.btn-primary:hover { background: #1c3454; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--brand);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* --- Stats band --- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 40px 24px;
  gap: 24px;
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--brand);
  letter-spacing: -0.01em;
}
.stat-label { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; } }

/* --- Sections --- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #eef2f8;
}
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sun-2); font-weight: 600;
}
.section-eyebrow.light { color: #f4b942; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
  color: var(--brand);
}
.section-dark .section-title { color: #fff; }
.section-sub {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 620px;
  margin: 16px 0 0;
}
.section-sub.light { color: #b8c4d4; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* Two-col */
.two-col {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.col-body p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.col-body .lead { font-size: 20px; color: var(--ink); font-weight: 500; line-height: 1.5; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Role cards --- */
.roles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.role-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,32,54,0.08);
  border-color: var(--sun);
}
.role-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sun-2); font-weight: 600;
  background: rgba(232,163,61,0.1);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.role-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.role-card p { color: var(--ink-2); margin: 0 0 20px; font-size: 15.5px; }
.role-meta { list-style: none; padding: 0; margin: 0 0 24px; }
.role-meta li {
  color: var(--ink-3); font-size: 14px; padding: 8px 0;
  border-top: 1px solid var(--line-2);
}
.role-meta li:first-child { border-top: none; padding-top: 0; }
.role-link {
  margin-top: auto;
  color: var(--brand); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color .15s;
}
.role-link:hover { color: var(--sun-2); }
@media (max-width: 720px) { .roles-grid { grid-template-columns: 1fr; } }

/* --- Process --- */
.process-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.process-list li {
  display: flex; gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--sun);
  flex-shrink: 0;
  line-height: 1;
}
.process-list h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.process-list p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
@media (max-width: 720px) { .process-list { grid-template-columns: 1fr; } }

/* --- Form --- */
.apply-form {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(4px);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 20px;
}
.apply-form label {
  display: flex; flex-direction: column;
}
.apply-form label.full { margin-bottom: 20px; }
.label-text {
  font-size: 13px;
  color: #c4d0e0;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.label-text em { color: #f4b942; font-style: normal; margin-left: 2px; }
.optional { color: #7a8699; font-weight: 400; font-size: 12px; }
.apply-form input,
.apply-form select,
.apply-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}
.apply-form input::placeholder,
.apply-form textarea::placeholder { color: #7a8699; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--sun);
  background: rgba(255,255,255,0.09);
}
.apply-form select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c4d0e0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.apply-form select option { background: var(--dark-2); color: #fff; }
.apply-form textarea { resize: vertical; min-height: 100px; }
.privacy-note {
  font-size: 13.5px;
  color: #9aa8bc;
  margin: 8px 0 24px;
  line-height: 1.5;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--sun);
  border-radius: 4px;
}
.form-status {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 4px;
  min-height: 1.5em;
  color: var(--sun);
}
.form-status:empty { margin: 0; min-height: 0; }
.form-status.is-error { color: #e8737d; }
.apply-form .btn-large { width: 100%; }
.apply-form .btn-primary {
  background: var(--sun);
  color: var(--dark);
}
.apply-form .btn-primary:hover { background: #f4b942; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* --- Footer --- */
.site-footer {
  background: #0b1a2e;
  color: #b8c4d4;
  padding: 48px 0 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; align-items: center;
}
.foot-brand { display: flex; flex-direction: column; }
.foot-brand .brand-name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.foot-brand .brand-tag { color: #7a8699; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.foot-contact { text-align: center; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-contact a { color: #f4b942; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-contact span { color: #7a8699; font-size: 13px; }
.foot-legal { text-align: right; font-size: 13px; color: #7a8699; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-contact, .foot-legal { text-align: center; }
}
