
body {font-family: 'Roboto', sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; margin:0;}
header {background: url('https://images.unsplash.com/photo-1581090700227-4c4f50d9f6d4?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    color: white; padding: 60px 20px; text-align: center;}
header h1 {margin: 0; font-size: 2.5rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.6);}
header p {font-size: 1.2rem; margin-top: 10px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5);}
nav {display: flex; justify-content: center; background: #003366;
  flex-wrap: wrap;
  gap: 10px;
}
nav a {color: white; padding: 14px 20px; text-decoration: none; transition: background 0.3s ease;
  white-space: normal;
}
nav a:hover {background: #0059b3;}
section {padding: 60px 20px; text-align: center;}
section h2 {color: #004080; font-size: 2rem; margin-bottom: 20px;}
.services {display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 30px;}
.service {background: white; border-radius: 10px; padding: 30px; margin: 15px; width: 300px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease;}
.service:hover {transform: translateY(-10px);}
.service h3 {color: #0073e6; margin-bottom: 10px;}
.gallery {display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px;}
.gallery img {width: 300px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.3s ease;}
.gallery img:hover {transform: scale(1.05);}
form {max-width: 500px; margin: 0 auto; text-align: left; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);}
form input, form textarea {width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px;}
form button {background: #004080; color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; transition: background 0.3s ease;}
form button:hover {background: #0066cc;}
footer {background: #003366; color: white; text-align: center; padding: 20px; margin-top: 40px; font-size: 0.9rem;}
.btn-whatsapp {background: #25D366; color: white; padding: 12px 25px; text-decoration: none; border-radius: 25px; display: inline-block; margin-top: 25px; transition: background 0.3s ease;}
.btn-whatsapp:hover {background: #1ebe5d;}
@media (max-width: 768px) {
    .services, .gallery {flex-direction: column; align-items: center;}
}


/* Gallery grid for category pages */
.gallery-grid {display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:16px; align-items:start;}
.gallery-grid img, .gallery-grid svg {width:100%; height:220px; object-fit:cover; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,.15);}
.breadcrumb{margin-bottom:16px; font-size:.95rem;}
.breadcrumb a{color:#0073e6; text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.project-card{width:320px; background:#fff; border-radius:12px; padding:14px; box-shadow:0 4px 12px rgba(0,0,0,.08);}
.project-card img{width:100%; height:200px; object-fit:cover; border-radius:8px;}
.project-card h3{text-align:center; margin:.7rem 0 0; color:#004080}
.project-categories{display:flex; gap:24px; flex-wrap:wrap; justify-content:center; margin-top:18px;}


/* === Captions for gallery images === */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  font-size: 14px;
  color: #374151;
  padding: 10px 12px;
  background: #F8FAFF;
  border-top: 1px solid rgba(15, 33, 61, 0.06);
}
@media (min-width: 1024px) {
  .gallery-item img { height: 240px; }
}


/* About blurb styling */
.about-blurb{
  max-width: 68ch;
  margin: 10px 0 14px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2937;
  background: rgba(245,248,255,.75);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(31,41,55,0.06);
}

/* Button styles */
.btn-group{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.10); }
.btn:active{ transform: translateY(0); }

/* WhatsApp (assumes existing .btn--whatsapp may exist, but ensure base) */
.btn--whatsapp{ background:#25D366; color:#fff !important; }
.btn--whatsapp:hover{ background:#22c35e; }

/* Facebook button */
.btn--facebook{ background:#1877F2; color:#fff !important; }
.btn--facebook:hover{ background:#166fe5; }

.btn-row-fixed{ margin-top: 10px; }



/* ===== Responsive Enhancements (Mobile-first) ===== */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

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

.container { padding-left: 16px; padding-right: 16px; }

/* Project and gallery grids: 1 col on mobile, 2 on tablet, 3 on desktop */
.project-grid, .gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .project-grid, .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reduce fixed heights on small screens to avoid cropping */
.gallery-item img {
  height: auto;
}

/* Buttons: stack on mobile, inline on desktop */
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
}

/* Hero / headings readability on small screens */
header h1 { font-size: clamp(24px, 6vw, 36px); }
header p  { font-size: clamp(14px, 3.8vw, 18px); }

/* Cards rounding/shadow adjustments for mobile */
.project-card, .gallery-item {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Spacing tweaks */
section { padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 768px) {
  section { padding-top: 32px; padding-bottom: 32px; }
}


/* ===== Responsive Nav Bar Fix ===== */
header nav, .nav, .site-nav, .navbar {
  display: flex;
  flex-wrap: wrap;           /* allow wrapping on small screens */
  gap: 12px;
  align-items: center;
  justify-content: center;
}

header nav ul, .nav ul, .site-nav ul, .navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;           /* wrap items instead of clipping */
  gap: 12px;
}

header nav li, .nav li, .site-nav li, .navbar li {
  margin: 0;
  padding: 0;
}

header nav a, .nav a, .site-nav a, .navbar a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 10px;         /* tighter padding */
  border-radius: 8px;
  font-weight: 600;
  white-space: normal;       /* keep each word intact */
}

/* Make text scale down slightly on narrow phones and allow two rows */
@media (max-width: 480px) {
  header nav, .nav, .site-nav, .navbar { gap: 8px; }
  header nav ul, .nav ul, .site-nav ul, .navbar ul { gap: 8px; }
  header nav a, .nav a, .site-nav a, .navbar a {
    font-size: clamp(12px, 3.6vw, 14px);   /* gently reduce size on small screens */
    padding: 6px 8px;
  }
}

/* Optional: if the container is very tight, allow horizontal scroll instead of clipping */
.nav-scroll, .navbar-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

/* Nav mobile sizing */
@media (max-width: 480px){
  nav a { 
    font-size: clamp(12px, 3.6vw, 14px);
    padding: 6px 8px;
  }
}
