:root {
	--primary-color: #0A6EFA;
	--primary-hover: #0858C8;
	--secondary-color: #436489;
	--primary60: #0A6EFA;
	--primary70: #0858C8;
	--secondary60: #436489;
}

/* Ryan Electric Careers Page - literal hex values only (no CSS custom properties) */
/* Palette:
   #f5b400 accent (amber/gold)
   #d99a00 accent hover
   #b58800 accent dark text (for small text on white)
   #fff4d1 accent soft (badge + perk number backgrounds)
   #1c1c1c body text / headlines / CTA bg / footer bg
   #ffffff background
   #f7f7f5 section alt background
   #e8e6e0 borders
   #3d3d3d secondary text
   #6b6b6b muted text
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #1c1c1c;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Centering safety net - beats ATS layout overrides */
.hero .container,
section .container {
  text-align: center;
}

/* === Top Bar === */
.topbar {
  background-color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #e8e6e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1c1c1c;
  text-decoration: none;
}
.logo span { color: #f5b400; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.topbar-right a {
  color: #3d3d3d;
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-right a:hover { color: #d99a00; }
.topbar-right .phone {
  color: #d99a00;
  font-weight: 700;
}

/* === Hero === */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(245,180,0,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(28,28,28,0.04) 0%, transparent 60%),
    #ffffff;
  text-align: center;
  border-bottom: 1px solid #e8e6e0;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  background-color: #fff4d1;
  color: #b58800;
  border: 1px solid rgba(245,180,0,0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-company {
  font-size: 13px;
  color: #6b6b6b;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  display: block;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 auto 24px !important;
  max-width: 760px;
  color: #1c1c1c;
  text-align: center !important;
}
.hero h1 .accent { color: #f5b400; }
.hero-subhead {
  display: block;
  font-size: 18px;
  color: #3d3d3d;
  max-width: 620px;
  margin: 0 auto 40px !important;
  line-height: 1.6;
  text-align: center !important;
}

/* === Button === */
.btn {
  display: inline-block;
  padding: 16px 36px;
  background-color: #f5b400;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,180,0,0.35);
}
/* Yellow button → dark text. Force on every link state to beat ATS overrides. */
.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active,
.btn:focus {
  color: #1c1c1c !important;
}
.btn:hover {
  background-color: #d99a00;
  box-shadow: 0 4px 14px rgba(245,180,0,0.45);
}
.btn:active { transform: translateY(1px); }

/* CTA section variant: button stays gold + dark text */
.cta .btn {
  background-color: #f5b400;
}
.cta .btn:hover {
  background-color: #ffc933;
}

/* === Section Defaults === */
section { padding: 90px 0; }

.section-alt {
  background-color: #f7f7f5;
  border-top: 1px solid #e8e6e0;
  border-bottom: 1px solid #e8e6e0;
}

.section-label {
  display: block;
  text-align: center !important;
  color: #b58800;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 auto 14px !important;
}
.section-title {
  display: block;
  text-align: center !important;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 auto 18px !important;
  max-width: 700px;
  color: #1c1c1c;
}
.section-subtitle {
  display: block;
  text-align: center !important;
  font-size: 17px;
  color: #3d3d3d;
  max-width: 760px;
  margin: 0 auto 56px !important;
  line-height: 1.65;
}

/* === Who We Are (2x2 card grid) === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 48px auto 0;
}
.value-item {
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: left;
}
.value-item:hover {
  border-color: #f5b400;
  box-shadow: 0 6px 20px rgba(28,28,28,0.06);
  transform: translateY(-3px);
}
.value-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1c1c1c;
}
.value-item p {
  color: #3d3d3d;
  font-size: 16px;
  line-height: 1.65;
}
.value-item h3 .value-word {
  color: #f5b400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 800;
}
@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* === 5-card variant for core values: 3 on top row, 2 centered below === */
.values-grid-5 {
  grid-template-columns: repeat(6, 1fr);
  max-width: 1080px;
}
.values-grid-5 .value-item {
  grid-column: span 2;
}
/* Last two cards: shift to center the bottom row */
.values-grid-5 .value-item:nth-child(4) { grid-column: 2 / span 2; }
.values-grid-5 .value-item:nth-child(5) { grid-column: 4 / span 2; }

@media (max-width: 980px) {
  .values-grid-5 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .values-grid-5 .value-item,
  .values-grid-5 .value-item:nth-child(4),
  .values-grid-5 .value-item:nth-child(5) { grid-column: auto; }
  /* Center the lonely 5th card on tablet 2-col layout */
  .values-grid-5 .value-item:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .values-grid-5 { grid-template-columns: 1fr; }
  .values-grid-5 .value-item:nth-child(5) { max-width: none; }
}

/* === Vision & Mission section === */
.vm-section {
  padding: 90px 0;
  background-color: #f7f7f5;
  border-top: 1px solid #e8e6e0;
  border-bottom: 1px solid #e8e6e0;
}
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 48px auto 0;
  text-align: left;
}
.vm-item {
  padding: 32px 32px 32px 36px;
  background-color: #ffffff;
  border-left: 4px solid #f5b400;
  border: 1px solid #e8e6e0;
  border-left: 4px solid #f5b400;
  border-radius: 8px;
}
.vm-tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #b58800;
  margin-bottom: 14px;
}
.vm-item p {
  color: #1c1c1c;
  font-size: 17px;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .vm-grid { grid-template-columns: 1fr; gap: 20px; }
  .vm-section { padding: 60px 0; }
}

/* === Owner photo (optional, inside V&M section) === */
.owner-photo {
  max-width: 320px;
  margin: 40px auto 16px;
  text-align: center;
}
.owner-photo img,
.owner-photo .img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(28,28,28,0.08);
}
.owner-photo figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: #6b6b6b;
  font-style: italic;
}

/* === Culture / Life at Ryan Electric section === */
.culture-section {
  padding: 90px 0;
  background-color: #f7f7f5;
  border-top: 1px solid #e8e6e0;
  border-bottom: 1px solid #e8e6e0;
}
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 48px auto 0;
  text-align: left;
}
.culture-card {
  background-color: #ffffff;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.culture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28,28,28,0.08);
  border-color: #f5b400;
}
.culture-card img,
.culture-card .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.culture-card figcaption {
  padding: 22px 24px 26px;
}
.culture-card figcaption h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 8px;
}
.culture-card figcaption p {
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .culture-grid { grid-template-columns: 1fr; max-width: 560px; }
  .culture-section { padding: 60px 0; }
}

/* === Image placeholders (replace with real <img> tags when ready) === */
.img-placeholder {
  background-color: #fff8e0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(245,180,0,0.06) 0,
    rgba(245,180,0,0.06) 12px,
    transparent 12px,
    transparent 24px
  );
  border: 2px dashed #f5b400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}
.img-placeholder-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #b58800;
}
.img-placeholder-hint {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.4;
}

/* === Numbered Perks List === */
.perks-list {
  max-width: 880px;
  margin: 56px auto 0;
  text-align: left;
}
.perk-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid #e8e6e0;
  text-align: left;
}
.perk-item:last-child { border-bottom: none; }
.perk-num {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: #b58800;
  width: 48px;
  height: 48px;
  background-color: #fff4d1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.perk-content h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1c1c1c;
}
.perk-content p {
  color: #3d3d3d;
  font-size: 16px;
}

/* === CTA Section === */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
  padding: 100px 0;
  color: #ffffff;
}
.cta h2 {
  display: block;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 auto 20px !important;
  color: #ffffff;
  text-align: center !important;
  max-width: 700px;
}
.cta p {
  display: block;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 36px !important;
  text-align: center !important;
}

/* === Footer === */
footer {
  background-color: #1c1c1c;
  padding: 36px 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
footer a:hover { color: #f5b400; }
footer p + p { margin-top: 8px; }

/* === Responsive === */
@media (max-width: 640px) {
  .hero { padding: 60px 0 72px; }
  section { padding: 60px 0; }
  .perk-item { flex-direction: column; gap: 12px; padding: 24px 0; }
  .topbar-right { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar-right a:not(.phone) { display: none; }
}
