/* ============================================================
   PortSoy — Site institucional
   Estilos extraídos de referencia.html (mantidos 1:1).
   ============================================================ */

:root {
  --white: #ffffff;
  --off-white: #fafaf7;
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --gray-900: #2a2a2a;
  --gray-700: #4a4a4a;
  --gray-500: #757575;
  --gray-300: #d4d4d4;
  --gray-100: #ededed;
  --yellow: #ffc814;
  --yellow-deep: #e0a800;
  --yellow-soft: #fff8dc;

  --display: "Sora", -apple-system, sans-serif;
  --body: "DM Sans", -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 60px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--black); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* TOPBAR */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--display);
  font-weight: 500;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 8px; }
.topbar-left .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 200, 20, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (max-width: 720px) {
  .topbar-left span:not(:first-child) { display: none; }
}

/* NAV */
nav.main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s ease;
}
nav.main.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--display);
}
.nav-links a {
  color: var(--gray-700);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--display);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--yellow); color: var(--black); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 60px var(--gutter) 80px;
  overflow: hidden;
  background: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top left, black 30%, transparent 80%);
}
.hero-bg .yellow-blob {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 28px;
  font-family: var(--display);
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--yellow);
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 28px;
}
h1.hero-title .accent {
  color: var(--black);
  position: relative;
  display: inline-block;
  font-weight: 700;
}
h1.hero-title .accent::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--display);
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-bg {
  position: absolute;
  inset: 10%;
  background: var(--off-white);
  border-radius: 4px;
}
.hero-visual-bg::before {
  content: "";
  position: absolute;
  top: 20px; left: 20px;
  right: 20px; bottom: 20px;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-visual-tag {
  position: absolute;
  bottom: 8%;
  left: 8%;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--display);
  z-index: 3;
}
.hero-visual-tag::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--yellow);
  margin-right: 10px;
  vertical-align: middle;
}

/* STATS BAR */
.stats-bar {
  background: var(--black);
  color: var(--white);
  padding: 48px var(--gutter);
}
.stats-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
.stat-bar-item .num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
}
.stat-bar-item .num sup {
  color: var(--yellow);
  font-size: 0.45em;
  margin-left: 4px;
  vertical-align: super;
}
.stat-bar-item .label {
  font-size: 12px;
  color: var(--gray-300);
  margin-top: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--display);
  font-weight: 500;
}

/* SECTIONS */
section {
  padding: 110px var(--gutter);
  position: relative;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-family: var(--display);
}
.section-eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--yellow);
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 800px;
  margin-bottom: 24px;
}
.section-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--black);
  position: relative;
  display: inline-block;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--yellow);
  z-index: -1;
}
.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 680px;
}

/* SOBRE */
#sobre {
  background: var(--off-white);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
}
.sobre-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.sobre-text p strong {
  color: var(--black);
  font-weight: 600;
}
.sobre-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.highlight-card {
  padding: 28px;
  background: var(--white);
  border-left: 3px solid var(--yellow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.highlight-card h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
  letter-spacing: -0.01em;
}
.highlight-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* PORT GALLERY */
.port-gallery {
  background: var(--white);
  padding: 0;
}
.port-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 0;
}
@media (max-width: 900px) {
  .port-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
}
.port-img {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
}
.port-img:nth-child(1) {
  grid-row: 1 / 3;
}
@media (max-width: 900px) {
  .port-img:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
}
.port-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: grayscale(10%) contrast(1.05);
}
.port-img:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.1);
}
.port-img-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.85);
  color: var(--white);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--display);
  backdrop-filter: blur(4px);
}
.port-img-label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--yellow);
  margin-right: 8px;
  vertical-align: middle;
}

/* SERVIÇOS */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--gray-100);
  border-left: 1px solid var(--gray-100);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-item {
  padding: 48px 40px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  transition: background 0.3s;
  cursor: default;
}
.service-item:hover {
  background: var(--off-white);
}
.service-item:hover .service-num {
  color: var(--yellow-deep);
}
.service-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  display: block;
  transition: color 0.3s;
  text-transform: uppercase;
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 28px;
  color: var(--black);
}
.service-icon svg { width: 100%; height: 100%; }
.service-item h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--black);
  letter-spacing: -0.02em;
}
.service-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
}
.service-item ul {
  margin-top: 18px;
  list-style: none;
  font-size: 14px;
}
.service-item ul li {
  padding: 6px 0;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
}
.service-item ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 2px;
  background: var(--yellow);
}

/* DIFERENCIAIS */
.differentials {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.differentials::before {
  content: "";
  position: absolute;
  top: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: 0.08;
  border-radius: 50%;
}
.differentials .section-eyebrow { color: var(--yellow); }
.differentials .section-eyebrow::before { background: var(--yellow); }
.differentials .section-title { color: var(--white); }
.differentials .section-title em::after {
  height: 0.22em;
  bottom: 0.05em;
}
.differentials .section-lead { color: var(--gray-300); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--gray-900);
  margin-top: 64px;
  border: 1px solid var(--gray-900);
  position: relative;
}
@media (max-width: 720px) {
  .diff-grid { grid-template-columns: 1fr; }
}
.diff-item {
  background: var(--black);
  padding: 44px 36px;
  transition: background 0.3s;
}
.diff-item:hover {
  background: var(--ink);
}
.diff-item-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}
.diff-number {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.04em;
}
.diff-item h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.diff-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-300);
  padding-left: 56px;
}
@media (max-width: 720px) {
  .diff-item p { padding-left: 0; }
}

/* COMPROMISSO */
.commitment {
  background: var(--off-white);
}
.commitment-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .commitment-wrapper { grid-template-columns: 1fr; gap: 48px; }
}
.commitment-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black);
}
.commitment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05) brightness(0.85);
}
.commitment-visual::before {
  content: "";
  position: absolute;
  top: 20px; right: 20px;
  width: 80px; height: 80px;
  border: 2px solid var(--yellow);
  z-index: 2;
}
.commitment-visual .badge {
  position: absolute;
  bottom: 32px; left: 32px;
  background: var(--yellow);
  color: var(--black);
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  font-family: var(--display);
}

.norms-list {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}
.norm-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}
.norm-tag:hover {
  border-color: var(--yellow);
  transform: translateX(4px);
}
.norm-tag .code {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--yellow-deep);
  background: var(--yellow-soft);
  padding: 6px 12px;
  letter-spacing: 0.06em;
  min-width: 84px;
  text-align: center;
}
.norm-tag .desc {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* CTA */
.cta-section {
  background: var(--white);
  text-align: center;
  padding: 120px var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.cta-section h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--black);
}
.cta-section h2 em {
  font-style: normal;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.cta-section h2 em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
}
.cta-section p {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 40px;
  line-height: 1.65;
}

/* CONTACT CHANNELS */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: left;
}
@media (max-width: 720px) {
  .contact-channels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .contact-channels { grid-template-columns: 1fr; }
}
.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--yellow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.contact-channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}
.contact-channel-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.contact-channel-value {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  word-break: break-word;
}

/* FOOTER */
footer.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 80px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-900);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-col a {
  color: var(--gray-300);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal { letter-spacing: 0.04em; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
