/* 
  Constructora Palermo - Modern Stylesheet
  Variables and Resets 
*/
:root {
  --clr-brand: #eab308; /* Construction Gold/Yellow */
  --clr-brand-hover: #ca8a04;
  --clr-accent: #f97316; /* Vibrant Orange */
  
  --clr-slate-900: #0f172a;
  --clr-slate-800: #1e293b;
  --clr-slate-700: #334155;
  --clr-slate-200: #e2e8f0;
  --clr-slate-50:  #f8fafc;
  
  --clr-text-main: var(--clr-slate-800);
  --clr-text-mut:  var(--clr-slate-700);
  --clr-text-light: #ffffff;
  
  --bg-main: #ffffff;
  --bg-alt: var(--clr-slate-50);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

body {
  font-family: var(--font-body);
  color: var(--clr-text-main);
  background: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Helpers */
.bg-light { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--clr-slate-900); color: var(--clr-text-light); }
.bg-dark p { color: var(--clr-slate-200); }

.subtitle-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: #fef08a; /* Soft Yellow bg */
  color: #854d0e;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.dark-badge {
  background-color: var(--clr-slate-800);
  color: white;
}
.orange-badge {
  background-color: #ffedd5;
  color: #c2410c;
}

.w-100 { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn i { font-size: 1.2rem; }

.btn-primary {
  background: var(--clr-brand);
  color: var(--clr-slate-900);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--clr-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.05); /* very transparent initially */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.navbar.scrolled {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: transparent;
  animation: slideDown 0.3s ease-in-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--clr-text-light); /* Assuming dark hero overlay initially */
  transition: color 0.3s ease;
}
.navbar.scrolled .logo { color: var(--clr-slate-900); }
.logo-bold { font-weight: 800; color: var(--clr-brand); }
.navbar.scrolled .logo-bold { color: var(--clr-accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-light); /* Light text on hero */
  position: relative;
  transition: color 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--clr-text-mut); }
.nav-links a:hover, .navbar.scrolled .nav-links a:hover {
  color: var(--clr-brand);
}

.nav-links .nav-cta {
  background: var(--clr-brand);
  color: var(--clr-slate-900) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.mobile-menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 2rem;
  color: var(--clr-text-light);
  cursor: pointer;
}
.navbar.scrolled .mobile-menu-toggle { color: var(--clr-slate-900); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/hero-background.png') center/cover no-repeat;
  padding: 6rem 1rem 4rem; /* Top padding for navbar space */
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  margin-top: 2rem;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge-modern {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--clr-slate-200);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* City Banner highlight */
.city-banner {
  background: var(--clr-brand);
  color: var(--clr-slate-900);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.city-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.city-content i { color: var(--clr-slate-900); font-size: 1.1rem; }
.city-content .dot { color: var(--clr-slate-900); margin: 0 0.5rem; opacity: 0.5; }

/* General Sections */
.section { padding: 6rem 1.5rem; }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--clr-slate-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--clr-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--bg-alt);
  color: var(--clr-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--clr-brand);
  color: var(--clr-slate-900);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.service-card p { color: var(--clr-text-mut); font-size: 0.95rem; }

/* Grid Gallery - Projects */
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  z-index: 10;
}
@media(min-width: 768px) {
  .item-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .item-wide {
    grid-column: span 2;
  }
}
.img-wrapper {
  width: 100%; height: 100%;
}
.img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover .img-wrapper img {
  transform: scale(1.08);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-content h2 { margin-bottom: 0.5rem; }
.about-content .role { color: var(--clr-accent); font-size: 1.1rem; margin-bottom: 1.5rem; font-family: var(--font-body); font-weight: 500;}
.about-content p { color: var(--clr-text-mut); margin-bottom: 1rem; font-size: 1.05rem; }
.about-content p strong { color: var(--clr-slate-800); }
.check-list {
  list-style: none;
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.check-list li {
  display: flex; align-items: center; gap: 0.8rem;
  font-weight: 500; font-size: 1.05rem;
}
.check-list i { color: var(--clr-brand); font-size: 1.5rem; }

.about-stats-box {
  background: var(--bg-alt);
  padding: 3rem;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border: 1px solid var(--clr-slate-200);
}
.stat-card {
  background: white;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.orange-bg {
  background: var(--clr-accent);
  color: white;
}
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.stat-card:not(.orange-bg) .stat-number { color: var(--clr-brand); }
.orange-bg .stat-number { color: white; }
.stat-text { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.stats-quote { grid-column: 1 / -1; font-style: italic; color: var(--clr-text-mut); text-align: center; margin-top: 1rem; border-top: 1px dashed var(--clr-slate-200); padding-top: 1.5rem; }

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info p { margin-bottom: 3rem; }
.info-items { display: flex; flex-direction: column; gap: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-brand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.info-item h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.info-item a, .info-item span { color: var(--clr-slate-200); font-size: 0.95rem; transition: color 0.3s; }
.info-item a:hover { color: var(--clr-brand); text-decoration: underline; }

.contact-box {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  color: var(--clr-slate-800);
}
.contact-box h3 { margin-bottom: 2rem; font-size: 1.8rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { font-size: 0.9rem; font-weight: 600; color: var(--clr-slate-700); }
.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--clr-slate-200);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-alt);
  transition: var(--transition);
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--clr-brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

/* Footer */
.footer {
  background: #090e17;
  color: var(--clr-slate-200);
  padding: 4rem 1.5rem 1rem;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.logo-footer { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 1rem; display: block; }
.logo-footer .logo-bold { color: var(--clr-brand); font-weight: 800; }
.brand-col p { max-width: 300px; font-size: 0.95rem; }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { transition: color 0.3s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--clr-brand); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem; color: var(--clr-slate-700);
}

/* Floating Elements */
.float-wa {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 30px; right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.float-wa:hover {
  transform: scale(1.1);
}

/* Responsive */
@media(max-width: 900px) {
  .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media(max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 80vw;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { left: 0; }
  .nav-links a { color: var(--clr-slate-900); font-size: 1.25rem; }
  
  .hero-title { font-size: 2.2rem; }
  header.navbar { background: rgba(30, 41, 59, 0.95); } /* Fixed dark header for mobile */
  .logo { color: white; }
  
  .city-content { font-size: 0.85rem; }
}
