/* ============================================================
   SUNNY OAKS INC. — Design System & Stylesheet
   Concept A "Warm Community" — SOI Logo Blue Palette
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Primary: SOI Logo Blue */
  --blue: #3D6E9E;
  --blue-dark: #2A4F75;
  --blue-deeper: #1C3650;
  --blue-light: #E8F0F7;
  --blue-muted: #A8C4DD;
  --blue-pale: #F2F7FB;

  /* Accent: Warm Amber */
  --accent: #D4883A;
  --accent-light: #FDF2E4;
  --accent-dark: #9A5F20;

  /* Supporting */
  --teal: #4A8F8C;
  --teal-light: #E4F2F1;
  --lavender: #7B72B8;
  --lavender-light: #EEEDFC;
  --rose: #C4567A;
  --rose-light: #FBE9EF;

  /* Neutrals */
  --cream: #F8FAFB;
  --warmgray: #5E6B77;
  --gray-light: #EEEDF0;
  --gray-icon: #6B6A75;
  --text: #1C2A38;
  --white: #FFFFFF;

  /* Layout */
  --max-width: 1200px;
  --side-padding: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* --- SKIP NAV (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 16px;
}

/* --- FOCUS STYLES (Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* --- NAVIGATION --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  height: 72px;
}
.nav__logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav__logo-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav__logo-mark svg { width: 24px; height: 24px; }
.nav__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}
.nav__logo-fallback {
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
}
@media (max-width: 640px) {
  .nav__logo-img,
  .nav__logo-fallback {
    max-width: 32px;
    max-height: 32px;
  }
}
.nav__brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-dark);
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  text-decoration: none;
  color: var(--warmgray);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.15s var(--ease);
  padding: 4px 0;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--blue);
}
.nav__links a[aria-current="page"] { font-weight: 500; }
.nav__cta {
  margin-left: 8px;
  padding: 10px 24px;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.nav__cta:hover { background: var(--blue-dark); }

/* Mobile menu toggle */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__hamburger svg { width: 24px; height: 24px; stroke: var(--text); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deeper) 100%);
  display: flex;
  align-items: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.035)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--side-padding);
  width: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--blue-muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s var(--ease) both;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-muted);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}
.hero p {
  font-size: 19px;
  color: rgba(200,220,240,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 300;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

/* --- Hero slideshow --- */
.hero__slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
  animation: fadeInUp 0.6s var(--ease) 0.35s both;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide.active {
  opacity: 1;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* NOTE: A previous rule here hid images via `:not([complete])`. That selector
   never works — `complete` is a DOM property, not an HTML attribute — so it
   permanently hid every .jpg slide. Removed. The ::before gradient below
   already provides a backdrop while images decode; gate any fade-in via JS
   (img.onload -> add a class), not CSS attribute selectors. */
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-muted) 100%);
  z-index: 0;
}
.hero__slide img {
  position: relative;
  z-index: 1;
}
/* Dot navigation */
.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero__dot:hover {
  background: rgba(255,255,255,0.7);
}
.hero__dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Old shapes removed — replaced by slideshow */
.btn-primary {
  padding: 14px 32px;
  background: #fff;
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.btn-secondary {
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.15s var(--ease);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.55); }
.hero__shapes {
  position: absolute;
  right: 80px;
  bottom: 60px;
  z-index: 2;
  opacity: 0.5;
}
.hero__shapes .circle { width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.08); }
.hero__shapes .circle2 { width: 130px; height: 130px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.06); position: absolute; top: -30px; right: -40px; }

/* --- MISSION STRIP --- */
.mission {
  background: var(--accent-light);
  padding: 44px var(--side-padding);
  text-align: center;
  border-top: 3px solid #EFDCBF;
}
.mission blockquote {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--accent-dark);
  line-height: 1.7;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  border: none;
  padding: 0;
}
.mission__attr {
  font-size: 13px;
  color: var(--accent);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--warmgray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- SERVICES --- */
.services {
  padding: 80px var(--side-padding);
  background: var(--white);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.svc-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  border: 1px solid rgba(0,0,0,0.04);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.svc-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.svc-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.svc-card p {
  font-size: 15px;
  color: var(--warmgray);
  line-height: 1.7;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.15s;
}
.svc-card__link:hover { gap: 10px; }

/* --- ABOUT SPLIT --- */
.about {
  padding: 80px var(--side-padding);
  background: var(--cream);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}
.about__img {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-muted) 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  position: relative;
}
.about__img-placeholder {
  text-align: center;
  color: var(--blue-dark);
  font-size: 14px;
  opacity: 0.5;
}
.about__year {
  position: absolute;
  bottom: 32px;
  left: 32px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.about__year-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.about__year-label {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about__text {
  background: var(--white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  border: 1px solid rgba(0,0,0,0.04);
  border-left: none;
}
.about__text .section-header__eyebrow { text-align: left; }
.about__text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}
.about__text p {
  font-size: 16px;
  color: var(--warmgray);
  line-height: 1.8;
  margin-bottom: 14px;
}
.about__text .read-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap 0.15s;
}
.about__text .read-more:hover { gap: 10px; }

/* --- VALUES --- */
.values {
  padding: 80px var(--side-padding);
  background: var(--white);
}
.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.val-chip {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s var(--ease);
  border: 1px solid rgba(0,0,0,0.03);
}
.val-chip:hover { transform: scale(1.03); }
.val-chip__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.val-chip h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.val-chip p {
  font-size: 13px;
  color: var(--warmgray);
  line-height: 1.5;
}

/* --- CAREERS CTA --- */
.careers {
  margin: 0 var(--side-padding) 80px;
  background: var(--blue);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.careers__bg1 {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.06);
}
.careers__bg2 {
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.04);
}
.careers__text { position: relative; z-index: 2; }
.careers__text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.careers__text p {
  font-size: 17px;
  color: var(--blue-muted);
  font-weight: 300;
}
.careers .btn-apply {
  position: relative;
  z-index: 2;
  padding: 14px 32px;
  background: #fff;
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease);
}
.careers .btn-apply:hover { transform: translateY(-1px); }

/* --- CONTACT FORM --- */
.contact {
  padding: 80px var(--side-padding);
  background: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.contact__info {
  padding: 48px;
  background: var(--blue-pale);
}
.contact__info h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}
.contact__info p {
  font-size: 15px;
  color: var(--warmgray);
  line-height: 1.8;
}
.contact__details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.contact__detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--warmgray);
}
.contact__detail-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--blue);
  fill: none;
  margin-top: 2px;
}
.contact__form {
  padding: 48px;
  background: var(--white);
}
.contact__form h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--warmgray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.15s;
  background: var(--white);
  color: var(--text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-field textarea { height: 100px; resize: vertical; }

/* Honeypot - visually hidden but accessible to bots */
.form-field--hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.btn-submit {
  padding: 13px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--blue-dark); }

/* --- PAGE HEADER (inner pages) --- */
.page-header {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deeper) 100%);
  padding: 64px var(--side-padding);
  position: relative;
  overflow: hidden;
}
.page-header__overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.035)'/%3E%3C/svg%3E");
}
.page-header__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
}
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 18px;
  color: var(--blue-muted);
  font-weight: 300;
  max-width: 560px;
}

/* --- CONTENT SECTIONS (inner pages) ---
   Sections stretch the full viewport width so the alternating
   white/cream banding extends edge-to-edge. The text content stays
   within a comfortable reading width via the centered inner padding.
*/
.content-section {
  width: 100%;
  padding: 64px max(var(--side-padding), calc((100% - var(--max-width)) / 2));
}
.content-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.content-section--white { background: var(--white); }
.content-section--cream { background: var(--cream); }
.content-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}
.content-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 32px;
}
.content-section h3:first-child { margin-top: 0; }
.content-section p {
  font-size: 16px;
  color: var(--warmgray);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 760px;
}

/* Values detail cards */
.values-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.values-detail-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
}
.values-detail-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.values-detail-card p {
  font-size: 14px;
  max-width: none;
}

/* Careers listing */
.job-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.job-card h3 { margin: 0 0 4px; font-size: 20px; }
.job-card p { margin: 0; }
.job-card .btn-apply-sm {
  padding: 10px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--blue-deeper);
  padding: 64px var(--side-padding) 32px;
  color: #fff;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  max-width: var(--max-width);
}
.footer__grid h4 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}
.footer__grid p,
.footer__grid a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 2;
  text-decoration: none;
  display: block;
}
.footer__grid a:hover { color: rgba(255,255,255,0.85); }
.footer__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  max-width: var(--max-width);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 1024px) {
  :root { --side-padding: 40px; }

  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__img { border-radius: var(--radius-xl) var(--radius-xl) 0 0; min-height: 260px; }
  .about__text { border-radius: 0 0 var(--radius-xl) var(--radius-xl); border: 1px solid rgba(0,0,0,0.04); border-top: none; }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .careers { flex-direction: column; text-align: center; gap: 24px; padding: 40px 32px; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .values-detail-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 640px) {
  :root { --side-padding: 20px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav__hamburger { display: block; }
  .nav__cta { margin-left: 0; text-align: center; }

  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 60px var(--side-padding) 48px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero__slideshow { max-height: 280px; border-radius: var(--radius-md); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn-primary,
  .hero__ctas .btn-secondary { text-align: center; }

  .mission blockquote { font-size: 17px; }

  .svc-card { padding: 28px 24px; }
  .val-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .val-chip { padding: 20px 16px; }

  .about__text { padding: 32px 24px; }
  .contact__info, .contact__form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .careers { margin: 0 var(--side-padding) 40px; padding: 32px 24px; }
  .footer { padding: 40px var(--side-padding) 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   APPLICATION FORM — Multi-step Employment Application
   ============================================================ */

.apply-hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deeper) 100%);
  padding: 80px var(--side-padding) 64px;
  position: relative;
  overflow: hidden;
}
.apply-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.035)'/%3E%3C/svg%3E");
}
.apply-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}
.apply-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-muted);
  margin-bottom: 12px;
}
.apply-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
}
.apply-hero p {
  font-size: 18px;
  color: var(--blue-muted);
  font-weight: 300;
  max-width: 620px;
}

/* Progress bar */
.apply-progress {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 20px var(--side-padding);
  position: sticky;
  top: 72px;
  z-index: 50;
}
.apply-progress__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.apply-progress__inner::-webkit-scrollbar { display: none; }
.apply-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.apply-step.active { opacity: 1; }
.apply-step.completed { opacity: 1; }
.apply-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.apply-step.active .apply-step__num {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.apply-step.completed .apply-step__num {
  background: var(--blue);
  color: #fff;
}
.apply-step__label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.apply-step__divider {
  width: 16px;
  height: 1.5px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Form container */
.apply-form-wrap {
  background: var(--cream);
  padding: 48px var(--side-padding) 80px;
  min-height: 60vh;
}
.apply-form {
  max-width: 840px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 48px;
}
.apply-step-panel {
  display: none;
}
.apply-step-panel.active {
  display: block;
  animation: fadeInStep 0.3s var(--ease);
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.apply-step-panel h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.apply-step-panel .subtitle {
  font-size: 15px;
  color: var(--warmgray);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Resume upload drop zone */
.resume-drop {
  position: relative;          /* scope the hidden file input to this label */
  display: block;
  border: 2px dashed rgba(61,110,158,0.3);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  background: var(--blue-pale);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  margin-bottom: 24px;
}
.resume-drop:hover,
.resume-drop.dragging {
  border-color: var(--blue);
  background: var(--blue-light);
}
.resume-drop svg {
  display: block;              /* required for margin:auto to center an SVG */
  width: 40px;
  height: 40px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 12px;
}
.resume-drop h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
.resume-drop p {
  font-size: 14px;
  color: var(--warmgray);
  margin: 0;
}
.resume-drop .formats {
  font-size: 12px;
  color: var(--warmgray);
  opacity: 0.7;
  margin-top: 8px;
}
/* Accessibility-safe file input hiding — keeps the input keyboard-focusable
   and screen-reader-discoverable, but invisible. Replaces the old
   `position:absolute; left:-9999px` pattern which could cause horizontal
   scroll on some browsers and broke iOS Safari click-through. */
.resume-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.resume-status {
  display: none;
  padding: 14px 18px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74,143,140,0.2);
  font-size: 14px;
  color: #2A6B68;
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
}
.resume-status.show { display: flex; }
.resume-status svg {
  display: block;              /* same fix as resume-drop — prevent inline glitches */
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.resume-status.error {
  background: var(--rose-light);
  border-color: rgba(196,86,122,0.2);
  color: #8B3050;
}
.resume-status.error svg { stroke: var(--rose); }

/* Form field grids */
.fg { display: grid; gap: 16px; margin-bottom: 16px; }
.fg-2 { grid-template-columns: 1fr 1fr; }
.fg-3 { grid-template-columns: 1fr 1fr 1fr; }
.fg-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }

.form-field label.required::after {
  content: ' *';
  color: var(--rose);
}
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  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 d='M1 1l5 5 5-5' stroke='%235E6B77' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkbox & radio groups */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
  background: var(--white);
}
.check-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.check-item:hover {
  border-color: var(--blue-muted);
  background: var(--blue-pale);
}
.check-item input:checked + span {
  color: var(--blue-dark);
  font-weight: 500;
}

/* Yes/No toggle */
.yn-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.yn-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
  background: var(--white);
}
.yn-item input { display: none; }
.yn-item:hover { border-color: var(--blue-muted); }
.yn-item.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 500;
}

/* Legal/disclosure callout */
.disclosure-box {
  background: var(--amber-light);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--accent-dark);
  line-height: 1.7;
}
.disclosure-box strong { font-weight: 500; color: var(--accent-dark); }

/* Reference / employment subcards */
.sub-card {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}
.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sub-card-header h4 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--blue-dark);
}
.sub-card-remove {
  background: none;
  border: none;
  color: var(--rose);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}
.sub-card-remove:hover { background: var(--rose-light); }
.add-another {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px dashed var(--blue-muted);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}
.add-another:hover { background: #DCE8F3; }

/* Abuse addendum table */
.abuse-table {
  margin-top: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.abuse-category {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.abuse-category:last-child { border-bottom: none; }
.abuse-category-header {
  padding: 14px 20px;
  background: var(--blue-pale);
  font-weight: 500;
  font-size: 14px;
  color: var(--blue-dark);
  font-family: 'Fraunces', serif;
}
.abuse-item {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.6;
  color: var(--warmgray);
}
.abuse-item-yn {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.abuse-item-yn label {
  padding: 4px 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  background: var(--white);
  font-weight: 500;
  text-transform: uppercase;
}
.abuse-item-yn label.selected-yes {
  background: var(--rose-light);
  border-color: var(--rose);
  color: #8B3050;
}
.abuse-item-yn label.selected-no {
  background: var(--teal-light);
  border-color: var(--teal);
  color: #2A6B68;
}
.abuse-item-yn input { display: none; }

/* Signature field */
.signature-canvas {
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: crosshair;
  width: 100%;
  height: 140px;
  display: block;
  touch-action: none;
}
.signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--warmgray);
}
.sig-clear {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 4px 8px;
}
.sig-clear:hover { text-decoration: underline; }

/* Navigation buttons */
.apply-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  gap: 16px;
}
.apply-nav .btn-back {
  padding: 12px 24px;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--warmgray);
  cursor: pointer;
  font-family: inherit;
}
.apply-nav .btn-back:hover { border-color: var(--blue-muted); color: var(--blue); }
.apply-nav .btn-back:disabled { opacity: 0.4; cursor: not-allowed; }
.apply-nav .btn-next,
.apply-nav .btn-submit-app {
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.apply-nav .btn-next:hover,
.apply-nav .btn-submit-app:hover { background: var(--blue-dark); }
.apply-nav .btn-submit-app { background: var(--accent); padding: 14px 36px; font-size: 15px; }
.apply-nav .btn-submit-app:hover { background: var(--accent-dark); }

/* Review section */
.review-section {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}
.review-section h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--blue-dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-section h4 .edit-link {
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 400;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
}
.review-section .review-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}
.review-section .review-row .lbl {
  color: var(--warmgray);
  font-weight: 500;
}
.review-section .review-row .val { color: var(--text); }

/* Success state */
.apply-success {
  text-align: center;
  padding: 48px 24px;
}
.apply-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.apply-success__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
}
.apply-success h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.apply-success p {
  font-size: 16px;
  color: var(--warmgray);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

/* Job card link styling update */
.job-card {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* Responsive */
@media (max-width: 768px) {
  .apply-form { padding: 28px 20px; }
  .fg-2, .fg-3, .fg-4 { grid-template-columns: 1fr; }
  .apply-progress { top: 68px; padding: 14px var(--side-padding); }
  .apply-step__label { display: none; }
  .apply-nav { flex-direction: column-reverse; }
  .apply-nav button { width: 100%; }
  .review-section .review-row { grid-template-columns: 1fr; gap: 2px; }
  .review-section .review-row .lbl { font-size: 12px; }
  .abuse-item { grid-template-columns: 1fr; }
}


/* ============================================================
   ZIPRECRUITER WIDGET ZONE
   Placeholder styling. The widget's own CSS takes over once the
   embed snippet is pasted in.
   ============================================================ */
.ziprecruiter-widget-zone {
  margin: 24px 0 32px;
  min-height: 120px;
}
.zr-placeholder {
  padding: 32px 28px;
  background: var(--blue-pale);
  border: 2px dashed var(--blue-muted);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
}