/* ── Shared: Container, Navbar, Footer ── */

:root {
  --petrolio:       #1a5f6e;
  --petrolio-dark:  #134856;
  --petrolio-light: #2a7d8f;
  --petrolio-pale:  #e8f4f7;
  --white:          #ffffff;
  --off-white:      #f7fafb;
  --text:           #1c2b30;
  --text-muted:     #5a7a83;
  --accent:         #e8a838;
  --border:         #d0e8ed;
  --radius:         12px;
  --shadow:         0 4px 24px rgba(26,95,110,.10);
  --shadow-lg:      0 12px 48px rgba(26,95,110,.16);
  --transition:     .3s cubic-bezier(.4,0,.2,1);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,95,110,.12);
  box-shadow: 0 2px 12px rgba(26,95,110,.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(26,95,110,.14); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--petrolio);
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo svg { margin-right: 8px; flex-shrink: 0; }
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--petrolio);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__links a:hover { color: var(--petrolio); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--petrolio) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: .875rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--petrolio-dark) !important;
  transform: translateY(-1px);
  color: var(--white) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--petrolio);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
footer {
  background: var(--petrolio-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.footer__logo svg { margin-right: 8px; flex-shrink: 0; }
.footer__logo span { color: var(--accent); }
.footer__copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: rgba(255,255,255,.8); }

/* ── Responsive navbar + footer ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 8px;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav__links.open a {
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open .nav__cta {
    margin-top: 8px;
    text-align: center;
  }
  .nav__burger { display: flex; }
}

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
