/* =========================================================
   PROJECT 5 — Ottawa Dog Rescue (Case Study)
   Matches Project-1 language + adds side-by-side embed section
========================================================= */

/* Page background */
body.project-page.project-4{
  background:#FFD0A3!important;
}

/* Wrapper */
.cs{ max-width: var(--max); }

/* Top back pill */
.cs-topbar{
  display:flex;
  justify-content:flex-start;
  margin:14px 0 6px;
}
.cs-backpill{
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(17,19,24,.12);
  background:rgba(255,255,255,.75);
  color:rgba(17,19,24,.86);
}

/* HERO */
.cs-hero{ padding-top:12px; }
h1{
    color: #4E1414;
}
.cs-hero-card{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(17,19,24,.10);
  background:
    linear-gradient(90deg, rgba(218, 141, 54, 0.45) 0%, rgba(231, 136, 47, 0.22) 40%, rgba(255, 160, 160, 0.28) 100%),
    rgba(128, 66, 9, 0.55);
  box-shadow:0 18px 55px rgba(17,19,24,.10);
}

.cs-hero-top{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:14px 16px 8px;
}

.cs-pill{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(17,19,24,.10);
}

.cs-hero-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:18px;
  padding:10px 16px 18px;
}

.cs-hero-meta{
  background:rgba(255,255,255,.45);
  border:1px solid rgba(17,19,24,.10);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:12px;
}

.cs-meta-item{ display:grid; gap:4px; }

.cs-meta-label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#240a0a;
}
.cs-meta-value{
  font-weight:800;
  color:#4E1414;
}

.cs-hero-main{ padding:2px 0 0; }

.cs-title{
  font-family:var(--font-serif);
  font-size:clamp(26px, 3.2vw, 40px);
  margin:0 0 8px;
  letter-spacing:-.02em;
}

.cs-lede{
  margin:0 0 12px;
  color:#5c3434;
  line-height:1.7;
}

.cs-hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.cs-tag{
  font-size:12px;
  font-weight:900;
  color:rgba(17,19,24,.78);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.55);
}

/* BODY LAYOUT */
.cs-body{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:26px;
  margin-top:18px;
}

.cs-side{
  position:sticky;
  top:120px;
  align-self:start;

  display:flex;
  flex-direction:column;
  gap:10px;

  padding:12px;
  border-radius:18px;
  background: #a4500f73;
  border:1px solid rgba(17,19,24,.10);
}

.cs-side a{
  text-decoration:none;
  color: #4E1414;
  font-weight:800;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(17,19,24,.08);
  background:rgba(255,255,255,.45);
}

.cs-side a:hover{
  background:rgba(255,255,255,.80);
  color:#4E1414;
}

.cs-main{ min-width:0; }

/* TYPOGRAPHY */
.cs-section{
  padding:14px 0 4px;
  border-bottom:1px solid rgba(17,19,24,.06);
  margin-bottom:16px;
  scroll-margin-top: 40vh;
  scroll-margin-bottom: 40vh;
}

.cs-section h2{
  font-family:var(--font-sans);
  font-size:20px;
  margin:0 0 10px;
  letter-spacing:-.01em;
  color: #4E1414;
}

.cs-section p{
  margin:0 0 12px;
  color:rgba(24, 20, 17, 0.78);
  line-height:1.75;
}

.cs-lead{
  margin-top:6px;
  color:rgba(17,19,24,.78);
  line-height:1.75;
}

/* Lists */
.cs-section ul{
  margin:0;
  padding-left:18px;
  color:rgba(17,19,24,.78);
  line-height:1.8;
}

/* Bullets block */
.cs-bullets{
  margin:12px 0 12px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.60);
  border:1px solid rgba(17,19,24,.10);
}

.cs-bullets p{
  margin:0 0 8px;
  font-weight:800;
}

/* Back row */
.cs-back-row{ margin-top:10px; }

/* -------------------------------------------------
   BEFORE vs AFTER EMBEDS (NEW)
------------------------------------------------- */
.cs-compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:12px;
}

.cs-embed-card{
  border-radius:18px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.60);
  overflow:hidden;
  box-shadow:0 18px 55px rgba(17,19,24,.08);
}

.cs-embed-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(17,19,24,.08);
  background:rgba(255,255,255,.55);
}

.cs-embed-pill{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,210,82,.25);
  color:rgba(17,19,24,.86);
}

.cs-embed-pill-alt{
  background:rgba(168,146,255,.20);
}

.cs-embed-link{
  font-weight:900;
  text-decoration:none;
  color:rgba(17,19,24,.86);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.55);
}

.cs-embed-link:hover{
  background:rgba(255,255,255,.85);
}

.cs-iframe-wrap{
  width:100%;
  height:70vh;
  min-height:520px;
  background:#000;
  overflow:hidden;
}

.cs-iframe-wrap iframe{
  width:100%;
  height:100%;
  border:0;
}

.cs-iframe-wrap-proto{
  background:#111318; /* makes Figma look premium */
}

.cs-embed-note{
  margin:0;
  padding:10px 12px 12px;
  font-size:13px;
  color:rgba(17,19,24,.70);
  line-height:1.6;
}

/* IMPORTANT: do NOT affect header/footer logos */
body.project-page .brand-logo,
body.project-page .footer-logo{
  width:auto !important;
  object-fit:contain !important;
  display:block;
}
body.project-page .brand-logo{ height:32px; }
body.project-page .footer-logo{ height:44px; }

/* RESPONSIVE */
@media (max-width:980px){
  .cs-body{ grid-template-columns:1fr; }

  .cs-side{
    position:relative;
    top:auto;
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px;
  }

  .cs-hero-grid{ grid-template-columns:1fr; }

  .cs-compare{ grid-template-columns:1fr; }
  .cs-iframe-wrap{
    height:65vh;
    min-height:520px;
  }
}

@media (max-width:520px){
  .cs-iframe-wrap{
    height:62vh;
    min-height:520px;
  }
}

/* Smooth scroll */
html{ scroll-behavior:smooth; }
