@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #0d0d0d;
  --ink-soft: #1a1a1a;
  --gold: #c9a227;
  --gold-mid: #e4c65a;
  --gold-light: #f4e7a0;
  --cream: #f7f1e8;
  --footer: #050505;
  --radius-btn: 999px;
  --max: 28rem;
  --shadow-btn: 0 10px 28px rgba(0, 0, 0, 0.22);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 280px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 238, 0.42) 0%,
      rgba(255, 248, 238, 0.18) 35%,
      rgba(255, 248, 238, 0.35) 70%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url("assets/background.png") center top / cover no-repeat;
  transform: scale(1.02);
  animation: bg-breathe 14s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 28%, rgba(255, 250, 240, 0.55), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -12% -18% -8%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 248, 238, 0.72) 0%,
    rgba(255, 248, 238, 0.28) 55%,
    transparent 75%
  );
  z-index: -1;
  pointer-events: none;
}

.brand__logo {
  width: clamp(10rem, 48vw, 15rem);
  height: auto;
  /* logo é cinza metálico — vira preto sólido no hero claro */
  filter: brightness(0) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.brand__flourish {
  width: 7.5rem;
  height: 1.1rem;
  margin: 0.35rem 0 0.85rem;
  color: var(--gold);
}

.hero__copy {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto;
}

.hero__welcome {
  margin-top: 0.55rem;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu {
  width: 100%;
  margin-top: clamp(1.4rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu__btn {
  --delay: 0s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.65rem 1.25rem 0.65rem 0.7rem;
  border: none;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-mid) 45%, var(--gold-light) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
}

.menu__btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  filter: brightness(1.04);
}

.menu__btn:active {
  transform: translateY(0) scale(0.99);
}

.menu__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.88);
  color: var(--gold-light);
  display: grid;
  place-items: center;
}

.menu__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.menu__hint {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both, pulse-soft 2.4s ease-in-out 1.2s infinite;
}

.menu__hint svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero__spacer {
  flex: 1;
  min-height: 1.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 3;
  background: var(--footer);
  color: var(--gold-mid);
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-footer__ig {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--gold);
  flex-shrink: 0;
  pointer-events: none;
}

.site-footer__handles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer__handles a {
  transition: color 0.2s ease;
}

.site-footer__handles a:hover {
  color: var(--gold-light);
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) max(1.25rem, env(safe-area-inset-left))
    clamp(3.5rem, 8vw, 5.5rem) max(1.25rem, env(safe-area-inset-right));
  background: var(--cream);
}

.section--dark {
  background:
    linear-gradient(160deg, #14110e 0%, #0a0908 55%, #1a1510 100%);
  color: #f3ebe0;
}

.section__inner {
  width: min(100%, 42rem);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.section__lead {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 36ch;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__text p {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 48ch;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.7rem, 2vw, 1rem);
}

.portfolio-card {
  position: relative;
  min-height: clamp(10.5rem, 28vw, 14rem);
  border-radius: clamp(0.85rem, 2vw, 1.1rem);
  overflow: hidden;
  isolation: isolate;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.74) 100%),
    url("assets/background.png");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, 85% 70%;
  transition: transform 0.6s ease;
}

.portfolio-card:hover::before {
  transform: scale(1.05);
}

.portfolio-card span {
  position: absolute;
  left: clamp(0.85rem, 2.5vw, 1.1rem);
  bottom: clamp(0.85rem, 2.5vw, 1.1rem);
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 600;
  color: #fff;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial {
  padding: 1.35rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-mid);
}

.cta-row {
  margin-top: 2rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  max-width: 100%;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.back-top {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.back-top:hover {
  opacity: 1;
}

/* ========== ANIMATIONS ========== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-breathe {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.75;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__bg {
    transform: none;
  }
}

/* ========== RESPONSIVE ========== */

/* Celulares muito pequenos */
@media (max-width: 359px) {
  .hero__content {
    padding-inline: 0.85rem;
  }

  .brand__logo {
    width: min(9rem, 72vw);
  }

  .menu__btn {
    min-height: 3.1rem;
    font-size: 0.95rem;
    gap: 0.65rem;
    padding-right: 0.9rem;
  }

  .menu__icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .site-footer {
    padding: 0.85rem 0.75rem;
    gap: 0.55rem;
  }

  .site-footer__handles {
    font-size: 0.82rem;
    gap: 0.25rem 0.65rem;
  }

  .section {
    padding-inline: 0.85rem;
  }

  .testimonial {
    padding: 1.1rem 1rem;
  }
}

/* Celulares padrão */
@media (min-width: 360px) and (max-width: 639px) {
  .hero__content {
    padding-inline: max(1rem, env(safe-area-inset-left))
      max(1rem, env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: max(0.95rem, env(safe-area-inset-bottom));
  }
}

/* Tablets e telas médias */
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu {
    max-width: 24rem;
  }

  .section__inner {
    width: min(100%, 46rem);
  }

  .site-footer__handles {
    font-size: 1rem;
  }
}

/* Notebooks / desktop */
@media (min-width: 900px) {
  .hero__content {
    padding-top: clamp(2.5rem, 5vh, 3.5rem);
    width: min(100%, 30rem);
  }

  .menu {
    max-width: 22rem;
  }

  .hero__bg {
    background-position: center 18%;
  }

  .section__inner {
    width: min(100%, 52rem);
  }

  .portfolio-card {
    min-height: 15rem;
  }
}

/* Telas grandes */
@media (min-width: 1200px) {
  .hero__content {
    width: min(100%, 32rem);
  }

  .section {
    padding-block: clamp(4.5rem, 8vw, 6.5rem);
  }

  .section__inner {
    width: min(100%, 58rem);
  }

  .portfolio-grid {
    gap: 1.15rem;
  }

  .portfolio-card {
    min-height: 16.5rem;
  }

  .testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .testimonials .testimonial:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Ultra wide */
@media (min-width: 1600px) {
  .section__inner {
    width: min(100%, 64rem);
  }

  .portfolio-card {
    min-height: 18rem;
  }
}

/* Landscape em celular / tablet baixo */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  .brand__logo {
    width: clamp(5.5rem, 18vh, 8rem);
  }

  .brand__flourish {
    margin: 0.15rem 0 0.4rem;
  }

  .hero__tagline {
    max-width: 28ch;
    font-size: clamp(1.1rem, 4.5vh, 1.45rem);
  }

  .hero__welcome {
    margin-top: 0.25rem;
    font-size: 1rem;
  }

  .menu {
    margin-top: 0.75rem;
    max-width: 20rem;
    gap: 0.5rem;
  }

  .menu__btn {
    min-height: 2.75rem;
  }

  .menu__hint {
    margin-top: 0.55rem;
  }

  .hero__spacer {
    min-height: 0.5rem;
  }
}

/* Hover só em dispositivos com ponteiro fino */
@media (hover: none) {
  .menu__btn:hover,
  .cta-link:hover,
  .portfolio-card:hover::before {
    transform: none;
    filter: none;
    box-shadow: var(--shadow-btn);
  }

  .menu__btn:active {
    transform: scale(0.985);
  }
}
