@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --navy: #002B5C;
  --navy-dark: #001B3A;
  --navy-mid: #003875;
  --white: #FFFFFF;
  --gray-mid: #6F7A85;
  --gray-light: #F4F6F8;
  --gray-dark: #2F3741;
  --accent: #4A90C4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-dark);
  background: var(--gray-light);
  overflow-x: hidden;
}

/* ─── INDEX: HERO ─── */

.hero {
  min-height: 100vh;
  background: 
    linear-gradient(135deg, rgba(0,27,58,0.92) 0%, rgba(0,43,92,0.85) 50%, rgba(0,56,117,0.78) 100%),
    url('fundo-norten.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Blueprint grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Diagonal accent block */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(255,255,255,0.03);
  transform: rotate(45deg);
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Diagonal slash divider */
.diagonal-slash {
  position: absolute;
  top: 0;
  right: 38%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.18) 60%, transparent);
  transform: skewX(-8deg);
  pointer-events: none;
}

.diagonal-slash-2 {
  position: absolute;
  top: 0;
  right: calc(38% + 18px);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.10) 60%, transparent);
  transform: skewX(-8deg);
  pointer-events: none;
}

/* Corner accent */
.corner-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  border-right: 3px solid rgba(255,255,255,0.12);
  border-top: 3px solid rgba(255,255,255,0.12);
  pointer-events: none;
}

.corner-accent-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-left: 3px solid rgba(255,255,255,0.08);
  border-bottom: 3px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* ─── MAIN CONTENT ─── */
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 5;
  padding: 60px 60px 80px;
  align-items: center;
}

/* LEFT COLUMN */
.hero-left {
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-logo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.tag-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.tag-line::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.35);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.hero-subtitle span {
  color: rgba(255,255,255,0.3);
  margin: 0 8px;
}

.hero-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  border-left: 3px solid rgba(255,255,255,0.2);
  padding-left: 20px;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.phone-icon {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 2;
  stroke-linecap: round;
}

.phone-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 38px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  width: fit-content;
}

.btn-primary::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  background: var(--gray-light);
  transform: translateX(4px);
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

/* RIGHT COLUMN */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Services */
.services-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid rgba(255,255,255,0.25);
  padding: 14px 16px;
  transition: all 0.25s ease;
}

.service-card:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--white);
  transform: translateX(4px);
}

.service-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* Responsibles */
.resp-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.resp-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resp-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0,27,58,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(255,255,255,0.12);
  padding: 16px 18px;
}

.resp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

.resp-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.resp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resp-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.resp-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.resp-crea {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ─── BOTTOM STRIP ─── */
.bottom-strip {
  position: relative;
  z-index: 5;
  background: rgba(0,10,28,0.8);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.strip-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.strip-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.strip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ════════════════════════════════════
   LINKS PAGE
════════════════════════════════════ */

body.links-page {
  min-height: 100vh;
  background: 
    linear-gradient(160deg, rgba(0,27,58,0.97) 0%, rgba(0,43,92,0.95) 60%, rgba(0,20,46,0.98) 100%),
    url('fundo-norten.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

body.links-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Diagonal decorations */
body.links-page::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,0.05);
  transform: rotate(45deg);
  pointer-events: none;
}

.links-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Card wrapper */
.links-card {
  width: 100%;
  background: rgba(0,20,50,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* Corner marks on card */
.links-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.links-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-left: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.links-logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  margin-bottom: 20px;
}

.links-company {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.links-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 8px;
}

.links-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  margin: 24px 0;
}

.links-intro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* LINK BUTTONS */
.links-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.28s ease;
}

.link-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.3);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.link-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(6px);
}

.link-btn:hover::before {
  transform: scaleY(1);
}

.link-btn.primary-btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.link-btn.primary-btn::before {
  background: var(--navy);
}

.link-btn.primary-btn:hover {
  background: var(--gray-light);
}

.link-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}

.link-btn.primary-btn .link-btn-icon {
  background: rgba(0,43,92,0.12);
}

.link-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-btn-icon svg.filled {
  fill: currentColor;
  stroke: none;
}

.link-btn-text {
  flex: 1;
}

.link-btn-arrow {
  font-size: 0.85rem;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.link-btn:hover .link-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Footer on links page */
.links-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em;
}

.links-footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .header-bar {
    padding: 22px 24px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    padding: 36px 24px 60px;
    gap: 48px;
  }

  .diagonal-slash,
  .diagonal-slash-2,
  .hero::after {
    display: none;
  }

  .hero-left {
    padding-right: 0;
    gap: 20px;
  }

  .hero-logo-img {
    width: 100%;
    height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-strip {
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .hero-logo-img {
    width: 100%;
    height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .links-card {
    padding: 36px 24px 32px;
  }

  .link-btn {
    padding: 16px 18px;
    font-size: 0.78rem;
  }
}
