/* =============================================
   CSPAssentis — Global Stylesheet
   ============================================= */


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

:root {
  --primary:     #2c7a4b;
  --primary-dark:#1f5c38;
  --primary-light:#3a9e61;
  --accent:      #e8f5e9;
  --bg:          #f8f9fa;
  --text:        #333333;
  --text-light:  #666666;
  --white:       #ffffff;
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --shadow-hover:0 8px 30px rgba(0,0,0,.18);
  --radius:      10px;
  --transition:  .3s ease;
  --max-width:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.14);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 130px;
  transition: height .35s ease;
}

.scrolled .header-inner {
  height: 80px;
}

.logo {
  flex-shrink: 0;
  padding: 0 12px;
}

.logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: height .35s ease;
}

.scrolled .logo img {
  height: 60px;
}

/* ---- Nav ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-left {
  flex: 1;
  justify-content: flex-end;
  align-self: flex-end;
  padding-bottom: 14px;
}

.nav-right-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: flex-start;
  align-self: flex-end;
  padding-bottom: 14px;
}

.nav-menu a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--accent);
}

/* ---- Social icons ---- */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile overlay ---- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  position: fixed;
  top: 130px;
  transition: top .35s ease;
  left: 0;
  right: 0;
  padding: 20px 24px 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 999;
  border-top: 2px solid var(--accent);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.site-header.scrolled ~ .mobile-nav {
  top: 80px;
}

.mobile-nav a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

.mobile-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.mobile-social-btn {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.mobile-social-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  transition: background var(--transition), color var(--transition);
}

.contact-social-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: .9;
  max-width: 500px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* =============================================
   CAROUSEL / SERVIÇOS
   ============================================= */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0 30px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.service-card {
  min-width: calc((100% - 48px) / 3);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

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

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-card:hover img { transform: scale(1.05); }

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-body p {
  font-size: .92rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* =============================================
   TWO-COLUMN SECTIONS
   ============================================= */
.two-col {
  padding: 80px 0;
}

.two-col.bg-accent { background: var(--accent); }
.two-col.bg-white  { background: var(--white); }

.two-col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col-inner.reverse { direction: rtl; }
.two-col-inner.reverse > * { direction: ltr; }

.col-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.col-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.col-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 1rem;
}

.col-text ul {
  margin: 16px 0 24px;
}

.col-text ul li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: .96rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.col-text ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* =============================================
   MISSÃO SECTION
   ============================================= */
.mission-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 90px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.mission-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.3;
  position: relative;
}

.mission-section .subtitle {
  font-size: 1.15rem;
  opacity: .85;
  font-style: italic;
  position: relative;
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  position: relative;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 70px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: .85;
  font-size: 1.1rem;
}

/* =============================================
   CONTACTOS PAGE
   ============================================= */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  color: var(--text-light);
  font-size: .95rem;
}

.info-item a:hover { color: var(--primary); }

/* Form */
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .95rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,122,75,.12);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map */
.map-section {
  padding: 0 0 80px;
  background: var(--white);
}

.map-section h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-top: 40px;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* =============================================
   ESTACIONÁRIO PAGE
   ============================================= */
.estacionario-section {
  padding: 80px 0;
  background: var(--white);
}

.estacionario-intro {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.estacionario-intro p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.year-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.year-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.year-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.year-badge {
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 6px 18px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
}

.year-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid rgba(44,122,75,.2);
  transition: all var(--transition);
  cursor: pointer;
}

.doc-item:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.doc-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =============================================
   COOKIE BANNER
   ============================================= */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: rgba(255,255,255,.85);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 16px rgba(0,0,0,.25);
  transition: opacity .4s ease, transform .4s ease;
}

#cookie-banner p {
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

#cookie-banner a {
  color: var(--primary-light);
  text-decoration: underline;
}

#cookie-accept {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

#cookie-accept:hover {
  background: var(--primary-dark);
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(100%);
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #cookie-accept {
    width: 100%;
    text-align: center;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.footer-brand p {
  font-size: .92rem;
  line-height: 1.7;
  opacity: .75;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

.footer-contact-item span:first-child {
  color: var(--primary-light);
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .service-card {
    min-width: calc((100% - 24px) / 2);
  }

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

@media (max-width: 768px) {
  .nav-left,
  .nav-right-group { display: none; }

  .hamburger { display: flex; }

  .hero { padding: 70px 24px; }

  .two-col-inner,
  .two-col-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 30px;
  }

  .two-col-inner.reverse .col-img { order: -1; }

  .col-img img { height: 260px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    min-width: 85%;
  }

  .year-card { padding: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p  { font-size: 1rem; }

  .service-card { min-width: 90%; }
}
