/* ============================================================================
   Page-specific styles. Grows as pages are built (home hero, locations, office…)
   ========================================================================== */

/* ---- Home hero (replaces Revolution Slider). Hidden on phones, like legacy. */
.hero { position: relative; display: none; height: 400px; overflow: hidden; background: #1b2121; }
@media (min-width: 768px) { .hero { display: block; } }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  background-repeat: no-repeat; opacity: 0; z-index: 0; pointer-events: none;
}
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; transition: opacity .7s ease; }
.hero-slide.leaving { opacity: 1; z-index: 0; }
.hero-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-text { max-width: 55%; }
.hero-h { font-size: 50px; font-weight: 300; color: #000; margin: 0 0 18px; line-height: 1.1; font-family: 'Source Sans Pro','Segoe UI','Droid Sans',Tahoma,Arial,sans-serif; }
.hero-h strong { font-weight: 700; }
.hero-sub { display: table; color: #fff; font-size: 17px; padding: 5px 10px; margin: 0 0 6px; }
.hero-sub-mid { background: var(--midnight); }
.hero-sub-primary { background: var(--primary); }
.hero-btn { display: inline-block; margin-top: 22px; background: #000; color: #fff; border: 1px solid var(--primary); border-radius: 3px; padding: 9px 22px; font-size: 15px; }
.hero-btn:hover { background: var(--primary); color: #fff; text-decoration: none; }
.hero-media { flex: 0 0 auto; max-width: 42%; }
.hero-media img { max-width: 100%; height: auto; max-height: 300px; display: block; }
/* Slide 1 multi-device composite (reproduces the legacy Revolution Slider device cluster). */
.hero-media-devices { position: relative; flex: 0 0 auto; width: 46%; height: 300px; align-self: center; }
.hero-media-devices .dev { position: absolute; bottom: 0; width: auto; display: block; }
.hero-media-devices .dev-desktop { left: 26%; height: 270px; z-index: 1; }
.hero-media-devices .dev-laptop  { right: 2%; height: 155px; z-index: 2; }
.hero-media-devices .dev-tablet  { left: 0;   height: 170px; z-index: 3; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(0,0,0,.25); color: #fff; border: 0; width: 42px; height: 58px; font-size: 28px; line-height: 1; cursor: pointer; }
.hero-arrow:hover { background: rgba(0,0,0,.45); }
.hero-prev { left: 8px; }
.hero-next { right: 8px; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; margin: 0 4px; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---- Locations ---- */
.region-col h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--heading); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 12px; }
.region-col ul { list-style: none; padding: 0; margin: 0 0 30px; }
.region-col li { padding: 6px 0; border-bottom: 1px solid #eee; }
.region-col li a { color: var(--heading); }
.region-col li a:hover { color: var(--primary); }
.region-col .market { font-weight: 600; display: block; }
.region-col .mall { font-size: 12px; color: var(--muted); }
#usmap { width: 100%; max-width: 100%; }
#usmap svg { width: 100%; height: auto; }
#usmap .state { fill: #343434; stroke: #5d5d5d; stroke-width: 1; transition: fill .15s; }
.map-pin { fill: var(--primary); cursor: pointer; }
/* Map zoom control (replaces the legacy Mapael +/- buttons) — white squares, top-left. */
.map-zoom { position: absolute; top: 10px; left: 10px; z-index: 5; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); border-radius: 2px; overflow: hidden; }
.map-zoom-btn { width: 26px; height: 26px; padding: 0; border: 0; border-bottom: 1px solid #ccc; background: #fff;
  color: #333; font-size: 18px; line-height: 26px; text-align: center; cursor: pointer; display: block; }
.map-zoom-btn:last-child { border-bottom: 0; }
.map-zoom-btn:hover { background: #f0f0f0; }

/* ---- Office detail ---- */
.office-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.office-gallery a { display: block; width: 140px; box-shadow: var(--shadow-sm); opacity: .85; }
.office-gallery a:hover { opacity: 1; }
.office-gallery img { width: 100%; height: 100px; object-fit: cover; display: block; }
.office-meta li { margin-bottom: 6px; }

/* ---- Lightbox ---- */
.lb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 1060; }
.lb-backdrop.open { display: flex; }
.lb-backdrop img { max-width: 90%; max-height: 90%; box-shadow: 0 0 30px rgba(0,0,0,.6); }

/* ---- Demographics modal ---- */
.demo-grid { width: 100%; border-collapse: collapse; }
.demo-grid th, .demo-grid td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.demo-grid th { color: var(--muted); font-weight: 600; }

/* ---- Tables (locations listing + facility) ---- */
table.table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
table.table th, table.table td { padding: 8px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
table.table thead th { border-bottom: 2px solid var(--border); vertical-align: bottom; }
.table-condensed th, .table-condensed td { padding: 5px 8px; }
.table-responsive { overflow-x: auto; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.loc-table td { vertical-align: top; }
.region-list li { margin-bottom: 6px; }
.us-map { width: 100%; height: auto; }
.us-map .state { fill: #343434; stroke: #5d5d5d; stroke-width: 1; }
.us-map a:hover .state { fill: #444; }
.map-pin { fill: var(--primary); stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: r .1s; }
.map-pin:hover { fill: #6fb7ea; r: 8; }

/* ---- Office detail ---- */
.cc-tabs .nav-tabs { list-style: none; margin: 0 0 15px; padding: 0; border-bottom: 2px solid var(--border); display: flex; gap: 4px; }
.cc-tabs .nav-tabs li a { display: block; padding: 10px 16px; color: var(--text); border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; cursor: pointer; }
.cc-tabs .nav-tabs li.active a { background: #fff; color: var(--heading); border-color: var(--border); margin-bottom: -2px; font-weight: 600; }
.cc-tabs .tab-pane { display: none; }
.cc-tabs .tab-pane.active { display: block; }
.info-tiles { border-radius: 3px; color: #fff; margin-bottom: 15px; overflow: hidden; }
.info-tiles .tiles-heading { padding: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: rgba(0,0,0,.12); }
.info-tiles .tiles-body { padding: 16px 8px; font-size: 26px; font-weight: 300; }
.tiles-green { background: #2ecc71; } .tiles-midnightblue { background: #34495e; } .tiles-magenta { background: #e74c3c; } .tiles-primary { background: #3498db; }
.facility-table td:last-child { text-align: right; font-weight: 600; }
.office-subhead { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--primary); display: inline-block; padding-bottom: 6px; margin: 0 0 14px; }
.race-pie { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.race-legend { list-style: none; padding: 0; margin: 0; }
.race-legend li { padding: 3px 0; }
.race-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.office-map { width: 100%; height: 300px; border: 1px solid var(--border); border-radius: 3px; }

/* ---- Print: the employment application prints by itself (no site chrome) ----
   Scoped to the application page (body.page-resume) so other pages are unaffected. */
.print-only { display: none; }
@media print {
  @page { margin: 0.5in; }

  /* Hide all site chrome + non-printable controls. */
  body.page-resume .topbar,
  body.page-resume .masthead,
  body.page-resume .site-footer,
  body.page-resume .page-head,
  body.page-resume .hidden-print,
  body.page-resume .g-recaptcha,
  body.page-resume form[data-cc-form] [type="submit"],
  body.page-resume .cc-modal,
  body.page-resume .cc-modal-backdrop { display: none !important; }

  body.page-resume { background: #fff; font-size: 11px; }
  body.page-resume .print-only { display: block; }
  body.page-resume .print-only img { max-width: 170px; margin-bottom: 4px; }
  body.page-resume .print-only h2 { font-size: 16px; }
  body.page-resume .page-content { min-height: 0; }
  body.page-resume .container { width: 100%; max-width: none; padding: 0; }
  /* Neutralize Bootstrap's -15px row gutter so the left edge isn't clipped off-page. */
  body.page-resume .row { margin-left: 0; margin-right: 0; }

  /* Re-apply the desktop multi-column grid on paper (it collapses otherwise,
     since the sheet is narrower than the 992px breakpoint) → compact layout. */
  body.page-resume [class*="col-"] { float: left; padding-left: 6px; padding-right: 6px; min-height: 1px; }
  body.page-resume .col-md-2 { width: 16.6%; }
  body.page-resume .col-md-3 { width: 25%; }
  body.page-resume .col-md-4 { width: 33.3%; }
  body.page-resume .col-md-6 { width: 50%; }
  body.page-resume .col-md-8 { width: 66.6%; }

  /* Full-width fields (Address, Start Date, Skills, References, certification) are
     direct children of the form, not grid columns — inset them by the same 6px as
     the columns so they line up instead of overhanging both edges. */
  body.page-resume form[data-cc-form] > .form-group,
  body.page-resume form[data-cc-form] > p { padding-left: 6px; padding-right: 6px; }

  /* Tighten vertical rhythm so the whole application fits on ~1–2 pages. */
  body.page-resume .form-group { margin-bottom: 6px; page-break-inside: avoid; }
  body.page-resume label { margin-bottom: 1px; }
  body.page-resume .form-control { padding: 2px 6px; font-size: 11px; line-height: 1.3; height: auto; }
  body.page-resume textarea.form-control { min-height: 34px; }
  /* Blank out field placeholders on paper (e.g. "hours", "e.g. Immediately…") so
     printed empty boxes are clean to fill in by hand. (Still shown on screen.) */
  body.page-resume .form-control::placeholder { color: transparent !important; opacity: 0 !important; }
  body.page-resume .form-control::-webkit-input-placeholder { color: transparent !important; opacity: 0 !important; }
  body.page-resume .page-header { margin: 8px 0 5px; padding-bottom: 2px; }
  body.page-resume .page-header h3 { font-size: 13px; }
  body.page-resume p { margin: 0 0 4px; }
  body.page-resume .help-block { font-size: 9px; margin: 0; }
}
