/**
 * ═══════════════════════════════════════════════════
 *  ATELIÊ SYMBOLON — Design System
 *  Artístico • Autoral • Contemporâneo • Profissional
 * ═══════════════════════════════════════════════════
 *
 *  Tipografia: Playfair Display + Cormorant + DM Sans
 *  Paleta: Terracota · Azul Profundo · Mostarda · Off-white · Verde Suave
 */

/* ═══════ CUSTOM PROPERTIES ═══════ */
:root {
  /* Palette — Primary */
  --terracota:       #C1694F;
  --terracota-light: #D4856B;
  --terracota-dark:  #A85840;
  --terracota-bg:    #BE6348;

  --azul:            #1A2744;
  --azul-light:      #253558;
  --azul-lighter:    #364B6E;
  --azul-surface:    #1E2D4A;

  --mostarda:        #C9993A;
  --mostarda-light:  #DABA6A;
  --mostarda-dark:   #A47D2E;
  --mostarda-glow:   rgba(201, 153, 58, 0.15);

  --offwhite:        #F7F3EE;
  --cream:           #F0EAE2;
  --cream-dark:      #E6DDD3;
  --paper:           #FDFBF8;

  --verde:           #7D8E6E;
  --verde-light:     #97A889;
  --verde-dark:      #637356;
  --verde-bg:        #6E7F60;

  /* Neutrals */
  --text-primary:    #1C1C1C;
  --text-body:       #3D3D3D;
  --text-secondary:  #6A6A6A;
  --text-muted:      #9A9A9A;
  --white:           #FEFCF9;
  --black:           #111111;

  /* Fonts */
  --font-display:  'Playfair Display', 'Georgia', serif;
  --font-accent:   'Cormorant', 'Georgia', serif;
  --font-body:     'DM Sans', 'Helvetica Neue', 'Arial', sans-serif;

  /* Spacing */
  --nav-height:          80px;
  --container-max:       1240px;
  --section-py:          140px;
  --section-py-mobile:   80px;

  /* Easing */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--offwhite);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.35s var(--ease);
}

::selection {
  background: var(--mostarda);
  color: var(--white);
}

/* ═══════ TYPOGRAPHY ═══════ */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--azul);
}

h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  color: var(--azul);
}

h4 {
  font-size: 1.05rem;
  color: var(--azul);
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--text-primary); }
em { font-style: italic; }



.text-lead--light { color: var(--white); }
.text--light { color: rgba(255,255,255,0.8); }

/* ═══════ LAYOUT ═══════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section--cream   { background: var(--cream); }
.section--offwhite { background: var(--offwhite); }

.section--azul {
  background: var(--azul);
  color: var(--offwhite);
}
.section--azul h2, .section--azul h3, .section--azul h4 { color: var(--offwhite); }

.section--terracota {
  background: var(--terracota-bg);
  color: var(--white);
}
.section--terracota h2, .section--terracota h3 { color: var(--white); }

/* ═══════ GRAIN TEXTURE ═══════ */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ═══════ ORGANIC LINES BACKGROUND ═══════ */
.organic-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.organic-line path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.5px;
}

.organic-line--1 {
  color: var(--terracota);
  opacity: 0.05;
}

.organic-line--2 {
  color: var(--mostarda);
  opacity: 0.05;
}

.organic-line--3 {
  color: var(--terracota);
  opacity: 0.05;
}

.organic-line--hero {
  color: var(--mostarda);
  opacity: 0.04;
  z-index: 1; /* Para ficar acima do fundo, mas abaixo do texto */
}

/* ═══════ SECTION HEADER ═══════ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header--left { text-align: left; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 16px;
}

.section-label--light { color: var(--mostarda-light); }
.section-label--warm  { color: var(--mostarda); }

.section-title { margin-bottom: 20px; }
.section-title--light { color: var(--offwhite); }

.section-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.section-subtitle--light { color: rgba(255,255,255,0.6); }

/* Section Numbers */
.section-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--mostarda);
  opacity: 0.06;
  position: absolute;
  top: 40px;
  right: 40px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.section-number--light {
  color: var(--offwhite);
  opacity: 0.05;
}

/* ═══════ NAVIGATION ═══════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.5s var(--ease);
}

.nav--scrolled {
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  color: var(--mostarda);
  transition: transform 0.5s var(--ease);
}

.nav-logo:hover .nav-logo-icon { transform: rotate(15deg); }

.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.nav-logo-atelie {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--offwhite);
  transition: color 0.5s var(--ease);
  opacity: 0.9;
}

.nav-logo-symbolon {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--offwhite) 0%, var(--mostarda-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav--scrolled .nav-logo-atelie {
  color: var(--azul);
}

.nav--scrolled .nav-logo-symbolon {
  background: linear-gradient(135deg, var(--mostarda-dark) 0%, var(--mostarda) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracota);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--terracota); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--azul);
  transition: all 0.4s var(--ease);
  transform-origin: center;
}

.nav-toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle--active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════ HERO ═══════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--azul);
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero-bg-shape--1 {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(201,153,58,0.08) 0%, transparent 70%);
}

.hero-bg-shape--2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(193,105,79,0.06) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
}

.hero-content--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-logo-wrapper {
  margin-bottom: 48px;
}

.hero-logo {
  width: 220px; height: auto;
  margin: 0 auto;
  color: var(--mostarda);
  opacity: 0.7;
}

.hero-title {
  margin-bottom: 40px;
}

.hero-title-line {
  display: block;
  color: var(--offwhite);
}

.hero-title-line--1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.hero-title-line--2 {
  font-size: clamp(3.6rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--offwhite) 0%, var(--mostarda-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.15em;
  line-height: 1.2;
  filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.15));
}

.hero-divider {
  width: 48px;
  height: 1.5px;
  background: var(--mostarda);
  margin: 0 auto 36px;
  opacity: 0.6;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: rgba(247, 243, 238, 0.7);
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: rgba(247,243,238,0.3);
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════ MARQUEE ═══════ */
.marquee {
  background: var(--terracota);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 0;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  padding: 0 16px;
}

.marquee-dot {
  font-size: 0.5rem !important;
  opacity: 0.5;
  padding: 0 8px !important;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════ ABOUT / O ATELIÊ ═══════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

/* Typography Helpers */
.text-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.text-lead--light {
  color: var(--offwhite);
}

.about-text p { color: var(--text-body); }

.concept-card {
  background: var(--paper);
  padding: 44px;
  position: relative;
  border-radius: 2px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 40px rgba(0,0,0,0.03);
}

.concept-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--mostarda), var(--terracota));
  border-radius: 2px 0 0 2px;
}

.concept-title {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--mostarda-dark);
  margin-bottom: 16px;
}

.concept-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Highlight Quote */
.highlight-quote {
  text-align: center;
  padding: 56px 0;
  margin-bottom: 48px;
}

.highlight-quote-line {
  width: 40px; height: 1px;
  background: var(--mostarda);
  margin: 0 auto;
  opacity: 0.5;
}

.highlight-quote-line:first-child { margin-bottom: 32px; }
.highlight-quote-line:last-child  { margin-top: 32px; }

.highlight-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--azul);
}

/* Positioning pairs */
.positioning-pairs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pair {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 20px;
  border: 1px solid var(--cream-dark);
  border-radius: 32px;
  transition: all 0.35s var(--ease);
}

.pair em {
  color: var(--terracota);
  font-style: normal;
  font-weight: 500;
}

.pair:hover {
  border-color: var(--terracota);
  color: var(--terracota);
}

/* ═══════ QUOTE BANDS ═══════ */
.band {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.band--mostarda { background: var(--mostarda); }
.band--azul     { background: var(--azul); }
.band--verde    { background: var(--verde-bg); }

.band-quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.band-quote p {
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 0;
}

.band-quote footer {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ═══════ RAFAELA — SPLIT SECTION ═══════ */
.section--split {
  padding: var(--section-py) 0;
  position: relative;
  overflow: visible;
}

.split-bg-dark {
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: var(--azul);
}

.split-bg-light {
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: var(--offwhite);
}

.section--split .container { z-index: 2; }

.section--split .section-header {
  position: relative;
  z-index: 2;
}

.rafaela-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
  position: relative;
  z-index: 2;
}

.photo-frame {
  position: relative;
  display: inline-block;
}

.photo-placeholder, .photo-image {
  width: 280px; height: 370px;
  background: linear-gradient(160deg, var(--azul-lighter) 0%, var(--azul) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-image {
  object-fit: cover;
  display: block;
}

.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  color: rgba(201,153,58,0.12);
  letter-spacing: 0.1em;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 6px
  );
}

.photo-accent {
  position: absolute;
  width: 100%; height: 100%;
  top: 14px; left: 14px;
  border: 1px solid var(--mostarda);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.3;
}

.photo-accent--2 {
  top: 28px; left: 28px;
  border-color: var(--terracota);
  opacity: 0.15;
}

.rafaela-role {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.7;
}

.rafaela-bio {
  position: relative;
  z-index: 2;
}

.rafaela-bio p { color: var(--text-body); }

/* ═══════ CURRICULUM COMPACT ═══════ */
.curriculum-compact {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}

.curriculum-convergence {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--azul);
  margin-bottom: 40px;
  line-height: 1.6;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.curriculum-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mostarda);
  margin-bottom: 24px;
}

.curr-item, .curr-diff {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.curr-item:last-child, .curr-diff:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.curr-inst, .curr-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--terracota);
  min-width: 45px;
}

.curr-num {
  font-style: italic;
}

.curr-item h4, .curr-diff h4 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}

/* ═══════ SERVICES / ATUAÇÃO (TABS) ═══════ */
.tabs-wrapper {
  display: flex;
  gap: 64px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.03);
  padding: 40px;
  border: 1px solid var(--cream-dark);
}

.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
  border-right: 1px solid var(--cream-dark);
  padding-right: 40px;
}

.tab-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 16px 0;
  position: relative;
  transition: all 0.4s var(--ease);
}

.tab-num {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 12px;
  font-family: var(--font-body);
}

.tab-btn::after {
  content: '';
  position: absolute;
  right: -41px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--terracota);
  transition: height 0.4s var(--ease);
}

.tab-btn:hover { color: var(--terracota); }
.tab-btn.active { color: var(--terracota); }
.tab-btn.active::after { height: 60%; }

.tabs-content {
  flex: 1;
  position: relative;
}

.tab-panel {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.tab-panel.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.tab-panel-image-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tab-panel-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.tab-panel-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.tab-panel-text p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.service-tags span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  background: var(--cream);
  color: var(--text-secondary);
  border-radius: 20px;
}

.service-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracota);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.service-cta::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--terracota);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-cta:hover { color: var(--terracota-dark); }
.service-cta:hover::after { transform: scaleX(1); }

.groups-list { margin-bottom: 32px; }
.group-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 0.9rem;
  color: var(--text-body);
}
.group-item:last-child { border-bottom: none; }
.group-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azul);
}

@media (max-width: 1024px) {
  .tabs-wrapper { flex-direction: column; gap: 40px; padding: 32px; }
  .tabs-list { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--cream-dark); padding-right: 0; padding-bottom: 24px; min-width: 100%; gap: 12px; }
  .tab-btn { padding: 8px 16px; border: 1px solid var(--cream-dark); border-radius: 20px; font-size: 1rem; }
  .tab-num { display: none; }
  .tab-btn::after { display: none; }
  .tab-btn.active { background: var(--terracota); color: var(--white); border-color: var(--terracota); }
  .tab-panel { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .tabs-wrapper { padding: 24px; border-radius: 2px; }
  .tab-panel-text h3 { font-size: 1.5rem; }
}

/* ═══════ VIVÊNCIAS ═══════ */
.vivencias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.vivencia-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 40px;
}

.vivencia-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.vivencia-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.vivencia-specs span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  color: rgba(255,255,255,0.8);
}

.vivencia-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  border-radius: 3px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--terracota);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracota-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(193,105,79,0.3);
}

.btn--light {
  background: var(--white);
  color: var(--terracota);
}

.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* ═══════ INSTITUIÇÕES ═══════ */
.inst-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.inst-text p { color: var(--text-body); }

.inst-audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.audience-tag {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 8px 22px;
  border: 1px solid var(--cream-dark);
  border-radius: 28px;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease);
}

.audience-tag:hover {
  border-color: var(--verde);
  color: var(--verde-dark);
  background: rgba(125,142,110,0.06);
}

.inst-cta-wrapper { text-align: center; }

/* ═══════ GALERIA ═══════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  border-radius: 3px;
  overflow: hidden;
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.7s var(--ease);
}

.gallery-placeholder:hover { transform: scale(1.04); }

.gallery-placeholder span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  z-index: 2;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  transition: all 0.4s var(--ease);
}

.gallery-placeholder:hover span {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  letter-spacing: 0.18em;
}

/* Each gallery placeholder — unique compositions using all palette colors */
.gp-1 { background: linear-gradient(150deg, var(--terracota) 0%, var(--azul) 100%); }
.gp-1::before { content:''; position:absolute; width:70%; height:90%; top:5%; right:-15%; border-radius:50%; background:rgba(201,153,58,0.15); }

.gp-2 { background: linear-gradient(180deg, var(--azul) 0%, var(--azul-lighter) 100%); }
.gp-2::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent,transparent 10px,rgba(201,153,58,0.08) 10px,rgba(201,153,58,0.08) 12px); }

.gp-3 { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-dark) 100%); }
.gp-3::before { content:''; position:absolute; width:80%; height:80%; top:10%; left:10%; border:1.5px solid rgba(255,255,255,0.1); border-radius:42% 58% 48% 52%/56% 40% 60% 44%; }

.gp-4 { background: linear-gradient(120deg, var(--cream-dark) 0%, var(--cream) 50%, var(--offwhite) 100%); }
.gp-4::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 25% 50%,rgba(193,105,79,0.12) 0%,transparent 50%), radial-gradient(circle at 75% 40%,rgba(26,39,68,0.08) 0%,transparent 50%), radial-gradient(circle at 55% 80%,rgba(201,153,58,0.1) 0%,transparent 40%); }
.gp-4 span { color: var(--text-secondary); border-color: var(--text-muted); }
.gp-4:hover span { color: var(--terracota); border-color: var(--terracota); background:rgba(193,105,79,0.06); }

.gp-5 { background: linear-gradient(200deg, var(--mostarda) 0%, var(--terracota) 100%); }
.gp-5::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 14px,rgba(0,0,0,0.03) 14px,rgba(0,0,0,0.03) 16px); }

.gp-6 { background: linear-gradient(170deg, var(--azul) 0%, var(--terracota-dark) 100%); }
.gp-6::before { content:''; position:absolute; width:110px; height:110px; top:50%; left:50%; transform:translate(-50%,-50%); border:1px solid rgba(201,153,58,0.25); border-radius:50%; }
.gp-6::after  { content:''; position:absolute; width:60px; height:60px; top:50%; left:50%; transform:translate(-50%,-50%); border:1px solid rgba(201,153,58,0.15); border-radius:50%; }

.gp-7 { background: linear-gradient(135deg, var(--terracota-light) 0%, var(--mostarda-light) 100%); }
.gp-8 { background: linear-gradient(150deg, var(--verde-dark) 0%, var(--azul) 100%); }
.gp-8::before { content:''; position:absolute; width:85%; height:85%; top:7.5%; left:7.5%; border-radius:50%; border:1px solid rgba(255,255,255,0.08); }

/* ═══════ CONTATO ═══════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 72px;
  align-items: start;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 12px;
  color: var(--offwhite);
  transition: all 0.4s var(--ease);
}

.whatsapp-btn:hover {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.4);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.whatsapp-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-btn strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--offwhite);
}

.whatsapp-btn span {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

.wa-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: #25D366;
}

.contact-info { padding-top: 8px; }

.contact-detail {
  margin-bottom: 32px;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mostarda);
  margin-bottom: 8px;
}

.contact-detail a {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--offwhite);
}

.contact-detail a:hover { color: var(--mostarda-light); }

.contact-detail p { color: rgba(255,255,255,0.7); }

.contact-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-note p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--black);
  color: var(--offwhite);
  padding: 72px 0 40px;
  text-align: center;
}

.footer-logo {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  color: var(--mostarda);
  opacity: 0.7;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(218, 186, 106, 0.9);
  margin-bottom: 24px;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.25);
}

.footer-info span { position: relative; }
.footer-info span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -16px;
  opacity: 0.5;
}

/* ═══════ SCROLL ANIMATIONS ═══════ */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */

.curriculum-compact.visible .curr-item,
.curriculum-compact.visible .curr-diff {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
}
.curriculum-compact.visible .curr-item:nth-child(1) { animation-delay: 0s; }
.curriculum-compact.visible .curr-item:nth-child(2) { animation-delay: 0.1s; }
.curriculum-compact.visible .curr-item:nth-child(3) { animation-delay: 0.2s; }
.curriculum-compact.visible .curr-item:nth-child(4) { animation-delay: 0.3s; }

.curriculum-compact.visible .curr-diff:nth-child(1) { animation-delay: 0.1s; }
.curriculum-compact.visible .curr-diff:nth-child(2) { animation-delay: 0.2s; }
.curriculum-compact.visible .curr-diff:nth-child(3) { animation-delay: 0.3s; }
.curriculum-compact.visible .curr-diff:nth-child(4) { animation-delay: 0.4s; }

.differentials.visible .differential {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
}
.differentials.visible .differential:nth-child(1) { animation-delay: 0s; }
.differentials.visible .differential:nth-child(2) { animation-delay: 0.1s; }
.differentials.visible .differential:nth-child(3) { animation-delay: 0.2s; }
.differentials.visible .differential:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════ RESPONSIVE — TABLET ═══════ */
@media (max-width: 1024px) {
  :root { --section-py: 100px; }

  .container { padding: 0 28px; }
  .section-number { font-size: 7rem; right: 28px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .split-bg-dark { width: 100%; height: 100%; }
  .split-bg-light { display: none; }
  .rafaela-bio p { color: rgba(255, 255, 255, 0.85); }
  .rafaela-bio .text-lead { color: var(--white); }

  .section--split .section-header { text-align: center; }
  .section-header--left { text-align: center; }

  .rafaela-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .photo-frame { display: flex; flex-direction: column; align-items: center; }
  
  /* Curriculum Compact for mobile (dark background adaptation) */
  .curriculum-compact { border-top-color: rgba(255, 255, 255, 0.1); text-align: left; }
  .curriculum-convergence { color: var(--mostarda-light); }
  .curr-item h4, .curr-diff h4 { color: rgba(255, 255, 255, 0.9); }
  .curr-item, .curr-diff { border-bottom-color: rgba(255, 255, 255, 0.05); }
  .vivencias-grid { grid-template-columns: 1fr; gap: 36px; }
  .inst-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ═══════ RESPONSIVE — MOBILE ═══════ */
@media (max-width: 768px) {
  :root { --section-py: 72px; --nav-height: 64px; }

  .container { padding: 0 20px; }
  .section-number { font-size: 5rem; top: 20px; right: 20px; }

  /* Mobile Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: var(--azul);
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
    z-index: 999;
  }

  .nav-links--open { opacity: 1; visibility: visible; }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--offwhite);
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.35s, transform 0.35s, color 0.3s;
  }

  .nav-links--open a { opacity: 1; transform: translateY(0); }
  .nav-links--open a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links--open a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links--open a:nth-child(3) { transition-delay: 0.15s; }
  .nav-links--open a:nth-child(4) { transition-delay: 0.2s; }
  .nav-links--open a:nth-child(5) { transition-delay: 0.25s; }
  .nav-links--open a:nth-child(6) { transition-delay: 0.3s; }
  .nav-links--open a:nth-child(7) { transition-delay: 0.35s; }

  .nav-links a:hover,
  .nav-links a.active { color: var(--mostarda); }
  .nav-links a::after { display: none; }

  .nav-toggle--active span { background: var(--offwhite); }

  /* Hero mobile */
  .hero-logo { width: 80px; }
  .hero-logo-wrapper { margin-bottom: 32px; }
  .hero-title-line--1 { font-size: 2.2rem; }
  .hero-title-line--2 { font-size: 3rem; }
  .hero-tagline { font-size: 1rem; }

  /* Sections mobile */
  .section-header { margin-bottom: 44px; }
  .highlight-quote p { font-size: 1.2rem; }

  .positioning-pairs { gap: 8px; }
  .pair { font-size: 0.65rem; padding: 6px 14px; }

  .photo-placeholder, .photo-image { width: 200px; height: 260px; }
  .photo-placeholder span { font-size: 3rem; }
  
  /* Fix accents overlapping text on mobile */
  .photo-accent { top: 8px; left: 8px; }
  .photo-accent--2 { top: 16px; left: 16px; }
  .rafaela-role { margin-top: 32px; font-size: 0.85rem; }

  .curriculum-grid { grid-template-columns: 1fr; gap: 40px; }

  .service-num { font-size: 2rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item--tall { grid-row: span 1; }

  .band { padding: 48px 0; }
  .band-quote p { font-size: 1.15rem; }

  .whatsapp-btn { padding: 16px 18px; gap: 12px; }

  .footer-info { flex-direction: column; gap: 6px; }
  .footer-info span::after { display: none !important; }
}

@media (max-width: 480px) {
  .hero-title-line--1 { font-size: 1.8rem; }
  .hero-title-line--2 { font-size: 2.4rem; }
  .gallery-grid { grid-auto-rows: 130px; }
  .differentials { grid-template-columns: 1fr; }
}

/* ═══════ PRINT ═══════ */
@media print {
  .nav, .hero-scroll, .marquee, .grain, .hero-bg-shape, .section-number { display: none; }
  .hero { min-height: auto; padding: 48px 0; }
  .section { padding: 48px 0; break-inside: avoid; }
  body { font-size: 11pt; color: #000; }
}
/* ------- RECTANGULAR SHAPES & IMAGES ------- */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.service-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  transition: transform 0.8s ease;
  z-index: 0;
}
.service-card:hover .service-bg-img {
  transform: scale(1.05);
  opacity: 0.3;
}
.service-card-content {
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}
.custom-logo {
  object-fit: contain;
}
