/* ==========================================================
   5 PLR Incorporated — Main Stylesheet
   Palette: #1C2B3A navy | #C5973A gold | #F8F8F7 bg
   Fonts: Barlow Condensed (headings) | Inter (body)
   ========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1E293B;
  background-color: #F8F8F7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #C5973A; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: #1C2B3A;
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1C2B3A;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.section-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C5973A;
  margin-bottom: 0.5rem;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
.alt-bg { background-color: #ECEEF1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  min-height: 44px;
  border: 2px solid transparent;
}
.btn-primary {
  background: #C5973A;
  color: #fff;
  border-color: #C5973A;
}
.btn-primary:hover, .btn-primary:focus {
  background: #a37d2f;
  border-color: #a37d2f;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #C5973A;
  border-color: #C5973A;
}
.btn-outline:hover, .btn-outline:focus {
  background: #C5973A;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: #1C2B3A;
  border-color: #fff;
}
.btn-light:hover, .btn-light:focus {
  background: #F8F8F7;
  border-color: #F8F8F7;
  color: #1C2B3A;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Navigation ---------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#site-nav.scrolled {
  background: #1C2B3A;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.05em;
}
.nav-logo:hover, .nav-logo:focus { text-decoration: none; color: #C5973A; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover, .nav-links a:focus { color: #C5973A; text-decoration: none; }
.nav-cta {
  background: #C5973A;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 3px;
  transition: background 0.2s !important;
}
.nav-cta:hover, .nav-cta:focus { background: #a37d2f !important; color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1C2B3A;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 800px;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-gold-line {
  width: 60px;
  height: 3px;
  background: #C5973A;
  margin: 0 auto 1.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
#about .about-img img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(28,43,58,0.15);
}
#about .about-text h2 { margin-bottom: 1.25rem; }
#about .about-text p { color: #64748B; margin-bottom: 1rem; }
.gold-divider {
  width: 50px;
  height: 3px;
  background: #C5973A;
  margin: 1rem 0 1.5rem;
}

/* ---------- Services ---------- */
#services { background: #1C2B3A; }
#services h2, #services .section-label { color: #fff; }
#services .section-header { text-align: center; margin-bottom: 3rem; }
#services .section-header p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0.75rem auto 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(197,151,58,0.25);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: #C5973A; transform: translateY(-3px); }
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(197,151,58,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; fill: #C5973A; }
.service-card h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Careers ---------- */
#careers .careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
#careers .careers-text h2 { margin-bottom: 1rem; }
#careers .careers-text p { color: #64748B; margin-bottom: 1rem; }
.careers-perks { margin: 1.5rem 0 2rem; }
.careers-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #1E293B;
  font-size: 0.95rem;
}
.perk-dot {
  width: 8px;
  height: 8px;
  background: #C5973A;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}
#careers .careers-img img { border-radius: 4px; box-shadow: 0 8px 30px rgba(28,43,58,0.15); }

/* ---------- Contact ---------- */
#contact { background: #1C2B3A; }
#contact h2, #contact .section-label { color: #fff; }
#contact .section-header { text-align: center; margin-bottom: 3rem; }
#contact .section-header p { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { color: #fff; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(197,151,58,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: #C5973A; }
.contact-detail p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.contact-detail a { color: #C5973A; }

/* Contact Form */
.contact-form { background: rgba(255,255,255,0.05); border-radius: 4px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  min-height: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #C5973A;
  outline-offset: 1px;
  border-color: #C5973A;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background: #1C2B3A; color: #fff; }
.form-group select option { background: #1C2B3A; }

/* Consent checkbox */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: unset;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: #C5973A;
}
.form-consent label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0;
}
.form-consent a { color: #C5973A; }
.form-honey { display: none; }

/* ---------- Apply Page ---------- */
.page-hero {
  background: #1C2B3A;
  padding: 9rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }

.apply-section { padding: 5rem 0; }
.apply-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(28,43,58,0.1);
}
.apply-form-wrap .form-group input,
.apply-form-wrap .form-group textarea,
.apply-form-wrap .form-group select {
  background: #F8F8F7;
  border: 1px solid #CBD5E1;
  color: #1E293B;
}
.apply-form-wrap .form-group input::placeholder,
.apply-form-wrap .form-group textarea::placeholder { color: #94A3B8; }
.apply-form-wrap .form-group input:focus,
.apply-form-wrap .form-group textarea:focus,
.apply-form-wrap .form-group select:focus { border-color: #C5973A; }
.apply-form-wrap .form-group label { color: #1E293B; }
.apply-form-wrap .form-group select { background: #F8F8F7; color: #1E293B; }
.apply-form-wrap .form-group select option { background: #fff; color: #1E293B; }
.apply-form-wrap .form-consent label { color: #64748B; }
.apply-form-wrap .btn-primary { margin-top: 0.5rem; }
.form-section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1C2B3A;
  border-bottom: 2px solid #C5973A;
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Legal Pages ---------- */
.legal-section {
  padding: 5rem 0;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; color: #1C2B3A; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: #1C2B3A; }
.legal-content p { color: #475569; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { color: #475569; margin-bottom: 0.4rem; }
.legal-content a { color: #C5973A; }

/* ---------- 404 Page ---------- */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1C2B3A;
}
.error-content { padding: 2rem; }
.error-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: #C5973A;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-content h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.error-content p { color: rgba(255,255,255,0.65); max-width: 440px; margin: 0 auto 2rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #C5973A; }
.breadcrumb span.sep { color: rgba(255,255,255,0.35); }

/* ---------- Footer ---------- */
#site-footer {
  background: #111D28;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.05em;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C5973A;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover, .footer-col ul li a:focus { color: #C5973A; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 0.8rem; transition: color 0.2s; }
.footer-legal a:hover { color: #C5973A; text-decoration: none; }

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #C5973A;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #1C2B3A;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav-cta { margin-top: 1rem; text-align: center; justify-content: center; }

  #about .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  #about .about-img { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  #careers .careers-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .apply-form-wrap { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
  .error-code { font-size: 5rem; }
}

/* ---------- Print ---------- */
@media print {
  #site-nav, #back-to-top, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; }
  h1, h2, h3 { color: #000; }
  section { padding: 1rem 0; }
  .hero-bg { display: none; }
  #hero { min-height: auto; background: #fff; }
  #hero .hero-content h1 { color: #000; }
  #hero .hero-content p { color: #333; }
  #services { background: #fff; }
  #services h2, #services .section-label { color: #000; }
  .service-card { border: 1px solid #ccc; page-break-inside: avoid; }
  #contact { background: #fff; }
  #contact h2, #contact .section-label { color: #000; }
}
