/* ===== MIRANTE URBANISMO - Global Styles ===== */
:root {
  --green-dark: #1B4D3E;
  --green-medium: #2D8A6E;
  --green-light: #4DB396;
  --gold: #C8A96E;
  --gold-light: #E0C992;
  --bg-light: #F9F9F9;
  --bg-dark: #121212;
  --card-light: #FFFFFF;
  --card-dark: #1E1E1E;
  --text-light: #333333;
  --text-dark: #E0E0E0;
  --text-muted: #777777;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg-light: var(--bg-dark);
  --card-light: var(--card-dark);
  --text-light: var(--text-dark);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,110,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(200,169,110,0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Page Entrance ===== */
.page-entrance {
  animation: fadeIn 0.6s ease;
}

/* ===== Image Zoom ===== */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* ===== Shimmer loading ===== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,77,62,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--green-light);
  color: var(--green-light);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: #fff;
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--green-light);
}

.btn-gold {
  background: var(--gold);
  color: #1B1B1B;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--green-dark);
  padding: 0 24px;
  transition: background var(--transition), padding var(--transition),
              box-shadow var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition);
}

/* Navbar scroll state */
.navbar-scrolled {
  padding: 0 24px;
  background: rgba(27,77,62,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.navbar-scrolled .container {
  height: 60px;
}

.navbar-scrolled .logo img {
  height: 34px;
}

@supports not (backdrop-filter: blur(12px)) {
  .navbar-scrolled {
    background: var(--green-dark);
  }
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.navbar .logo img {
  height: 42px;
  width: auto;
}

.navbar .logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition);
  color: #fff;
  margin-left: 16px;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Page Header ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0F2D23 100%);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .section-title {
  color: var(--green-light);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 700px;
}

.text-center {
  text-align: center;
}

.text-center .section-title::after {
  margin: 8px auto 0;
}

/* ===== Cards ===== */
.card {
  background: var(--card-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--gold);
  color: #1B1B1B;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== Home Page Specific ===== */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0F2D23 50%, #1B4D3E 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content .logo-hero {
  margin-bottom: 32px;
}

.hero-content .logo-hero img {
  height: 72px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.highlight-card {
  background: var(--card-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

[data-theme="dark"] .highlight-card {
  background: var(--card-dark);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(27,77,62,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About Preview */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview-text h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 20px;
}

[data-theme="dark"] .about-preview-text h2 {
  color: var(--green-light);
}

.about-preview-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-preview-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green-dark), #0F2D23);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-preview-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(27,77,62,0.2);
}

.about-preview-image .placeholder {
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  font-weight: 200;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ===== Empreendimentos (Carousel) ===== */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-slide .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  transform: translateY(0);
  transition: transform 0.4s ease, padding 0.4s ease;
}

.carousel-slide:hover .slide-overlay {
  padding-bottom: 40px;
}

.carousel-slide .slide-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.carousel-slide .slide-overlay .tag {
  display: inline-block;
  background: var(--gold);
  color: #1B1B1B;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-slide .slide-overlay p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  color: var(--green-dark);
}

.carousel-btn:hover {
  background: var(--gold);
  color: #1B1B1B;
}

.carousel-btn.prev {
  left: -24px;
}

.carousel-btn.next {
  right: -24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(27,77,62,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="dark"] .carousel-dot {
  background: rgba(255,255,255,0.2);
}

.carousel-dot.active {
  background: var(--green-dark);
  width: 32px;
  border-radius: 6px;
}

[data-theme="dark"] .carousel-dot.active {
  background: var(--green-light);
}

/* ===== Quem Somos Page ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.mission-card {
  background: var(--card-light);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green-dark);
  transition: transform var(--transition);
}

[data-theme="dark"] .mission-card {
  background: var(--card-dark);
  border-top-color: var(--green-light);
}

.mission-card:hover {
  transform: translateY(-4px);
}

.mission-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mission-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

[data-theme="dark"] .mission-card h3 {
  color: var(--green-light);
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== Contato Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

[data-theme="dark"] .contact-info h3 {
  color: var(--green-light);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27,77,62,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--card-light);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-form {
  background: var(--card-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--bg-light);
  color: var(--text-light);
  transition: border-color var(--transition);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  border-color: #333;
  background: var(--bg-dark);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(27,77,62,0.12);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(77,179,150,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-preview-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--green-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right var(--transition);
    padding: 80px 24px 24px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-content .logo-hero img {
    height: 52px;
  }

  .highlights {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .navbar .logo span {
    display: none;
  }
}
