/* ===================================================================
   HOW WE WORK — page-specific styles for how-we-work.html
   Requires global.css to be loaded first (variables, nav, breakpoints,
   .page-intro, .support-*, .closing-*, #hero-section/-photo/-paragraph
   shared components).
   =================================================================== */

/* The only thing unique to this page's hero — everything else about the
   photo/paragraph hero pattern lives in global.css and is shared with
   organizations-we-support.html. */
#hero-photo{
  background-image: url('../how-we-work-hero-bg.jpg');
}

#hero-paragraph{ justify-content: center; }
.hero-para-line{ text-align: center; }

/* ============ OUR APPROACH — same op-card treatment as
   organizations-we-support.css's "Where We Operate" grid (frosted-glass
   card, photo top with gold title overlay, copy panel below), reused
   here at 4 cards instead of 6. ============ */
.op-section{
  background: var(--navy);
  padding: 90px 0 40px;
}
.op-title{
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--frost);
  text-align: center;
  margin: 0 0 56px;
}
.op-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.op-grid .op-card:nth-child(2){ transition-delay: 0.06s; }
.op-grid .op-card:nth-child(3){ transition-delay: 0.12s; }
.op-grid .op-card:nth-child(4){ transition-delay: 0.18s; }
.op-card{
  border-radius: 12px;
  overflow: hidden;
  background: rgba(30,30,35,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out,
              translate 0.35s ease, border-color 0.35s ease, background 0.35s ease,
              box-shadow 0.35s ease;
}
.op-card:hover{
  translate: 0 -6px;
  border-color: rgba(232,184,75,0.35);
  background: rgba(30,30,35,0.68);
  box-shadow: 0 26px 48px rgba(0,0,0,0.32), 0 0 0 1px rgba(232,184,75,0.2);
}
.op-media{
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.op-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.op-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,3,7,0) 45%, rgba(1,3,7,0.88) 100%);
}
.op-media-title{
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 2;
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.3;
  color: var(--gold);
  text-align: center;
}
.op-copy{ padding: 16px 16px 22px; }
.op-copy p{
  font-family: 'Inter', sans-serif; font-size: clamp(12.5px, 1vw, 13.5px); line-height: 1.6;
  color: var(--frost); opacity: 0.85;
  margin: 0; text-align: center;
}
@media (prefers-reduced-motion: reduce){
  .op-card:hover{ transform: none; translate: none; }
}
@media (max-width: 1024px){
  .op-grid{ grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px){
  .op-section{ padding: 70px 0 90px; }
  .op-grid{ grid-template-columns: 1fr; gap: 20px; }
  .op-media{ aspect-ratio: 16 / 9; }
}
