    :root {
      --navy:    #001F28;
      --sage:    #9CAF78;
      --offwhite:#F8F7F3;
      --navy-mid:#0a2d3a;
      --text-lt: #e8ede8;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--offwhite); color: var(--navy); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

    /* ===== NAV ===== */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.2rem 6%;
      background: rgba(0,31,40,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(156,175,120,0.2);
    }
    .logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--offwhite); letter-spacing: -0.5px; }
    .logo span { color: var(--sage); }
    nav ul { list-style: none; display: flex; gap: 2.5rem; }
    nav ul a { color: var(--text-lt); text-decoration: none; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s; }
    nav ul a:hover { color: var(--sage); }
    .nav-cta { background: var(--sage) !important; color: var(--navy) !important; padding: 0.55rem 1.4rem; border-radius: 2px; }
    .nav-cta:hover { background: var(--offwhite) !important; }

    /* Hamburger */
    .hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
    .hamburger span { display: block; width: 24px; height: 2px; background: var(--offwhite); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile menu overlay */
    .nav-menu {
      list-style: none; display: flex; gap: 2.5rem;
    }
    @media (max-width: 900px) {
      .hamburger { display: flex; }
      .nav-menu {
        display: none;
        position: fixed; inset: 0; top: 64px;
        background: rgba(0,31,40,0.98);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 2.5rem; z-index: 99;
      }
      .nav-menu.open { display: flex; }
      .nav-menu a { font-size: 1.2rem !important; }
    }

    /* ===== HERO ===== */
    .hero {
      min-height: 100vh; background: var(--navy);
      display: grid; grid-template-columns: 1fr 1fr;
      align-items: center; padding: 0 6%; gap: 4rem;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; right: -10%; top: -10%;
      width: 55%; height: 120%;
      background: radial-gradient(ellipse at top right, rgba(156,175,120,0.12) 0%, transparent 65%);
      pointer-events: none;
    }
    .hero-text { position: relative; z-index: 1; animation: fadeUp 0.9s ease both; }
    .hero-eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.4rem; }
    .hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4.5vw, 4.6rem); font-weight: 900; line-height: 1.08; color: var(--offwhite); margin-bottom: 1.6rem; }
    .hero h1 em { color: var(--sage); font-style: normal; }
    .hero p { font-size: 1.05rem; line-height: 1.75; color: rgba(232,237,232,0.72); max-width: 440px; margin-bottom: 2.5rem; }
    .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-primary { background: var(--sage); color: var(--navy); padding: 0.9rem 2.2rem; border: none; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; letter-spacing: 0.04em; transition: all 0.3s; display: inline-block; }
    .btn-primary:hover { background: var(--offwhite); transform: translateY(-2px); }
    .btn-outline { background: transparent; color: var(--offwhite); padding: 0.9rem 2.2rem; border: 1px solid rgba(232,237,232,0.35); border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; letter-spacing: 0.04em; transition: all 0.3s; display: inline-block; }
    .btn-outline:hover { border-color: var(--sage); color: var(--sage); }
    .hero-visual { display: flex; flex-direction: column; gap: 1rem; animation: fadeUp 0.9s 0.2s ease both; position: relative; z-index: 1; }
    .stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(156,175,120,0.18); border-radius: 4px; padding: 1.6rem; transition: border-color 0.3s, transform 0.3s; }
    .stat-card:hover { border-color: var(--sage); transform: translateY(-3px); }
    .stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: var(--sage); display: block; }
    .stat-label { font-size: 0.82rem; color: rgba(232,237,232,0.6); margin-top: 0.3rem; }
    .hero-badge { background: rgba(156,175,120,0.1); border: 1px solid rgba(156,175,120,0.25); border-radius: 4px; padding: 1.2rem 1.6rem; display: flex; align-items: center; gap: 1rem; }
    .badge-icon { font-size: 2rem; }
    .badge-text { font-size: 0.88rem; color: var(--text-lt); line-height: 1.5; }
    .badge-strong { color: var(--sage); display: block; font-size: 1rem; margin-bottom: 0.1rem; font-weight: 700; }

    /* ===== SECTIONS ===== */
    section { padding: 6rem 6%; }
    .section-eyebrow { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
    .section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.2rem; color: var(--navy); }
    .section-sub { font-size: 1rem; color: rgba(0,31,40,0.65); line-height: 1.75; max-width: 540px; }
    .section-header { margin-bottom: 3.5rem; }

    /* ===== SERVICES ===== */
    #servicos { background: var(--offwhite); }
    .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
    .service-card { background: #fff; border-radius: 4px; padding: 2.2rem 2rem; border-top: 3px solid transparent; box-shadow: 0 2px 20px rgba(0,31,40,0.06); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
    .service-card:hover { border-top-color: var(--sage); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,31,40,0.12); }
    .svc-icon { width: 48px; height: 48px; background: rgba(156,175,120,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.4rem; }
    .service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--navy); }
    .service-card p { font-size: 0.9rem; color: rgba(0,31,40,0.65); line-height: 1.7; }

    /* ===== PORTFOLIO ===== */
    #portfolio { background: var(--navy); }
    #portfolio .section-title { color: var(--offwhite); }
    #portfolio .section-eyebrow { color: var(--sage); }
    #portfolio .section-sub { color: rgba(232,237,232,0.6); }
    .portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .portfolio-item { border-radius: 4px; overflow: hidden; border: 1px solid rgba(156,175,120,0.15); transition: border-color 0.3s, transform 0.3s; }
    .portfolio-item:hover { border-color: var(--sage); transform: translateY(-4px); }
    .portfolio-item.featured { grid-column: span 2; }
    .p-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
    .portfolio-item.featured .p-thumb { height: 260px; }
    .p-thumb.navy-bg  { background: linear-gradient(135deg,#001f28 0%,#0a2d3a 100%); }
    .p-thumb.sage-bg  { background: linear-gradient(135deg,#7a9460 0%,#9caf78 100%); }
    .p-thumb.mixed-bg { background: linear-gradient(135deg,#001f28 0%,#9caf78 100%); }
    .p-thumb.white-bg { background: linear-gradient(135deg,#e8ede8 0%,#f8f7f3 100%); }
    .p-info { padding: 1.4rem 1.5rem; background: rgba(255,255,255,0.04); }
    .p-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--sage); font-weight: 600; margin-bottom: 0.5rem; }
    .p-info h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--offwhite); font-weight: 700; }

    /* ===== PROCESS ===== */
    #processo { background: var(--offwhite); }
    .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
    .process-steps::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(to right, var(--sage), rgba(156,175,120,0.2)); }
    .step { text-align: center; padding: 0 1.5rem; }
    .step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--sage); font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem; border: 2px solid var(--sage); }
    .step h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--navy); }
    .step p { font-size: 0.88rem; color: rgba(0,31,40,0.6); line-height: 1.65; }

    /* ===== CONTACT ===== */
    #contato { background: var(--navy); position: relative; overflow: hidden; }
    #contato::before { content: ''; position: absolute; left: -5%; top: -20%; width: 50%; height: 140%; background: radial-gradient(ellipse at left, rgba(156,175,120,0.08) 0%, transparent 65%); }
    #contato .section-title { color: var(--offwhite); }
    #contato .section-sub { color: rgba(232,237,232,0.6); }
    .contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
    .contact-info { position: relative; z-index: 1; }
    .contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.8rem; }
    .c-icon { width: 42px; height: 42px; background: rgba(156,175,120,0.12); border: 1px solid rgba(156,175,120,0.25); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .c-label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.2rem; font-weight: 700; }
    .c-value { font-size: 0.95rem; color: rgba(232,237,232,0.8); }
    .contact-form { position: relative; z-index: 1; }
    .form-group { margin-bottom: 1.2rem; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,237,232,0.5); margin-bottom: 0.5rem; }
    input, textarea, select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(156,175,120,0.2); border-radius: 2px; padding: 0.85rem 1rem; color: var(--offwhite); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; transition: border-color 0.3s, background 0.3s; outline: none; }
    input:focus, textarea:focus, select:focus { border-color: var(--sage); background: rgba(255,255,255,0.08); }
    textarea { resize: vertical; min-height: 130px; }
    select option { background: var(--navy); }
    .form-submit { width: 100%; background: var(--sage); color: var(--navy); border: none; border-radius: 2px; padding: 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700; cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.3s; margin-top: 0.5rem; }
    .form-submit:hover { background: var(--offwhite); transform: translateY(-2px); }

    /* ===== FOOTER ===== */
    footer { background: #000d13; padding: 2.5rem 6%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(156,175,120,0.1); flex-wrap: wrap; gap: 1rem; }
    .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: var(--offwhite); }
    .footer-logo span { color: var(--sage); }
    footer p { font-size: 0.82rem; color: rgba(232,237,232,0.35); }
    .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
    .footer-links a { font-size: 0.82rem; color: rgba(232,237,232,0.45); text-decoration: none; transition: color 0.3s; }
    .footer-links a:hover { color: var(--sage); }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    /* ===== RESPONSIVE ===== */

    /* Tablet landscape */
    @media (max-width: 1100px) {
      .portfolio-grid { grid-template-columns: 1fr 1fr; }
      .portfolio-item.featured { grid-column: span 2; }
    }

    /* Tablet portrait */
    @media (max-width: 900px) {
      section { padding: 4rem 6%; }

      /* Hero: single column */
      .hero {
        grid-template-columns: 1fr;
        padding: 7rem 6% 4rem;
        gap: 3rem;
        min-height: auto;
      }
      .hero p { max-width: 100%; }

      /* Process: 2 columns */
      .process-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
      .process-steps::before { display: none; }

      /* Contact: stacked */
      .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    }

    /* Mobile large */
    @media (max-width: 640px) {
      .stat-cards { grid-template-columns: 1fr 1fr; }
      .portfolio-grid { grid-template-columns: 1fr; }
      .portfolio-item.featured { grid-column: span 1; }
      .portfolio-item.featured .p-thumb { height: 200px; }
      .form-row { grid-template-columns: 1fr; }
      .process-steps { grid-template-columns: 1fr; gap: 2rem; }
      .hero-btns { flex-direction: column; }
      .btn-primary, .btn-outline { text-align: center; }
    }

    /* Mobile small */
    @media (max-width: 380px) {
      .stat-num { font-size: 1.8rem; }
      footer { text-align: center; justify-content: center; }
      .footer-links { justify-content: center; }
    }

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
/* CONTAINER DA IMAGEM */
.p-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
}

/* IMAGEM */
.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* OVERLAY ESCURO */
.p-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

/* TEXTO */
.p-overlay .p-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #9CAF78;
  margin-bottom: 5px;
}

.p-overlay h4 {
  color: white;
  font-size: 1rem;
  line-height: 1.3;
}

/* HOVER */
.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .p-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3),
    transparent
  );
}