/* Base card styling */
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform .25s ease;
}

/* Subtle lift */
.case-card:hover { transform: translateY(-4px); }

/* Target the image inside */
.case-card img {
  width: 100%;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

/* Bronze overlay wash on hover */
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(201,139,86,0); /* transparent at rest */
  transition: background .35s ease;
}

.case-card:hover::after {
  background: rgba(201,139,86,0.25); /* bronze tint */
}

/* Pop image slightly */
.case-card:hover img {
  transform: scale(1.03);
}
/* Remove dropdown box background */
.main-header-menu .sub-menu {
  background: transparent !important;
  box-shadow: none !important; /* removes the default shadow */
  border: none !important;      /* removes border if there is one */
}

/* Optional: adjust dropdown link styling */
.main-header-menu .sub-menu a {
  color: #1f464e;  /* change to your brand text color */
}
.main-header-menu .sub-menu a:hover {
  color: #c48f65;  /* hover color */
  background: transparent !important;
}
/* Hide modal by default; show when targeted */
.yw-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.yw-modal:target { display: block; }

/* Backdrop + dialog */
.yw-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: block; }
.yw-modal__dialog {
  position: relative; margin: 6vh auto; max-width: 720px;
  background: #fff; color: #222; border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); z-index: 1;
}
.yw-modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; text-decoration: none; }
/* Semi-transparent header background */
.site-header {
  background-color: rgba(31, 70, 78, 0.5) !important;
}

/* Menu link text */
.main-navigation a {
  color: #ffffff !important; /* white text */
}

/* Hover + active menu links */
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #b3672c !important; /* copper accent */
}
.main-navigation a {
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8);
}
/* Grid of case study cards (safe mode) */
.case-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  grid-gap:24px; /* safe alias for gap */
}

/* Card container (uses padding trick instead of aspect-ratio) */
.case-card{
  position:relative;
  display:block;
  height:0;
  padding-bottom:56.25%; /* 16:9 */
  background-size:cover;
  background-position:center;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  transition:transform .3s ease, box-shadow .3s ease;
}

/* Dark base overlay for readability */
.case-card:after{
  content:"";
  position:absolute;
  top:0; right:0; bottom:0; left:0; /* instead of inset */
  background:rgba(0,0,0,.45);
  transition:background .3s ease;
}

/* Always-visible title */
.case-card__title{
  position:absolute;
  left:16px; right:16px; bottom:14px;
  color:#fff;
  font-weight:700;
  font-size:1.2rem;
  letter-spacing:.5px;
  z-index:2;
  transition:color .3s ease;
}

/* Hover effects (bronze tint) */
.case-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}
.case-card:hover:after{
  background:rgba(179,103,44,.75); /* bronze overlay */
}
/* Title stays white on hover */
.case-card:hover .case-card__title{ color:#fff; }
/* Make every role (inside any of your modals) ALL CAPS */
[id$="-modal"] .yw-title {
  text-transform: uppercase !important;
  letter-spacing: .06em;   /* optional: nicer spacing */
  font-weight: 600;        /* optional: a touch bolder */
}

