:root {
  --bg-dark: #03123f;
  --bg-deep: #010817;
  --panel: rgba(17, 42, 109, 0.92);
  --panel-2: rgba(9, 26, 71, 0.96);
  --primary: #2a7dff;
  --primary-2: #1560db;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-light {
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #7fb0ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.lead {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1.05rem;
}

.hero-location {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.section-note {
  margin-top: 1.6rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(5, 20, 70, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 3;
}

.brand img {
  height: 58px;
  width: auto;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 4;
}

.main-nav > a,
.nav-dropdown-btn {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown-btn:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  min-width: 260px;
  background: rgba(10, 30, 85, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  display: none;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-switch {
  display: flex;
  gap: 0.55rem;
  position: relative;
  z-index: 3;
}

.language-switch a {
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.language-switch a.active {
  color: #fff;
  border-color: rgba(127, 176, 255, 0.6);
  background: rgba(31, 111, 255, 0.18);
}

/* Hero */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.06;
}

.hero-content-group {
  max-width: 860px;
}

.hero-side-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.hero-side-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.hero-side-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Sections */
.section-head {
  margin-bottom: 2rem;
}

.section-head h2,
#sobre h2,
#contactos h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.95rem, 3vw, 2.9rem);
  line-height: 1.15;
}

/* Cards */
.cards-grid.four,
.companies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.card,
.company-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card h3,
.company-card h3 {
  margin: 0 0 0.8rem;
}

.card p,
.company-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.company-card {
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.company-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 176, 255, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.company-card .tag {
  margin-bottom: 0.75rem;
  color: #7fb0ff;
  font-weight: 700;
}

.company-card .cta {
  display: inline-block;
  margin-top: 1rem;
  color: #a9c7ff;
  font-weight: 700;
}

/* Form */
.contact-form {
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(17, 42, 109, 0.6) 0%, rgba(9, 26, 71, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(127, 176, 255, 0.22);
  background: rgba(16, 35, 90, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  font: inherit;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: rgba(127, 176, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(31, 111, 255, 0.12);
}

.form-status {
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 0.8rem;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-address {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.82;
}

.footer-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.site-footer a:hover {
  color: #7fb0ff;
}

.foot-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid.four,
  .companies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cards-grid.four,
  .companies-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .btn {
    width: 100%;
  }

  .nav-dropdown-menu {
    min-width: 220px;
  }
}
