/* ============================================
   Pantanal Escola de Artes — index.css
   Redesign Editorial & Luxuoso
   ============================================ */

/* ── Design Tokens ── */
:root {
  /* CORES OBRIGATÓRIAS (Não alterar) */
  --primary: #0B3D35;
  --primary-dark: #051F20;
  --accent: #D4A373;
  --text-dark: #1A1A1A;
  --text-light: #5A6B65;
  --bg-light: #F4F7F6;
  --white: #FFFFFF;

  /* Fontes e Timing */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --ease-elegant: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: cubic-bezier(0.4, 0, 0, 1);
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.ed-font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

/* ── Texturas e Filtros ── */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ── Custom Cursor (Artístico) ── */
.custom-cursor {
  position: fixed;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Playfair Display', serif;
  font-size: 36px;
  color: var(--primary);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 70px;
  transition: transform 0.3s var(--ease-elegant), color 0.3s;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  width: 0px;
  height: 0px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0;
  z-index: -1;
  transition: width 0.3s var(--ease-elegant), height 0.3s var(--ease-elegant), opacity 0.3s;
}

.custom-cursor.hovering {
  transform: translate(-50%, -50%) scale(1.25) rotate(15deg);
  color: var(--primary-dark);
}

.custom-cursor.hovering::before {
  width: 56px;
  height: 56px;
  opacity: 0.35;
}

.custom-cursor.on-dark {
  color: var(--accent);
  mix-blend-mode: normal;
}

.custom-cursor.on-dark::before {
  background-color: var(--white);
}

.custom-cursor.on-dark.hovering {
  color: var(--white);
}

.custom-cursor.on-dark.hovering::before {
  opacity: 0.2;
}

@media (pointer: fine) {

  html,
  body,
  a,
  button,
  input,
  select,
  textarea,
  [role="button"],
  .ed-btn-outline,
  .ed-btn-solid,
  .ed-social-card,
  .ed-logo {
    cursor: none !important;
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* ── Elementos Comuns ── */
.ed-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
}

.ed-divider {
  width: 100%;
  height: 1px;
  background: rgba(11, 61, 53, 0.1);
  margin: 2rem 0;
}

.ed-title-section {
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--primary-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

.ed-text-center {
  text-align: center;
}

/* ── Header Editorial Minimal ── */
.ed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 5vw;
  background: rgba(244, 247, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 61, 53, 0.04);
  transition: background 0.4s var(--ease-elegant), padding 0.4s var(--ease-elegant), border-color 0.4s;
}

.ed-header.scrolled {
  background: rgba(244, 247, 246, 0.96);
  padding: 0.9rem 5vw;
  border-bottom: 1px solid rgba(11, 61, 53, 0.08);
}

.ed-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.ed-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.ed-logo-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
}

.ed-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ed-logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.ed-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.ed-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.ed-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  position: relative;
}

.ed-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-elegant);
}

.ed-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ed-header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ed-btn-outline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: 1px solid var(--primary);
  border-radius: 2px;
  transition: all 0.4s var(--ease-elegant);
}

.ed-btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.ed-menu-toggle {
  display: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Menu */
.ed-menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-light);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.8s var(--ease-elegant);
}

.ed-menu-mobile.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.ed-menu-mobile nav ul {
  list-style: none;
  text-align: center;
}

.ed-menu-mobile nav a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--primary-dark);
  text-decoration: none;
  display: block;
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.ed-menu-mobile.active nav a {
  opacity: 1;
  transform: translateY(0);
}

/* ── ScrollSmoother Wrappers ── */
#smooth-wrapper {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#smooth-content {
  overflow: visible;
  width: 100%;
  position: relative;
  z-index: 2;
}

#music-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Hero Section (Editorial) ── */
.ed-hero {
  padding: 130px 5vw 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8vw;
  align-items: center;
  width: 100%;
}

.ed-hero-text {
  position: relative;
  z-index: 2;
}

.ed-overline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 2rem;
}

.ed-title-monumental {
  font-size: clamp(2.5rem, 5.2vw, 5.8rem);
  line-height: 0.95;
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
}

.ed-word {
  display: inline-block;
  overflow: hidden;
}

.ed-italic {
  font-style: italic;
  color: var(--primary);
}

.word-wrap {
  display: inline-block;
  white-space: nowrap;
}

.ed-hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-light);
  max-width: 450px;
  margin-bottom: 3.5rem;
}

.ed-hero-actions {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.ed-btn-solid {
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.4s var(--ease-elegant), transform 0.4s var(--ease-elegant);
}

.ed-btn-solid:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.ed-link-underline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.ed-link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transition: transform 0.4s var(--ease-elegant);
  transform-origin: right;
}

.ed-link-underline:hover::after {
  transform: scaleX(0);
}

.ed-hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ed-hero-image-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  max-height: 60vh;
}

.ed-frame {
  position: relative;
  overflow: hidden;
  background: #EAECEB;
  border-radius: 2px;
}

.ed-frame-hero {
  width: 100%;
  height: 100%;
}

.ed-img-reveal {
  width: 100%;
  height: 100%;
}

.ed-img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.ed-plaque {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.2rem 2rem;
  border: 1px solid rgba(11, 61, 53, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.ed-plaque-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ed-plaque-1 {
  bottom: -20px;
  left: -45px;
}

.ed-plaque-2 {
  top: 30px;
  right: -45px;
}

.ed-plaque-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--accent);
  line-height: 1;
  font-style: italic;
}

.ed-plaque-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 0.4rem;
  font-weight: 500;
}


/* ── About Section ── */
.ed-about {
  padding: 10vw 5vw;
  max-width: 1440px;
  margin: 0 auto;
}

.ed-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}

.ed-about-image-wrapper {
  position: relative;
}

.ed-about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  z-index: -1;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.8s var(--ease-elegant);
}

.ed-about-image-wrapper:hover::before {
  transform: translate(5px, 5px);
}

.ed-frame-about {
  aspect-ratio: 4/5;
}

.ed-about-caption {
  position: absolute;
  bottom: -20px;
  left: 5vw;
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  white-space: nowrap;
}

.ed-about-content {
  padding-right: 2vw;
}

.ed-about-body p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.ed-about-body p:first-child {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.6;
  color: var(--primary-dark);
  font-style: italic;
}

/* Capitular (Drop Cap) Editorial */
.ed-about-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 500;
  color: var(--accent);
  float: left;
  line-height: 0.8;
  margin-top: 0.12rem;
  margin-right: 0.8rem;
  font-style: italic;
}

/* Suporte à animação de parágrafos */

.ed-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 2rem;
  position: relative;
}

.ed-link-arrow::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-elegant);
}

.ed-link-arrow:hover::after {
  transform: scaleX(1);
}

.ed-link-arrow .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-elegant);
}

@keyframes arrowWiggle {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

.ed-link-arrow:hover .arrow {
  animation: arrowWiggle 1s infinite var(--ease-elegant);
}


/* ── Testimonials (Museum Exhibition Style) ── */
.ed-testimonials {
  padding: 10vw 5vw;
}

.ed-testimonial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vw;
  margin-top: 6rem;
}

.ed-testimonial-item {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(11, 61, 53, 0.2);
}

.ed-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: -3.5rem;
  left: 0;
  line-height: 1;
  opacity: 0.4;
}

.ed-testimonial-item p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  font-style: italic;
}

.ed-author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 600;
}


/* ── Marquee Editorial Ticker ── */
.ed-marquee-wrapper {
  padding: 4rem 0;
  border-top: 1px solid rgba(11, 61, 53, 0.1);
  border-bottom: 1px solid rgba(11, 61, 53, 0.1);
  overflow: hidden;
}

.ed-marquee {
  display: flex;
  white-space: nowrap;
}

.ed-marquee-inner {
  display: flex;
  animation: edMarquee 35s linear infinite;
}

.ed-marquee-inner span {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-dark);
  margin-right: 2rem;
}

@keyframes edMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* ── Social Network (Minimal) ── */
.ed-social {
  padding: 10vw 5vw;
  background: var(--primary-dark);
  color: var(--white);
}

.ed-social .ed-title-section {
  color: var(--white);
}

.ed-social-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1440px;
  margin: 0 auto;
}

.ed-social-text p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
  margin-top: 1.5rem;
}

.ed-social-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ed-social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
  transition: background 0.4s, color 0.4s;
}

.ed-social-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ed-social-icon {
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease-elegant);
}

.ed-social-card:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.ed-social-card:hover .ed-social-icon {
  transform: translate(5px, -5px);
}


/* ── Footer Minimalista ── */
.ed-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0 5vw 2rem;
}

.ed-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4vw;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.ed-footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.ed-footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background-color: var(--white);
}

.ed-footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 350px;
}

.ed-footer-navs {
  display: flex;
  gap: 6vw;
  justify-content: flex-end;
}

.ed-f-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.ed-f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ed-f-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.4s;
}

.ed-f-col a:hover {
  color: var(--white);
}

.ed-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1440px;
  margin: 0 auto;
}


/* ── Responsividade Aprimorada ── */

@media (max-width: 1200px) {
  .ed-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
  }
}

@media (max-width: 1024px) {
  .ed-hero {
    padding-top: 140px;
  }

  .ed-hero-grid,
  .ed-about-grid {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .ed-hero-text {
    padding-top: 1.5rem;
    order: 1;
  }

  .ed-hero-visual {
    order: 2;
    margin-top: 2rem;
  }

  .ed-hero-image-container {
    width: 80%;
    max-width: 380px;
    margin: 0 auto;
  }

  .ed-plaque-1 {
    left: -25px;
    bottom: -15px;
  }

  .ed-plaque-2 {
    right: -25px;
    top: 15px;
  }

  .ed-testimonial-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .ed-social-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .ed-social-links {
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
  }

  .ed-footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .ed-footer-navs {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {

  .ed-nav,
  .ed-btn-outline {
    display: none;
  }

  .ed-menu-toggle {
    display: block;
  }

  .ed-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .ed-title-monumental {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 1.5rem;
  }

  .ed-hero-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
  }

  .ed-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .ed-hero-image-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
  }

  .ed-frame-hero {
    aspect-ratio: 4/5;
    height: auto;
    width: 100%;
  }

  .ed-plaque {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(11, 61, 53, 0.1);
    margin-top: 1rem;
    width: 100%;
    padding: 1.2rem 1.5rem;
  }

  .ed-about {
    padding: 4rem 5vw;
  }

  .ed-about-caption {
    left: 0;
    bottom: -10px;
    width: 100%;
    text-align: center;
  }

  .ed-testimonials {
    padding: 4rem 5vw;
  }

  .ed-testimonial-gallery {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
  }

  .ed-social {
    padding: 4rem 5vw;
  }

  .ed-social-links {
    flex-direction: column;
  }

  .ed-social-card {
    width: 100%;
  }

  .ed-footer-navs {
    gap: 3rem;
  }

  .ed-footer-grid {
    padding-top: 4rem;
  }
}