@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  /* Colors */
  --bg-main: #0d0d0d;
  --bg-alt: #141414;
  --bg-darker: #080808;
  
  --color-text-main: #f0ece6;
  --color-text-sec: #6b6b6b;
  --color-accent: #caba9f;
  --color-border: #2a2a2a;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Layout Spacing */
  --pad-side: 10vw;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Custom cursor */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--color-text-main);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10005;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.custom-cursor.spotlight {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

.custom-cursor.view-mode {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent);
  opacity: 0.9;
}

.custom-cursor.view-mode::after {
  content: 'VER';
  color: var(--bg-main);
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  * { cursor: auto; }
  .custom-cursor { display: none; }
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: var(--bg-main);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.loader-logo-wrap {
  position: relative;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}

.loader-logo {
  height: 36px;
}

.loader-progress {
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 1px;
  background-color: var(--color-accent);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: var(--bg-main);
  z-index: 9998;
  transform: translateX(-100%);
  pointer-events: none;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
}

.hero-title {
  font-size: 80px;
  line-height: 1.05;
  color: var(--color-text-main);
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.section-title {
  font-size: 48px;
  line-height: 1.1;
  color: var(--color-text-main);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sec);
}

.body-light {
  font-weight: 300;
  font-size: 16px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .section-title { font-size: 32px; }
}

/* Buttons */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--bg-main);
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 16px 40px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background-color: #dcd0b8; /* Lighter accent */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover::before { width: 100%; }

.btn-outline {
  border: 1px solid rgba(240, 236, 230, 0.7);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 16px 40px;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-text-main);
  background-color: rgba(240, 236, 230, 0.08);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

.link-underline {
  font-size: 13px;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; width: 0%; height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.link-underline:hover::after { width: 100%; }

/* Header */
header {
  position: fixed;
  top: 0; width: 100%;
  height: 72px;
  padding: 0 var(--pad-side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

header.scrolled {
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-header img {
  height: 36px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

/* Animations */
.reveal-text {
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Hero Section (Home) */
.hero-home {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%; left: 0; width: 100%; height: 120%;
  background-image: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
  /* Parallax via JS */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(13,13,13,0.65) 0%, rgba(13,13,13,0) 180px), linear-gradient(to right, rgba(13,13,13,0.82) 0%, rgba(13,13,13,0.55) 50%, rgba(13,13,13,0.25) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--pad-side);
  max-width: 800px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background-color: var(--color-accent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-text-sec);
}

/* Sections Global */
.section {
  padding: 120px var(--pad-side);
}

.bg-main { background-color: var(--bg-main); }
.bg-alt { background-color: var(--bg-alt); }

/* Numbers Section */
.numbers-row {
  display: flex;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.number-col {
  flex: 1;
  padding: 80px 0;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.number-col:last-child { border-right: none; }

.number-value {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
}

.number-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-sec);
  margin-top: 16px;
  display: block;
}

@media (max-width: 768px) {
  .numbers-row { flex-direction: column; }
  .number-col { border-right: none; border-bottom: 1px solid var(--color-border); padding: 40px 0;}
  .number-col:last-child { border-bottom: none; }
}

/* Split Section (Sobre) */
.split-section {
  display: flex;
  gap: 100px;
}
.split-left { width: 45%; }
.split-right { width: 55%; position: relative; }

.split-right img {
  width: calc(100% + var(--pad-side));
  height: 600px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .split-section { flex-direction: column; gap: 60px; }
  .split-left, .split-right { width: 100%; }
  .split-right img { width: 100%; height: 400px; }
}

/* Services Preview */
.service-list {
  margin-top: 60px;
  position: relative;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
}

.service-item:first-child { border-top: 1px solid var(--color-border); }

.s-num {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-accent);
  width: 60px;
}

.s-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  flex: 1;
}

.s-arrow {
  color: var(--color-text-sec);
  transition: transform 0.3s ease;
}

.service-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; width: 0%; height: 1px;
  background-color: var(--color-accent);
  transition: width 0.4s ease;
}

.service-item:hover .s-name { color: var(--color-accent); }
.service-item:hover .s-arrow { transform: translateX(8px); }
.service-item:hover::before { width: 100%; }

.service-hover-panel {
  position: fixed;
  top: 50%; right: var(--pad-side);
  transform: translateY(-50%) scale(0.95);
  width: 400px; height: 500px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  background-size: cover;
  background-position: center;
}
.service-hover-panel.visible {
  opacity: 1; transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
  .service-hover-panel { display: none !important; }
}

/* Portfolio Gallery (Home) */
.portfolio-gallery-wrap {
  margin-top: 60px;
  width: 100vw;
  margin-left: calc(var(--pad-side) * -1);
  padding-left: var(--pad-side);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.portfolio-gallery-wrap::-webkit-scrollbar { display: none; }

.portfolio-gallery {
  display: flex;
  gap: 4px;
  width: max-content;
  padding-right: var(--pad-side);
}

.portfolio-item {
  width: 480px;
  height: 600px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(13,13,13,0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-label { transform: translateY(0); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--bg-main);
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  opacity: 0.9;
}
.slider-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background-color: #dcd0b8;
}
.prev-arrow { left: 40px; }
.next-arrow { right: 40px; }

@media (max-width: 768px) {
  .portfolio-item { width: 85vw; height: 450px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
  .prev-arrow { left: 16px; }
  .next-arrow { right: 16px; }
}

/* CTA Final */
.cta-final {
  position: relative;
  padding: 160px var(--pad-side);
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  top: -10%; left: 0; width: 100%; height: 120%;
  background-image: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(13,13,13,0.8);
  z-index: 1;
}
.cta-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--color-border);
  padding: 80px var(--pad-side);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

img.footer-logo {
  width: auto;
  height: 60px;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}

.footer-col a {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-sec);
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--color-text-main); }
.footer-contact-text { font-family: var(--font-body); font-size: 12px; color: var(--color-text-sec); }

.footer-bottom {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-sec);
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 40px; }
}

/* Float WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 52px; height: 52px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 990;
  transition: transform 0.3s ease;
}
.float-whatsapp:hover { transform: scale(1.06); }
.float-whatsapp svg { width: 24px; height: 24px; fill: #ffffff; }

/* Internal Pages Hero */
.hero-internal {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 80px var(--pad-side);
  overflow: hidden;
}

.hero-internal-typo {
  padding: 140px var(--pad-side);
  background-color: var(--bg-main);
}

.hero-internal-typo .hero-title {
  font-size: 72px;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.mvv-col {
  padding: 0 40px;
  border-right: 1px solid var(--color-border);
}
.mvv-col:first-child { padding-left: 0; }
.mvv-col:last-child { border-right: none; padding-right: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card-img-wrap {
  overflow: hidden;
  position: relative;
}
.team-card-img-wrap::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(13,13,13,0);
  transition: background-color 0.5s ease;
}
.team-card:hover img { transform: scale(1.04); }
.team-card:hover .team-card-img-wrap::after { background-color: rgba(13,13,13,0.2); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv-col { border-right: none; padding: 0; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Accordion Services */
.accordion-wrap {
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.acc-num {
  font-family: var(--font-body); font-size: 13px; color: var(--color-accent);
}
.acc-title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 500; color: var(--color-text-main);
  transition: color 0.3s ease;
}
.acc-icon {
  font-size: 20px; color: var(--color-text-sec); transition: color 0.3s ease;
}

.accordion-item:hover .acc-title { color: var(--color-accent); }
.accordion-item:hover .acc-icon { color: var(--color-text-main); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.accordion-item.is-open .accordion-content {
  opacity: 1;
}

.acc-inner {
  display: flex;
  gap: 80px;
  padding-bottom: 64px;
  padding-top: 20px;
}

.acc-left { width: 55%; }
.acc-right { width: 45%; }
.acc-right img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.diff-list { list-style: none; margin-top: 28px; margin-bottom: 32px; }
.diff-list li {
  font-family: var(--font-body); font-size: 13px; color: var(--color-text-sec);
  line-height: 2.2; position: relative; padding-left: 20px;
}
.diff-list li::before { content: '—'; position: absolute; left: 0; color: var(--color-accent); }

@media (max-width: 768px) {
  .acc-inner { flex-direction: column-reverse; gap: 40px; }
  .acc-left, .acc-right { width: 100%; }
}

/* Grid Portfolio */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 60px;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.masonry-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(13,13,13,0);
  transition: background-color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-label {
  font-family: var(--font-heading);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  text-align: center;
}

.masonry-item:hover .masonry-label {
  transform: translateY(0);
  opacity: 1;
}

.masonry-item:hover img { transform: scale(1.03); }
.masonry-item:hover .masonry-overlay { background-color: rgba(13,13,13,0.5); }

@media (max-width: 1024px) { .masonry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .masonry-grid { grid-template-columns: 1fr; gap: 8px; } }

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
}

.contact-info-item { margin-bottom: 32px; }
.contact-info-label { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; color: var(--color-text-sec); margin-bottom: 8px; display: block;}
.contact-info-val { font-family: var(--font-body); font-size: 15px; color: var(--color-text-main); }

.form-group { margin-bottom: 32px; }
.form-label { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-text-sec); display: block; margin-bottom: 8px; }
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-control:focus { border-bottom-color: var(--color-accent); }
textarea.form-control { resize: vertical; min-height: 80px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: var(--bg-main);
  z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu-overlay.is-active { opacity: 1; pointer-events: all; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-nav-links a { font-family: var(--font-heading); font-size: 28px; text-transform: uppercase; }

/* Modal Gallery */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.gallery-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-content img.loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery-caption {
  color: var(--color-text-sec);
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-close, .gallery-prev, .gallery-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 32px;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 20px;
}

.gallery-close {
  top: 20px;
  right: 30px;
  font-size: 40px;
}

.gallery-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.gallery-prev:hover, .gallery-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .gallery-close { top: 10px; right: 10px; font-size: 32px; }
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
  :root { --pad-side: 6vw; }
  .section { padding: 80px var(--pad-side); }
  .hero-internal, .hero-internal-typo { padding: 100px var(--pad-side); height: auto; min-height: 50vh; }
  .hero-internal-typo .hero-title { font-size: 40px; }
  .cta-final { padding: 100px var(--pad-side); }
}

@media (max-width: 480px) {
  .btn-primary, .btn-outline { 
    width: 100%; 
    text-align: center; 
    display: block; 
    box-sizing: border-box; 
    margin-bottom: 0;
  }
  .hero-home .hero-content > div.fade-up { 
    flex-direction: column !important; 
    width: 100%; 
    gap: 12px !important; 
  }
}
