@import url('/static/css/config.css');

:root {
  --glass: rgba(255, 255, 255, 0.65);
  --border: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-section);
  color: var(--text-main);
  line-height: 1.6;
}

/* HEADER */
header {
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Libre Baskerville", serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px; /* Slightly smaller logo */
  width: auto;
  object-fit: contain;
}

.logo span {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: .9;
  color: var(--accent);
  font-weight: 500;
}

nav a {
  margin-left: 32px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

/* Botão Área do Cliente */
.btn-client-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-client-area:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* HERO COM IMAGEM */
.hero {
  padding: 120px 64px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  background:
    linear-gradient(135deg, rgba(42, 42, 104, 0.95) 0%, rgba(26, 26, 74, 0.95) 100%),
    url("https://images.unsplash.com/photo-1528747045269-390fe33c19f2?q=80&w=1200&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(42, 42, 104, 0.1);
  color: #fff;
}

.hero-text h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 52px;
  margin-bottom: 24px;
  color: #ffffff;
  line-height: 1.1;
}

.hero-text p {
  font-size: 20px;
  max-width: 520px;
  margin-bottom: 32px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 31, 48, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}


.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.glass-card h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.glass-card p {
  opacity: 0.85;
  font-size: 16px;
}


/* SEÇÕES */
.section {
  padding: 96px 64px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--primary);
}

.section p {
  max-width: 720px;
  font-size: 16px;
}

/* QUEM SOMOS – CENTRALIZADO */
.team {
  display: grid;
  grid-template-columns: repeat(2, 280px);
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.team-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  margin-bottom: 16px;
  object-fit: cover;
}

.team-card h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--primary);
}

.team-card span {
  font-size: 13px;
  opacity: .7;
}

/* SERVIÇOS */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.service {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.service h3 {
  font-family: "Libre Baskerville", serif;
  margin-bottom: 12px;
  color: var(--primary);
}

/* CONTACTOS */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
}

.contact-card h3 {
  font-family: "Libre Baskerville", serif;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-card p {
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-card form {
  display: flex;
  flex-direction: column;
}

.contact-card input,
.contact-card textarea {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.contact-card button {
  align-self: flex-start;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-card button:hover {
  background: var(--accent-hover);
}

@media(max-width:900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* FOOTER - Redesign */
.site-footer {
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 80px 0 32px;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col h4 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px; /* subtle nudge for links */
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  padding-left: 0; /* Override generic link nudge */
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom span {
    font-weight: 500;
    color: var(--accent);
}

@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE & MOBILE OPTIMIZATION */
@media (max-width: 900px) {
  /* HEADER */
  header {
    flex-direction: column;
    align-items: center;
    padding: 24px;
    text-align: center;
  }

  nav {
    margin-top: 24px;
    width: 100%;
  }

  nav a {
    margin: 0 12px;
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
  }

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    text-align: center;
    gap: 48px;
    background-position: top center;
  }

  .hero-text h1 {
    font-size: 32px; /* Smaller headline for mobile */
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto 32px auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .hero .btn {
    width: 100%;
    display: block;
    text-align: center;
  }

  .hero-card {
    padding: 32px 24px;
    margin-top: 24px;
  }

  /* SECTIONS GENERAL */
  .section {
    padding: 48px 24px;
  }

  .section h2 {
    font-size: 26px;
    text-align: center;
  }

  .section > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* GRIDS */
  .team, 
  .services, 
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  /* CARDS MOBILE */
  .team-card, 
  .service, 
  .contact-card, 
  .news-card {
    padding: 24px;
  }

  /* FOOTER MOBILE */
  .footer-col h3 {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media(max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }
}

/* NEWS SECTION */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.news-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-source {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.news-card h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.4;
}

.news-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
}

.news-date {
  color: var(--text-muted);
  font-style: italic;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.news-link:hover {
  color: var(--accent);
}

@media(max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
