﻿* { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --black: #0d0d0d;
    --white: #ffffff;
    --pink: #e040b5;
    --gray: #f4f4f4;
    --gray2: #e8e8e8;
    --text-dim: rgba(13,13,13,0.5);
    --max: 760px;
  }

  body { background: var(--white); color: var(--black); font-family: 'Helvetica Neue', Arial, sans-serif; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }

  /* NAV */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray2);
  }

  .nav-logo { font-size: 17px; font-weight: 600; }
  .nav-links { display: flex; gap: 32px; list-style: none; font-size: 14px; }
  .nav-links a { opacity: 0.55; transition: opacity 0.2s; }
  .nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }

  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 28px; font-weight: 700; opacity: 0.75; color: var(--black); }
  .mobile-menu a:hover { opacity: 1; }

  .mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--black);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .mobile-close:hover { opacity: 1; }

  /* HERO */
  .case-hero { text-align: center; padding: 56px 48px 8px;}
  .case-hero .overline { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
  .case-hero h1 { font-size: clamp(36px, 7vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 14px; }
  .case-hero .subtitle { font-size: 14px; color: var(--text-dim); }

  /* HERO IMAGE */
  .hero-image { 
    width: 100%;
    display: flex;
    align-items: center; 
    margin: 0 auto; 
    padding: 16px 32px;
    border-radius: 32px;
    border-width: 8px;
    border-color:var(--gray);

  }
  .hero-image .placeholder { 
    width: 100%; 
    height: 460px; 
    background-image: url("img/case-chafÃ©/capa.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

   }

  /* CONTENT */
  .content { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }

  .intro h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 22px; }
  .intro p { font-size: 17px; line-height: 1.75; color: rgba(13,13,13,0.72); margin-bottom: 16px; }

  .divider { border: none; border-top: 1px solid var(--gray2); margin: 52px 0; }

  .section-title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 22px; }

  /* TAGS */
  .tags { display: flex; flex-wrap: wrap; gap: 10px; }
  .tag { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--black); font-size: 13px; font-weight: 500; }

  /* HIGHLIGHTS */
  .highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .highlight-card { background: var(--gray); border-radius: 12px; padding: 22px 18px; }
  .highlight-card .hl-icon { font-size: 20px; margin-bottom: 10px; }
  .highlight-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
  .highlight-card p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

  /* STEPS */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }

  .step-img {
    width: 200px;
    height: 280px;
    background: var(--gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    object-fit: cover;
    }

  .step-number { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-dim); }
  .step-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .step-item p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

  /* RESULTADO */
  .resultado-text p { font-size: 17px; line-height: 1.75; color: rgba(13,13,13,0.72); margin-bottom: 16px; }

  /* GALLERY */
  .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .gallery-item { border-radius: 10px; overflow: hidden; background: var(--gray); }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item .img-ph { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #bbb; letter-spacing: 1px; text-transform: uppercase; }
  .gallery-item.wide .img-ph { aspect-ratio: 21/9; }

  /* BUTTONS */
  .btn { padding: 11px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: 1.5px solid var(--black); display: inline-block; }
  .btn-filled { background: var(--black); color: var(--white); }
  .btn-filled:hover { background: transparent; color: var(--black); }
  .btn-outline { background: transparent; color: var(--black); }
  .btn-outline:hover { background: var(--black); color: var(--white); }
  .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

  /* CTA */
  .cta-section { padding: 56px 48px 72px; display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; gap: 40px; border-top: 1px solid var(--gray2); }
  .cta-text h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 10px; }
  .cta-text p { font-size: 15px; color: var(--text-dim); margin-bottom: 26px; }
  .cta-illo { flex-shrink: 0; width: 140px; }
  .cta-illo svg { width: 100%; height: auto; }

  /* FOOTER */
  footer { border-top: 1px solid var(--gray2); padding: 24px 48px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 16px; }
  .footer-links { display: flex; gap: 24px; list-style: none; opacity: 0.5; flex-wrap: wrap; }
  .footer-links a:hover { opacity: 1; }
  .social-links { display: flex; gap: 14px; align-items: center; }
  .social-links a { opacity: 0.5; transition: opacity 0.2s; display: flex; }
  .social-links a:hover { opacity: 1; }

  /* =====================
     RESPONSIVE
  ===================== */
  @media (min-width: 320px) and (max-width: 740px) {
    nav { padding: 18px 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .case-hero { padding: 40px 24px 28px; }
    .case-hero h1 { letter-spacing: -1px; }

    .hero-image .placeholder { height: 240px; }

    .content { padding: 44px 24px; }

    .intro h2 { font-size: 22px; }
    .intro p { font-size: 16px; }

    /* highlights: 1 coluna */
    .highlights { grid-template-columns: 1fr; gap: 12px; }

    /* steps: 1 coluna */
    .steps { grid-template-columns: 1fr; gap: 28px; }

    /* gallery: 1 coluna */
    .gallery { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .gallery-item .img-ph { aspect-ratio: 16/9; }
    .gallery-item.wide .img-ph { aspect-ratio: 16/9; }

    .cta-section { flex-direction: column; align-items: flex-start; padding: 40px 24px 56px; gap: 28px; }
    .cta-illo { align-self: flex-end; width: 110px; }

    footer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
    .footer-links { gap: 14px; }
  }


/* === PORTFOLIO LIST PAGE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --black: #0d0d0d;
    --white: #ffffff;
    --pink: #e040b5;
    --gray: #f4f4f4;
    --gray2: #eeeeee;
    --text-dim: rgba(13,13,13,0.5);
  }

  body { background: var(--white); color: var(--black); font-family: 'Helvetica Neue', Arial, sans-serif; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }

  /* NAV */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #e8e8e8;
  }

  .nav-logo { font-size: 17px; font-weight: 600; }

  .nav-links { display: flex; gap: 32px; list-style: none; font-size: 14px; }
  .nav-links a { opacity: 0.55; transition: opacity 0.2s; color: var(--black); }
  .nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }

  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 28px; font-weight: 700; opacity: 0.75; color: var(--black); }
  .mobile-menu a:hover { opacity: 1; }

  .mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--black);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .mobile-close:hover { opacity: 1; }

  /* PAGE HEADER */
  .page-header { padding: 52px 48px 28px; max-width: 1100px; margin: 0 auto; }
  .page-header h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; }

  /* LAYOUT */
  .portfolio-layout { max-width: 1100px; margin: 0 auto; padding: 0 48px 80px; display: flex; flex-direction: column; }

  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

  /* ARTICLE */
  .article-row { margin-bottom: 16px; }

  .article-card {
    background: var(--gray);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .article-card-image {
    width: 260px;
    flex-shrink: 0;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    min-height: 160px;
  }

  .article-card-body {
    flex: 1;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
  }

  .article-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.45; margin-bottom: 8px; }

  .article-card h2 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; color: var(--black); }

  .article-actions { display: flex; gap: 10px; flex-wrap: wrap; }

  /* BUTTONS */
  .btn {
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--black);
    display: inline-block;
  }

  .btn-outline { background: transparent; color: var(--black); }
  .btn-outline:hover { background: var(--black); color: var(--white); }
  .btn-filled { background: var(--black); color: var(--white); }
  .btn-filled:hover { background: transparent; color: var(--black); }

  /* PROJECT CARD */
  .project-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray);
    cursor: pointer;
    border: 1px solid #e4e4e4;
  }

  .thumb-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.18;
    text-transform: uppercase;
    transition: transform 0.4s;
  }

  .project-card:hover .thumb-placeholder { transform: scale(1.04); }

  .project-meta { padding: 14px 16px 18px; background: var(--white); border-top: 1px solid #e4e4e4; }
  .project-meta .proj-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--black); }
  .project-meta .proj-year { font-size: 12px; color: var(--text-dim); }

  .c1{background:#5a4f7a}.c2{background:#2a3a5a}.c3{background:#4a6a5a}.c4{background:#6a4a3a}
  .c5{background:#3a5a6a}.c6{background:#5a3a5a}.c7{background:#4a5a3a}.c8{background:#6a5a3a}
  .c9{background:#3a3a6a}.c10{background:#6a3a4a}.c11{background:#3a6a4a}.c12{background:#5a6a3a}
  .c13{background:#4a3a6a}.c14{background:#3a4a4a}.c15{background:#6a4a5a}.c16{background:#4a6a6a}

  .row-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }

  /* CTA */
  .cta-section {
    padding: 60px 48px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    border-top: 1px solid #e8e8e8;
  }

  .cta-text h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 10px; }
  .cta-text p { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; }
  .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

  .cta-illo { flex-shrink: 0; width: 150px; }
  .cta-illo svg { width: 100%; height: auto; }

  /* FOOTER */
  footer { border-top: 1px solid #e8e8e8; padding: 24px 48px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 16px; }
  .footer-links { display: flex; gap: 24px; list-style: none; opacity: 0.5; flex-wrap: wrap; }
  .footer-links a:hover { opacity: 1; }
  .social-links { display: flex; gap: 14px; align-items: center; }
  .social-links a { opacity: 0.5; transition: opacity 0.2s; display: flex; }
  .social-links a:hover { opacity: 1; }

  /* =====================
     RESPONSIVE
  ===================== */
  @media (min-width: 320px) and (max-width: 740px) {
    nav { padding: 18px 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .page-header { padding: 36px 24px 20px; }

    .portfolio-layout { padding: 0 24px 64px; }

    /* grids viram 1 coluna */
    .row { grid-template-columns: 1fr; }
    .row-4 { grid-template-columns: 1fr; }

    /* article: empilha verticalmente */
    .article-card { flex-direction: column; }

    .article-card-image {
      width: 100%;
      height: 180px;
      min-height: unset;
    }

    .article-card-body { padding: 24px 20px; }

    .cta-section {
      flex-direction: column;
      align-items: flex-start;
      padding: 40px 24px 60px;
      gap: 28px;
    }

    .cta-illo { align-self: flex-end; width: 110px; }

    footer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
    .footer-links { gap: 14px; }
  }
