:root {
    --green-light: #55c9a6;
    --green-dark: #035e5f;
    --green-mid: #0a8080;
    --white: #ffffff;
    --off-white: #f7faf9;
    --cream: #eef7f5;
    --text-dark: #0d2b2b;
    --text-mid: #3a5c5c;
    --text-light: #7aa4a4;
    --border: rgba(5,94,95,0.12);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6vw;
    height: 72px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
  }
  nav.scrolled { box-shadow: 0 4px 32px rgba(3,94,95,0.10); }

  .logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
  }
  .logo-img {
    width: 148px; height: auto;
  }
  .logo-icon {
    width: 38px; height: 38px; position: relative;
  }
  .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--green-dark);
    letter-spacing: .5px;
  }
  .logo-text span { color: var(--green-light); }

  .nav-links {
    display: flex; gap: 2.5rem; list-style: none; align-items: center;
  }
  .nav-links a {
    text-decoration: none;
    font-size: .9rem; font-weight: 500;
    color: var(--text-mid);
    letter-spacing: .3px;
    transition: color .2s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--green-light);
    transition: width .25s;
    border-radius: 2px;
  }
  .nav-links a:hover { color: var(--green-dark); }
  .nav-links a:hover::after { width: 100%; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.6rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem; font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer; border: none;
  }
  .btn-primary {
    background: var(--green-dark);
    color: var(--white);
  }
  .btn-primary:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(3,94,95,0.25);
  }
  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
  }
  .btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
    transform: translateY(-1px);
  }
  .btn-light {
    background: var(--white);
    color: var(--green-dark);
  }
  .btn-light:hover {
    background: var(--cream);
    transform: translateY(-1px);
  }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 6vw 60px;
    position: relative;
    overflow: hidden;
  }

  /* Slideshow */
  .hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
  }
  .hero-slide.active { opacity: 1; }

  /* Dark + brand-color overlay for readability */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      120deg,
      rgba(3,94,95,0.72) 0%,
      rgba(3,94,95,0.45) 50%,
      rgba(85,201,166,0.25) 100%
    );
  }

  /* Slideshow dots */
  .hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: .6rem;
  }
  .hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer;
    transition: all .3s;
    padding: 0;
  }
  .hero-dot.active {
    background: var(--green-light);
    width: 24px;
    border-radius: 4px;
  }

  .hero-content { position: relative; z-index: 2; }
  .hero-badge {
    display: inline-block;
    padding: .35rem 1rem;
    background: rgba(85,201,166,0.25);
    color: var(--green-light);
    border-radius: 50px;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .8px; text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(85,201,166,0.4);
  }
  .hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  }
  .hero-content h1 em {
    font-style: normal;
    color: var(--green-light);
  }
  .hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.5rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

  .hero-visual {
    position: relative; z-index: 2;
    display: flex; justify-content: center; align-items: center;
  }
  .hero-card-stack {
    position: relative; width: 340px; height: 380px;
  }
  .float-card {
    position: absolute;
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(3,94,95,0.12);
    animation: floatUp 3s ease-in-out infinite;
  }
  .float-card:nth-child(2) { animation-delay: 1s; }
  .float-card:nth-child(3) { animation-delay: 2s; }
  @keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .card-main {
    width: 260px; left: 40px; top: 60px;
    z-index: 3;
  }
  .card-sm1 {
    width: 160px; right: 0; top: 20px;
    z-index: 2;
    animation-delay: .5s !important;
  }
  .card-sm2 {
    width: 180px; left: 0; bottom: 40px;
    z-index: 2;
    animation-delay: 1.5s !important;
  }
  .card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .75rem;
    font-size: 1.3rem;
  }
  .card-label {
    font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .6px; color: var(--text-light);
    margin-bottom: .25rem;
  }
  .card-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--green-dark);
  }
  .card-sub { font-size: .78rem; color: var(--text-mid); margin-top: .2rem; }
  .pill-tag {
    display: inline-block;
    padding: .2rem .7rem;
    background: rgba(85,201,166,0.15);
    color: var(--green-dark);
    border-radius: 50px;
    font-size: .7rem; font-weight: 600;
    margin-top: .5rem;
  }

  /* ── SECTION COMMON ── */
  section { padding: 90px 6vw; }
  .section-tag {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--green-light);
    margin-bottom: .75rem;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .section-lead {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 600px;
  }

  /* ── SOBRE ── */
  #sobre {
    background: var(--green-dark);
    color: var(--white);
    position: relative; overflow: hidden;
  }
  #sobre::before {
    content: '';
    position: absolute; right: -100px; top: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(85,201,166,0.08);
  }
  .sobre-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; align-items: center;
    position: relative; z-index: 1;
  }
  #sobre .section-tag { color: var(--green-light); }
  #sobre .section-title { color: var(--white); }
  #sobre .section-lead { color: rgba(255,255,255,0.75); max-width: 100%; }
  .sobre-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; margin-top: 2.5rem;
  }
  .stat-item {}
  .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--green-light);
    line-height: 1;
    margin-bottom: .25rem;
  }
  .stat-desc {
    font-size: .85rem; color: rgba(255,255,255,0.6);
    line-height: 1.4;
  }
  .sobre-visual {
    display: grid; grid-template-rows: auto;
    gap: 1.25rem;
  }
  .pillar-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(85,201,166,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
    transition: background .2s;
  }
  .pillar-card:hover { background: rgba(85,201,166,0.1); }
  .pillar-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: rgba(85,201,166,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
  }
  .pillar-text h4 {
    font-weight: 600; color: var(--white); margin-bottom: .3rem;
  }
  .pillar-text p { font-size: .85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

  /* ── SERVIÇOS ── */
  #servicos { background: var(--off-white); }
  .servicos-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem;
  }
  .servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all .3s;
    position: relative; overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-light), var(--green-dark));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s;
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(3,94,95,0.12);
    border-color: transparent;
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-icon {
    width: 52px; height: 52px;
    background: var(--cream);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: background .3s;
  }
  .service-card:hover .service-icon {
    background: rgba(85,201,166,0.2);
  }
  .service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 700;
    color: var(--green-dark);
    margin-bottom: .75rem;
  }
  .service-card p {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.7;
  }

  /* ── PROCESSO ── */
  #processo { background: var(--white); }
  .processo-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; margin-top: 3.5rem;
    position: relative;
  }
  .processo-steps::before {
    content: '';
    position: absolute;
    top: 32px; left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--green-light), var(--green-dark));
  }
  .step {
    text-align: center; position: relative;
  }
  .step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--off-white);
    position: relative; z-index: 1;
    transition: all .3s;
  }
  .step:hover .step-num {
    background: var(--green-light);
    transform: scale(1.08);
  }
  .step h4 {
    font-weight: 600; color: var(--green-dark);
    margin-bottom: .5rem; font-size: .95rem;
  }
  .step p { font-size: .82rem; color: var(--text-mid); line-height: 1.6; }

  /* ── CONTACTOS ── */
  #contactos {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  }
  .contactos-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 5rem; align-items: start;
    margin-top: 3rem;
  }
  .contact-info { }
  .contact-item {
    display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start;
  }
  .contact-ico {
    width: 44px; height: 44px;
    background: var(--green-dark);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: white;
  }
  .contact-item-label {
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .6px; color: var(--text-light);
    margin-bottom: .2rem;
  }
  .contact-item-value {
    font-size: .95rem; font-weight: 500; color: var(--text-dark);
    line-height: 1.5;
  }

  .map-placeholder {
    width: 100%; height: 280px;
    background: var(--cream);
    border-radius: 16px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .map-placeholder iframe {
    width: 100%; height: 100%;
    border: none;
  }

  /* FORM */
  .contact-form {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(3,94,95,0.07);
  }
  .contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 1.75rem;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { margin-bottom: 1.25rem; }
  .form-group label {
    display: block;
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-mid);
    margin-bottom: .5rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--text-dark);
    background: var(--off-white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(85,201,166,0.15);
    background: var(--white);
  }
  .form-group textarea { resize: vertical; min-height: 120px; }
  .form-submit { width: 100%; font-size: 1rem; padding: 1rem; margin-top: .5rem; }

  /* ── FOOTER ── */
  footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 6vw 2rem;
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-brand p {
    font-size: .875rem; line-height: 1.7;
    margin-top: 1rem; max-width: 280px;
  }
  .footer-col h5 {
    font-weight: 600; color: var(--white);
    font-size: .85rem; letter-spacing: .4px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
  }
  .footer-col a {
    display: block;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: .85rem; margin-bottom: .65rem;
    transition: color .2s;
  }
  .footer-col a:hover { color: var(--green-light); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-bottom p { font-size: .8rem; }

  /* ── MOBILE MENU ── */
  .menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px;
    background: none; border: none;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--green-dark); border-radius: 2px;
    transition: all .3s;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-up {
    opacity: 0;
    animation: fadeInUp .7s ease forwards;
  }
  .fade-up:nth-child(2) { animation-delay: .15s; }
  .fade-up:nth-child(3) { animation-delay: .3s; }
  .fade-up:nth-child(4) { animation-delay: .45s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .servicos-grid { grid-template-columns: repeat(2, 1fr); }
    .processo-steps { grid-template-columns: repeat(2, 1fr); }
    .processo-steps::before { display: none; }
    .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contactos-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
  }

  @media (max-width: 768px) {
    #hero { grid-template-columns: 1fr; padding-top: 110px; }
    .hero-visual { display: none; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
      flex-direction: column; background: var(--white);
      padding: 1.5rem 6vw; gap: 1.25rem;
      border-bottom: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }
    .servicos-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .processo-steps { grid-template-columns: repeat(2, 1fr); }
    .sobre-stats { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .processo-steps { grid-template-columns: 1fr; }
    .sobre-stats { grid-template-columns: 1fr; }
  }


  .whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.4);
}