/* ============================================================
   UNIP Afogados da Ingazeira — Estilo Principal
   Design System: Moderno, Elegante, Responsivo
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1B3A6B;   /* Azul UNIP profundo */
  --primary-light: #2655A0;
  --accent:        #F0A500;   /* Dourado destaque */
  --accent-light:  #FFB92E;
  --dark:          #0D1B2A;
  --dark-2:        #1A2B3C;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --bg-light:      #f8fafc;
  --bg-gray:       #f1f5f9;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.15);
  --shadow-xl:     0 20px 60px rgba(0,0,0,.20);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- SECTION LAYOUT ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--dark); }
.section-gray  { background: var(--bg-gray); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  margin: .5rem 0 1rem;
  line-height: 1.2;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.7); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(27,58,107,.1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.section-dark .section-tag {
  background: rgba(240,165,0,.15);
  color: var(--accent);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,58,107,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,58,107,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.btn-nav {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: .85rem;
  padding: .6rem 1.4rem;
}
.btn-nav:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13,27,42,.95);
  backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo img { height: 46px; filter: brightness(0) invert(1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: .25rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 40%, #1b3a6b 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(38,85,160,.4), transparent),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(240,165,0,.12), transparent);
  pointer-events: none;
}

/* Geometric decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: conic-gradient(from 180deg, rgba(38,85,160,.35), rgba(27,58,107,.1), transparent 60%);
  border-radius: 50%;
  filter: blur(1px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -8%;
  width: 450px; height: 450px;
  background: conic-gradient(from 0deg, rgba(240,165,0,.15), transparent 50%);
  border-radius: 50%;
}

.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(240,165,0,.15);
  border: 1px solid rgba(240,165,0,.3);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: .04em;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.15);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: color .3s;
}
.hero-scroll a:hover { color: rgba(255,255,255,.8); }
.bounce { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- CARDS GRID ---------- */
.cards-grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- CARD MODAL ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-modal { position: relative; overflow: hidden; }
.card-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.card-ead::before  { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.card-flex::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

.card-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.card-ead  .card-icon-wrap { background: rgba(27,58,107,.1);  color: var(--primary); }
.card-flex .card-icon-wrap { background: rgba(240,165,0,.12); color: var(--accent);  }

.card-modal-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--bg-gray);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 100px;
  letter-spacing: .06em;
}

.card-modal h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--dark);
}
.card-modal p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.card-list { display: flex; flex-direction: column; gap: .6rem; }
.card-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text);
}
.card-list li i { color: #22c55e; font-size: .75rem; }

/* ---------- CARD AREA ---------- */
.card-area {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
}
.card-area:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(240,165,0,.4);
}
.area-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(240,165,0,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--accent);
  transition: var(--transition);
}
.card-area:hover .area-icon {
  background: var(--accent);
  color: var(--dark);
  transform: scale(1.1);
}
.card-area h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--white);
}
.card-area p { color: rgba(255,255,255,.6); font-size: .9rem; }

.cta-center { text-align: center; margin-top: 3rem; }

/* ---------- SOBRE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}
.about-img-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
}
.about-img-badge i {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-content .section-tag { margin-bottom: .75rem; }
.about-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-content > p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-pillars { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pillar:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pillar > i {
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .2rem;
}
.pillar h5 {
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: .2rem;
}
.pillar p {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-main img { min-height: 360px; }
.gallery-item:not(.gallery-main) img { height: 175px; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.contact-card > i {
  width: 44px; height: 44px;
  background: rgba(27,58,107,.08);
  color: var(--primary);
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h5 { font-weight: 600; font-size: .9rem; color: var(--dark); margin-bottom: .3rem; }
.contact-card a, .contact-card span { color: var(--text-muted); font-size: .9rem; }
.contact-card a:hover { color: var(--primary); }

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 600; font-size: .88rem; color: var(--dark); }
.form-group input, .form-group textarea {
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- CTA BANNER ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1d5fba 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(240,165,0,.18), transparent);
}
.cta-content {
  position: relative;
  text-align: center;
  color: var(--white);
}
.cta-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 42px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-cnpj { font-size: .8rem; color: rgba(255,255,255,.3); margin-top: .5rem; }

.footer-links h6 {
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin-bottom: .75rem;
  transition: color .25s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links a i { margin-right: .4rem; width: 14px; }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  font-size: 1.6rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid     { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-main   { grid-column: 1 / 3; grid-row: auto; }
  .gallery-item:not(.gallery-main) img { height: 200px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Navbar mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--dark);
    padding: 90px 2rem 2rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.1rem;
  }
  .hamburger { display: flex; }
  .btn-nav { display: none; }

  .hero-content { padding-top: 80px; }
  .hero-stats { gap: 1.25rem; }
  .stat-number { font-size: 1.5rem; }

  .about-img-badge { display: none; }

  .contact-grid   { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid   { grid-template-columns: 1fr; }
  .gallery-main   { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .cols-4 { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; }
}
