*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #7b2d8b;
  --purple-dark: #5a1f66;
  --purple-light: #a44dbf;
  --black: #111111;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #555555;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--black);
  background: var(--white);
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
}

.nav-logo-text {
  line-height: 1.1;
}

.nav-logo-text .house {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--purple);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo-text .sweet {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--black);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-logo-text .sub {
  font-size: 9px;
  color: var(--grey-text);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--purple-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: 0.3s;
}

/* ── HERO ── */
#hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(123, 45, 139, 0.85) 0%,
      rgba(17, 17, 17, 0.95) 60%);
  z-index: 1;
}

/* diagonal purple accent */
.hero-accent {
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  width: 45%;
  background: var(--purple);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.15;
  z-index: 1;
}

/* house outline SVG pattern */
.hero-pattern {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 8%;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--purple-light);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(123, 45, 139, 0.2);
}

.hero-stats {
  position: absolute;
  bottom: 48px;
  left: 8%;
  right: 8%;
  z-index: 3;
  display: flex;
  gap: 48px;
}

.hero-stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--purple-light);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── SECTION BASE ── */
section {
  padding: 90px 8%;
}

.section-label {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-desc {
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.8;
  max-width: 560px;
}

/* ── SERVIÇOS ── */
#servicos {
  background: var(--grey-light);
}

.servicos-header {
  margin-bottom: 56px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.servico-card {
  background: var(--white);
  border-top: 4px solid var(--purple);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.servico-card:hover {
  box-shadow: 0 8px 32px rgba(123, 45, 139, 0.12);
  transform: translateY(-4px);
}

.servico-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.servico-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--black);
}

.servico-desc {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.7;
}

/* ── SOBRE NÓS ── */
#sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 90px 8%;
}

.sobre-visual {
  position: relative;
}

.sobre-img-placeholder {
  background: var(--grey-light);
  border: 2px dashed var(--grey-mid);
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  font-size: 0.85rem;
  text-align: center;
  gap: 12px;
}

.sobre-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--purple);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.sobre-badge-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}

.sobre-badge-text {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.sobre-content .section-desc {
  margin-bottom: 32px;
}

.sobre-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sobre-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--grey-text);
}

.sobre-checks li::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--purple);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── PORTEFÓLIO ── */
#portfolio {
  background: var(--black);
}

#portfolio .section-label {
  color: var(--purple-light);
}

#portfolio .section-title {
  color: var(--white);
}

#portfolio .section-desc {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #222;
  aspect-ratio: 4/3;
  cursor: pointer;
}

/*
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.portfolio-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  gap: 10px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #2a1a2e);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 45, 139, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-text {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── PROCESSO ── */
#processo {
  background: var(--grey-light);
}

.processo-header {
  margin-bottom: 56px;
}

.processo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.processo-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--grey-mid);
}

.passo {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.passo-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.passo-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--black);
}

.passo-desc {
  font-size: 0.85rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ── CONTACTO ── */
#contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 90px 8%;
}

.contacto-info .section-desc {
  margin-bottom: 40px;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contacto-icon {
  width: 44px;
  height: 44px;
  background: var(--purple);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-icon svg {
  width: 20px;
  height: 20px;
}

.contacto-item-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 4px;
}

.contacto-item-value {
  font-size: 0.95rem;
  color: var(--grey-text);
}

.contacto-item-value a {
  color: var(--grey-text);
  text-decoration: none;
}

.contacto-item-value a:hover {
  color: var(--purple);
}

.contacto-form {
  background: var(--grey-light);
  padding: 40px;
  border-radius: var(--radius);
  border-top: 4px solid var(--purple);
}

.form-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--black);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: "Open Sans", sans-serif;
  font-size: 0.92rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--purple-dark);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 8% 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--purple-light);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  #sobre,
  #contacto {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sobre-badge {
    bottom: -10px;
    right: 10px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .processo-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .processo-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 0 5%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 2px solid var(--grey-mid);
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  section,
  #sobre,
  #contacto {
    padding: 64px 5%;
  }

  .hero-content {
    padding: 60px 5%;
  }

  .hero-stats {
    left: calc(8% + 0px);
    gap: 28px;
    bottom: 32px;
  }

  .hero-stat-number {
    font-size: 1.4rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item:first-child {
    grid-column: span 1;
  }

  .processo-steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contacto-form {
    padding: 28px 20px;
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}