
:root{
  --brand:#174b2b;
  --brand-2:#0b7a3b;
  --ink:#0e1b17;
  --muted:#58635f;
  --bg:#f6f8f7;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 10px 25px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand-2);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block;border-radius:12px}
.wrap{max-width:1100px;margin:auto;padding:0 20px}
.brand-logo{height:44px}
.site-header{background:#fff;border-bottom:1px solid #e8eeeb;position:sticky;top:40px;z-index:10}
.site-header .wrap{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 20px}
.nav{display:flex;gap:16px;align-items:center}
.pill{border:1px solid #cfe2d7;border-radius:999px;padding:6px 12px}
.header-ctas{display:flex;gap:8px;align-items:center}
.btn{background:var(--brand);color:#fff;padding:10px 16px;border-radius:999px;display:inline-block}
.btn-alt{background:#fff;color:var(--brand);border:1px solid #cfe2d7}
.btn-call::before{content:"📞 ";}
.btn-wa::before{content:"💬 ";}
#navToggle{display:none;border:0;background:#fff;font-size:22px;margin-left:8px}
@media (max-width:880px){
  #navToggle{display:block}
  .nav{display:none;flex-direction:column;position:absolute;right:20px;top:58px;background:#fff;border:1px solid #eaeaea;border-radius:12px;padding:12px;box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .header-ctas{display:none}
}
.content{min-height:60vh}
.site-footer{background:#0f1916;color:#dfe9e5;margin-top:40px}
.site-footer .wrap{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:18px 20px;flex-wrap:wrap}
.site-footer a{color:#dfe9e5}
.list-inline{list-style:none;margin:0;padding:0;display:flex;gap:14px;flex-wrap:wrap}

.sticky-cta{position:fixed;top:0;left:0;right:0;background:#0f1916;color:#dfe9e5;display:flex;gap:10px;justify-content:center;padding:6px 10px;z-index:11}
.sticky-cta .cta-link{color:#fff;border:1px solid #2a3d36;padding:6px 12px;border-radius:999px}
.sticky-cta .whats{background:#25D366;border-color:#25D366;color:#0f1916}

.fab-wa{position:fixed;right:16px;bottom:16px;width:56px;height:56px;display:grid;place-items:center;background:#25D366;color:#0b3;box-shadow:var(--shadow);border-radius:999px;font-size:26px;text-decoration:none;z-index:999}

.hero{min-height:52vh;display:grid;place-items:center;background:linear-gradient( rgba(0,0,0,.35), rgba(0,0,0,.35) ), var(--hero) center/cover no-repeat;color:#fff;text-align:center}
.hero.hero-compact{min-height:40vh}
.hero .hero-inner{padding:48px 20px}
.hero h1{font-size:clamp(26px,5vw,44px);margin:0 0 12px;font-weight:800}
.hero .cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.meta-cta{margin-top:10px;opacity:.95}
.link-inline{color:#fff;text-decoration:underline}

.cols{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:28px 20px}
.cols article{background:var(--card);padding:18px;border-radius:var(--radius);box-shadow:var(--shadow)}
@media (max-width:880px){.cols{grid-template-columns:1fr}}

.cards{padding:6px 20px 32px}
.cards .grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:block}
.card-body{padding:14px}
.card h3{margin:.2rem 0}

.page{padding:24px 20px}
.page h1{font-size:clamp(26px,5vw,38px)}

.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.gallery-item{background:var(--card);padding:8px;border-radius:var(--radius);box-shadow:var(--shadow)}

.contact-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:22px}
.contact-form{display:grid;gap:12px;background:var(--card);padding:18px;border-radius:var(--radius);box-shadow:var(--shadow)}
label{display:grid;gap:6px;font-weight:600}
input,textarea,select{padding:12px;border-radius:10px;border:1px solid #dfe6e2;background:#fff}

.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media (max-width:880px){
  .cards .grid-cards, .gallery, .contact-grid, .grid-2{grid-template-columns:1fr}
}

/* ========================================
   MODERN PROJECTS DESIGN - V5.0
   ======================================== */

/* Section Header */
.section-header {
  text-align: center;
  margin: 48px 0;
  padding: 0 20px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--brand);
  margin: 0 0 16px 0;
  font-weight: 800;
}

.section-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Grid */
.projects-showcase {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--bg) 0%, #f0f4f2 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e8eeeb;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Project Image */
.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Project Badges */
.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--brand);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.international-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Project Content */
.project-content {
  padding: 24px;
}

.project-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.location {
  background: #e8f5e8;
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.category {
  background: #f8f9fa;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.project-content h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.3;
}

.project-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

/* Project Stats */
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8faf9;
  border-radius: 12px;
  border-left: 4px solid var(--brand);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Project Highlights */
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Featured Project */
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
}

.project-card.featured .project-image {
  height: 100%;
}

.project-card.featured .project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* International Project */
.project-card.international {
  border: 2px solid #e74c3c;
  position: relative;
}

.project-card.international::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
}

/* Call to Action Section */
.projects-cta {
  text-align: center;
  margin: 64px 20px 32px;
  padding: 48px 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--brand);
  position: relative;
  overflow: hidden;
}

.projects-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
}

.projects-cta h3 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--brand);
  margin: 0 0 16px 0;
  font-weight: 800;
}

.projects-cta p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-primary {
  background: var(--brand);
  color: white;
  border: 2px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 75, 43, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 75, 43, 0.2);
}

.btn-pdf {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: 2px solid #e74c3c;
}

.btn-pdf:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  border-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-icon {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .project-card.featured {
    grid-column: span 1;
    display: block;
  }
  
  .project-card.featured .project-image {
    height: 240px;
  }
}

/* Tablet Portrait Optimization */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-height: 350px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 16px;
  }
  
  .project-content h3 {
    font-size: 18px;
  }
  
  .project-description {
    font-size: 14px;
  }
}

/* Tablet Small & Mobile Large */
@media (max-width: 900px) and (min-width: 769px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  
  .section-header {
    margin: 32px 0;
    padding: 0 16px;
  }
  
  .project-image {
    height: 220px;
  }
  
  .project-card {
    max-width: 600px;
    margin: 0 auto 20px;
  }
}

/* Mobile & Android Optimization */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero.hero-compact {
    min-height: 30vh;
  }
  
  .hero h1 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
    margin-bottom: 8px;
  }
  
  .hero p {
    font-size: 16px;
    line-height: 1.4;
  }
  
  /* Section Header Mobile */
  .section-header {
    margin: 24px 0 32px;
    padding: 0 12px;
  }
  
  .section-header h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.2;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* Projects Grid Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 12px;
  }
  
  /* Add clear divider after each project */
  .projects-grid::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--brand);
    margin: 24px 0;
    border-radius: 2px;
  }
  
  /* Project Cards Mobile - ALWAYS vertical layout */
  .project-card {
    display: block !important;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid #e8eeeb;
  }
  
  /* Force normal order for all cards on mobile */
  .project-card.featured {
    grid-column: span 1 !important;
    display: block !important;
    grid-template-columns: none !important;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 18px;
    border-top: 3px solid var(--bg);
    border-bottom: 2px solid #f0f4f2;
  }
  
  /* Clear visual separation between projects */
  .project-card {
    position: relative;
  }
  
  .project-card + .project-card {
    border-top: 4px solid var(--brand);
    margin-top: 16px;
  }
  
  .project-card + .project-card::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--muted), transparent);
  }
  
  /* Project Meta Mobile */
  .project-meta {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .location,
  .category {
    font-size: 12px;
    padding: 4px 10px;
    display: inline-block;
    width: fit-content;
  }
  
  /* Project Title Mobile */
  .project-content h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  /* Project Description Mobile */
  .project-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  
  /* Project Stats Mobile */
  .project-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .stat-number {
    font-size: 20px;
    margin-bottom: 2px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Project Highlights Mobile */
  .project-highlights {
    gap: 6px;
  }
  
  .highlight {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
  }
  
  /* Project Badges Mobile */
  .project-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 16px;
    top: 12px;
    left: 12px;
  }
  
  /* CTA Section Mobile */
  .projects-cta {
    margin: 32px 12px 24px;
    padding: 24px 16px;
    border-radius: 12px;
  }
  
  .projects-cta h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .projects-cta p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-pdf {
    width: 100%;
    padding: 16px 24px;
    justify-content: center;
    font-size: 16px;
    border-radius: 25px;
  }
  
  .btn-icon {
    font-size: 16px;
  }
}

/* Extra Small Devices (Small Android phones) */
@media (max-width: 480px) {
  .hero.hero-compact {
    min-height: 25vh;
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  
  .hero p {
    font-size: 15px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .projects-grid {
    padding: 0 8px;
    gap: 12px;
  }
  
  .project-image {
    height: 160px;
  }
  
  .project-content {
    padding: 12px;
  }
  
  .project-content h3 {
    font-size: 16px;
  }
  
  .project-description {
    font-size: 13px;
  }
  
  .project-stats {
    padding: 10px;
    gap: 6px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .projects-cta {
    margin: 24px 8px 16px;
    padding: 20px 12px;
  }
  
  .projects-cta h3 {
    font-size: 20px;
  }
  
  .projects-cta p {
    font-size: 15px;
  }
}

/* Active Navigation State */
.nav a.active {
  background: var(--brand);
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
}

/* ========================================
   CHATBOT STYLES
   ======================================== */

/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(23, 75, 43, 0.3);
  transition: all 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(23, 75, 43, 0.4);
}

.chatbot-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  animation: bounce 1s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(23, 75, 43, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(23, 75, 43, 0.5); }
  100% { box-shadow: 0 4px 20px rgba(23, 75, 43, 0.3); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 170px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--brand);
}

.chatbot-container.open {
  display: flex;
  animation: slideInUp 0.3s ease-out;
}

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

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-info {
  flex: 1;
}

.chatbot-name {
  font-weight: 600;
  font-size: 16px;
}

.chatbot-status {
  font-size: 12px;
  opacity: 0.9;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.chatbot-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8faf9;
}

.message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 250px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: var(--muted);
}

.user-message .message-content {
  background: var(--brand);
  color: white;
}

/* Quick Options */
.chatbot-quick-options {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: white;
  border-top: 1px solid #e8eeeb;
}

.quick-option {
  background: #e8f5e8;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-option:hover {
  background: var(--brand);
  color: white;
}

/* Input Area */
.chatbot-input {
  display: flex;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e8eeeb;
  gap: 8px;
}

#chatbot-message-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dfe6e2;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

#chatbot-message-input:focus {
  border-color: var(--brand);
}

#chatbot-send {
  background: var(--brand);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

#chatbot-send:hover {
  background: var(--brand-2);
}

/* Mobile Chatbot */
@media (max-width: 768px) {
  .chatbot-container {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 80px;
  }
  
  .chatbot-toggle {
    right: 16px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  
  .chatbot-container {
    right: 10px;
    bottom: 140px;
    width: calc(100vw - 20px);
    max-width: 350px;
    height: 80vh;
    max-height: 500px;
  }
  
  /* WhatsApp position */
  .fab-wa {
    right: 16px;
    bottom: 16px;
  }
}
