/* ═══════════════════════════════════════
   RSantos Design — Shared Styles
   nav · footer · reset · utilities
═══════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #17181c;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
  width: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }

/* ─── TEXT SELECTION ─── */
::selection { background: rgba(255,255,255,.14); color: #fff; }

/* ─── FOCUS ACCESSIBILITY ─── */
:focus { outline: none; }
:focus-visible {
  outline: 1.5px solid rgba(255,255,255,.45);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── PAGE ENTRANCE ─── */
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
main { animation: pageFadeIn .55s cubic-bezier(.2,0,0,1) both; }


/* ─── CONTENT CONTAINER ─── */
.inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .inner { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 600px) {
  .inner { padding-left: 20px; padding-right: 20px; }
}

/* ─── NAV ─── */
.nav {
  position: relative;
  z-index: 100;
  padding: 36px 40px 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(23,24,28,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  transition: color .3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover { color: #fff; }
.nav-link .arrow { font-size: 8px; opacity: .5; transition: transform .3s; }
.nav-item:hover .nav-link .arrow { transform: rotate(180deg); }
/* Invisible hover bridge so mouse can travel from nav link to dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 200px;
  background: rgba(23,24,28,.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.06);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  transition-delay: 0s;
  transform: translateX(-50%) translateY(-6px);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .2s, background .2s;
}
.nav-dropdown a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-lang a { color: rgba(255,255,255,.35); transition: color .3s; }
.nav-lang a:hover, .nav-lang a.active { color: rgba(255,255,255,.8); }
.nav-lang span { color: rgba(255,255,255,.2); }
.nav-social { display: flex; align-items: center; gap: 14px; }
.nav-social a { display: flex; align-items: center; opacity: .4; transition: opacity .3s; }
.nav-social a:hover { opacity: 1; }
.nav-social svg { width: 15px; height: 15px; fill: #fff; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span { display: block; width: 22px; height: 1px; background: rgba(255,255,255,.7); transition: all .3s; }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,24,28,.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .3s;
  display: block;
}
.nav-mobile-link:hover { color: #fff; }
.nav-mobile-sub { padding-left: 16px; }
.nav-mobile-sub a {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 10px 0;
  transition: color .3s;
}
.nav-mobile-sub a:hover { color: rgba(255,255,255,.7); }
.nav-mobile-lang {
  margin-top: auto;
  display: flex;
  gap: 16px;
  padding-top: 32px;
}
.nav-mobile-lang a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  transition: color .3s;
}
.nav-mobile-lang a.active, .nav-mobile-lang a:hover { color: rgba(255,255,255,.75); }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #17181c;
}
.footer-logo img { height: 140px; width: auto; opacity: .9; }
.footer-copy {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,.22);
  text-align: center;
}
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
  white-space: nowrap;
}
.footer-social-btn:hover {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
}
.footer-social-btn svg { width: 13px; height: 13px; flex-shrink: 0; fill: currentColor; }
.behance-icon { display: block; width: 13px; height: 13px; opacity: .6; transition: opacity .25s; }
.footer-social-btn:hover .behance-icon { opacity: 1; }
.footer-location {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}

/* ─── SECTION TITLE DIVIDER ─── */
.section-title {
  display: grid;
  grid-template-columns: minmax(60px,1fr) auto minmax(60px,1fr);
  align-items: center;
  column-gap: 24px;
  max-width: 1440px;
  margin: 30px auto;
  padding: 0 80px;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.section-title::before, .section-title::after { content: ""; display: block; height: 1px; width: 100%; }
.section-title::before { grid-column: 1; background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.35) 100%); }
.section-title::after  { grid-column: 3; background: linear-gradient(to left,  transparent 0%, rgba(255,255,255,.35) 100%); }
.section-title span { grid-column: 2; display: block; text-align: center; line-height: 1.5; white-space: nowrap; }

/* ─── CLIENTS GRID ─── */
.clients {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px 60px;
  display: flex;
  justify-content: center;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px 60px;
  align-items: center;
  width: 100%;
  max-width: 900px;
}
.client { display: flex; align-items: center; justify-content: center; opacity: .5; transition: opacity .35s; }
.client img { max-width: 120px; max-height: 42px; width: auto; height: auto; filter: brightness(0) invert(1); }
.client:hover { opacity: 1; }

/* ─── CTA HORIZONTAL ─── */
:root { --expo: cubic-bezier(0.16,1,0.3,1); }

.cta-section-h {
  width: 100%;
  padding: 100px max(80px, calc((100vw - 1280px) / 2));
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
/* Background photo — full viewport width */
.cta-section-h::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/ui/capa-design-3-copy-2-mk34dbgemzsjgkz3-NP1udv6raOMXjKe4.jpg');
  background-size: cover;
  background-position: center;
  opacity: .38;
  z-index: 0;
  pointer-events: none;
}
/* Top/bottom vignette only — no side borders */
.cta-section-h::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,18,22,.5) 0%, transparent 30%, transparent 70%, rgba(17,18,22,.5) 100%);
  z-index: 0;
  pointer-events: none;
}
/* All children above the BG layers */
.cta-section-h > * { position: relative; z-index: 1; }
.cta-text-h { display: flex; flex-direction: column; gap: 14px; max-width: 560px; opacity: 0; transform: translateY(24px); }
.cta-text-h.is-visible { animation: ctaReveal .9s var(--expo) forwards; }
.cta-eyebrow-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.cta-eyebrow-h::before { content: ""; width: 20px; height: 1px; background: rgba(255,255,255,.35); }
.cta-title-h { margin: 0; font-size: clamp(24px,2.4vw,38px); font-weight: 600; line-height: 1.2; letter-spacing: -0.3px; }
.cta-title-h em { font-style: normal; font-weight: 300; opacity: .65; }
.cta-body-h { margin: 0; font-size: clamp(13px,1.1vw,15px); line-height: 1.7; color: rgba(255,255,255,.5); max-width: 470px; }
.cta-action-h { flex-shrink: 0; opacity: 0; transform: translateY(24px); }
.cta-action-h.is-visible { animation: ctaReveal .9s var(--expo) .18s forwards; }
.cta-divider-h {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.14), transparent);
  opacity: 0; transition: opacity .7s ease .3s; flex-shrink: 0;
}
.cta-divider-h.is-visible { opacity: 1; }
.cta-btn-wrap-h { position: relative; display: inline-block; }
.cta-btn-wrap-h::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  animation: btnPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulse { 0%{opacity:0;transform:scale(.93);} 25%{opacity:1;} 100%{opacity:0;transform:scale(1.13);} }
.cta-btn-h {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px 17px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase;
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(4px);
  position: relative; z-index: 2;
  transition: transform .35s var(--expo), border-color .35s, background .35s, box-shadow .35s;
}
.cta-btn-h:hover { transform: translateY(-3px); border-color: #fff; background: rgba(255,255,255,.08); box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 30px rgba(255,255,255,.08); }
.cta-btn-h svg { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; transition: transform .35s; }
.cta-btn-h:hover svg { transform: translateX(2px); }
@keyframes ctaReveal { 0%{opacity:0;transform:translateY(24px);} 100%{opacity:1;transform:translateY(0);} }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .section-title { padding: 0 32px; }
  .clients { padding: 0 32px 40px; }
  .clients-grid { grid-template-columns: repeat(2,1fr); gap: 40px 32px; }
  .client img { max-width: 130px; max-height: 48px; }
  .cta-section-h { flex-direction: column; align-items: flex-start; padding: 80px 48px; gap: 24px; }
  .cta-divider-h { display: none; }
}
@media (max-width: 768px) {
  .nav { padding: 32px 20px 0; height: 90px; justify-content: center; position: relative; }
  .nav-logo img { height: 24px; }
  .nav-menu, .nav-right > :not(.nav-hamburger) { display: none; }
  .nav-hamburger { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
  .nav-right { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
  .section-title { grid-template-columns: minmax(20px,1fr) auto minmax(20px,1fr); column-gap: 10px; font-size: 9px; letter-spacing: 2.5px; padding: 0 20px; }
  .clients { padding: 0 20px 40px; margin: 20px auto; }
  .clients-grid { grid-template-columns: repeat(2,1fr); gap: 28px 16px; max-width: 100%; }
  .client img { max-width: 80px; max-height: 28px; }
  .cta-section-h { padding: 60px 24px; gap: 20px; }
  .cta-title-h { font-size: clamp(20px,5vw,28px); }
  .cta-body-h { font-size: 13px; }
  .cta-btn-h { font-size: 9.5px; padding: 14px 24px; }
  .footer { padding: 32px 20px 24px; flex-direction: column; align-items: center; text-align: center; }
  .footer-logo img { height: 160px; }
  .footer-logo   { order: 1; }
  .footer-social { order: 2; margin-top: -20px; }
  .footer-copy   { order: 3; margin-top: 8px; }
  .footer-location { order: 4; }
}
@media (max-width: 480px) {
  .section-title { font-size: 8px; letter-spacing: 2px; }
  .clients-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
}
