/* =====================================================
   GLOBAL VARIABLES
===================================================== */
:root {
  --brand-blue: #04336a;
  --brand-blue-dark: #002a55;
  --brand-light: #e6f0ff;
  --brand-button: #259733;
  --text-dark: #333;
  --text-muted: #666;
  --white: #eeecec;
  --font-main: 'Arial', sans-serif;

  --transition-fast: 0.3s ease-in-out;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 24px rgba(0,0,0,0.12);
}

/* =====================================================
   RESET & BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: #eeecec;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER & NAVBAR
===================================================== */
.site-header {
  background: linear-gradient(rgba(245,245,245,0.95), rgba(165,161,161,0.95));
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(4px);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.logo img {
  height: 140px;
  width: auto;
}

.main-nav {
  margin-left: auto;
  position: relative;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav li a,
.main-nav .btn {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 500;
  border-radius: 4px;
  color: var(--brand-blue);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .btn:hover {
  background: var(--brand-button);
  color: var(--white);
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* =====================================================
   HAMBURGER MENU (DESKTOP HIDDEN)
===================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 10002;
}

.hamburger .bar {
  height: 4px;
  width: 100%;
  background: var(--brand-blue);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--brand-button);
  color: var(--white);
  border-radius: 4px;
  transition: var(--transition-fast);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #1e7a28;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* WhatsApp floating button */
.whatsapp-chat-wrapper {
  margin: 20px 0;
  text-align: center;
}

/* ===========================
   WHATSAPP BUTTON
=========================== */
.whatsapp-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px 30px;
  max-width: 900px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-text .btn {
  font-size: 1rem;
  padding: 12px 28px;
}

/* =====================================================
   PAGE CONTENT
===================================================== */
.page-content {
  padding: 70px 0;
  background: var(--white);
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--brand-blue);
  margin-bottom: 15px;
}

.page-content p {
  margin-bottom: 15px;
}

/* =====================================================
   SERVICES / FEATURES
===================================================== */
.services-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--brand-blue);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
}

.service-item .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* =====================================================
   CONTACT FORM
===================================================== */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--brand-button);
  box-shadow: 0 0 6px var(--brand-button);
}

.contact-form textarea {
  min-height: 120px;
}

/* =====================================================
   MODAL STYLING
===================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10010;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  animation: slideIn 0.3s;
}

.modal .close {
  color: var(--brand-blue-dark);
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover {
  color: var(--brand-button);
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}

@keyframes slideIn {
  from {transform: translateY(-20px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--brand-blue);
  color: var(--white);
  padding: 45px 0 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
  color: #e0e0e0;
}

.footer-section a:hover {
  color: var(--brand-button);
}

.footer-section.social {
  margin-left: auto;
  text-align: right;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  color: #ccc;
}

/* =====================================================
   RESPONSIVE / MOBILE
===================================================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    box-shadow: var(--shadow-medium);
    z-index: 10001;
  }

  .main-nav ul.show { display: flex; }

  .main-nav ul li a,
  .main-nav ul li .btn {
    display: block;
    padding: 10px 14px;
    font-weight: 500;
    color: var(--brand-blue);
  }

  .main-nav ul li a:hover,
  .main-nav ul li .btn:hover {
    background: var(--brand-button);
    color: var(--white);
  }

  .hero { min-height: 300px; padding: 60px 20px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }

  .footer-container { flex-direction: column; text-align: center; }
  .footer-section.social { margin-left: 0; text-align: center; }

  .logo img { height: 64px; }
  .header-container { min-height: 78px; }

  .features, .services-details, .clients-list { flex-direction: column; }
}