/* ===================================================
   PORTFOLIO CASE STUDY STYLES
   For use in portfolio/*.html files
   =================================================== */

/* ===== TYPOGRAPHY ===== */
strong {
  font-weight: 700;
}

/* ===== LAYOUT ===== */
.case-study-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 30px 60px;
  color: #555;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #888;
  text-decoration: none;
  font-size: 0.875em;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.2s ease-out;
}

.back-link:hover {
  color: #555;
  text-decoration: none;
}

/* ===== HEADER ===== */
.case-study-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid #555;
}

/* When a key graphic follows the header, it replaces the divider line */
.case-study-header.no-divider {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: none;
}

.case-study-header .meta-line {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
}

.case-study-header h1 {
  font-size: 2.2em;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  line-height: 1.2;
  margin-bottom: 15px;
}

.case-study-header .subtitle {
  font-size: 1.2em;
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
  color: #555;
  margin-bottom: 25px;
}

.meta {
  display: flex;
  gap: 20px;
  font-size: 0.95em;
  color: #555;
  flex-wrap: wrap;
}

.meta .period {
  font-weight: 700;
  color: #555;
}

/* Tags — matches blog/blog-post.css .post-tags / .tag */
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.case-study-tags .tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f7dbd2;
  color: #555;
  font-size: 0.85em;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: 0.2s ease-out;
}

.case-study-tags .tag:hover {
  background-color: #f1eded;
}

/* ===== HERO IMAGE ===== */
.case-study-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 50px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
}

/* ===== CONTENT ===== */
.case-study-content {
  line-height: 1.8;
}

.section-divider {
  width: 40px;
  border-top: 2px solid #555;
  margin: 60px 0 20px 0;
}

.section-divider--first {
  margin-top: 0;
}

.case-study-content h2 {
  font-size: 2em;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.case-study-content h3 {
  font-size: 1.6em;
  margin-top: 50px;
  margin-bottom: 15px;
}

.case-study-content h4 {
  font-size: 1.3em;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: 'Crimson Text', serif;
}

.case-study-content p {
  margin-bottom: 20px;
  font-family: 'Crimson Text', serif;
  font-size: 1.4em;
  line-height: 1.5;
}

.case-study-content ul {
  margin: 20px 0 20px 40px;
  list-style: disc;
  font-family: 'Crimson Text', serif;
}

.case-study-content ul li {
  margin-bottom: 1em;
  line-height: 1.1;
  font-size: 1.4em !important;
}

/* ===== SPECIAL SECTIONS ===== */

/* Strategic Insight Callouts */
.strategic-insight {
  background-color: #f1eded;
  padding: 30px 35px;
  margin: 40px 0;
  border-left: 4px solid #888;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.05);
}

.strategic-insight h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9em;
  color: #888;
  font-family: 'Raleway', sans-serif;
}

.strategic-insight h4 .insight-icon {
  width: 18px;
  height: 18px;
  fill: #888;
  flex-shrink: 0;
}

.strategic-insight p {
  margin-bottom: 0;
  font-size: 1.2em;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
}

/* Phase Headers */
.phase-header {
  margin-top: 70px;
  margin-bottom: 30px;
}

.phase-header .st {
  width: 40px;
  border: 2px solid #555;
  margin-bottom: 20px;
}

.phase-header h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Approach Sections */
.approach-section {
  background-color: #faf9f9;
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 4px;
  border-top: 4px solid #f5d5c9;
}

.approach-section h4 {
  margin-top: 0;
  color: #888;
  font-size: 1.1em;
  font-weight: 700;
}

.approach-section p {
  margin: 0 0 40px 20px;
}

.approach-section p:last-child {
  margin-bottom: 0;
}

/* Takeaways List */
.takeaways-list {
  margin: 40px 0;
}

.takeaways-list p {
  margin-left: 20px;
}

.takeaways-list h4 {
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.case-study-content hr {
  border: none;
  border-top: 1px solid #888;
  margin: 80px 0 40px 0;
}

.case-study-footer {
  font-size: 0.95em;
  color: #888;
  font-style: italic;
}

/* ===== PASSWORD GATE ===== */
.password-gate {
  padding: 80px 0 60px;
  text-align: center;
}

.password-gate .st {
  margin: 0 auto 30px auto;
}

.password-gate h2 {
  font-size: 2em;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 15px;
  color: #555;
}

.password-gate p {
  font-size: 1.2em;
  color: #888;
  max-width: 440px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.gate-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gate-input {
  border: none;
  border-bottom: 2px solid #999;
  padding: 10px 4px;
  font-size: 1em;
  font-family: 'Raleway', sans-serif;
  color: #555;
  background: transparent;
  width: 220px;
  outline: none;
  letter-spacing: 1px;
}

.gate-input:focus {
  border-bottom-color: #555;
}

.gate-btn {
  border: 2px solid #888;
  background: transparent;
  color: #555;
  padding: 10px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.2s ease-out;
}

.gate-btn:hover {
  background-color: #888;
  color: #fff;
}

.gate-error {
  color: #c0786a;
  font-size: 0.9em !important;
  margin-top: 20px !important;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.5px;
  min-height: 1.2em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .case-study-wrap {
    padding: 40px 20px;
  }

  .case-study-header h1 {
    font-size: 2em;
  }

  .case-study-header .subtitle {
    font-size: 1.2em;
  }

  .meta {
    flex-direction: column;
    gap: 10px;
  }

  .strategic-insight {
    padding: 20px 25px;
  }

  .phase-header {
    margin-top: 50px;
    font-weight: 700;
  }
}
