/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #3d9e35;
  --green-dark: #2a2a2a;
  --green-mid:  #52b548;
  --accent:     #a8e4a0;
  --sand:       #f5f5f5;
  --gray:       #777777;
  --text:       #1a1a1a;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

/* ── NAVBAR ───────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--green-mid);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.3rem;
  color: #555;
  letter-spacing: 0.01em;
}

.logo-name strong {
  color: var(--green-mid);
  font-weight: 800;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-mid); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(rgba(20,20,20,0.52), rgba(20,20,20,0.52)),
    url('projects/IMG-20160524-WA0001.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-content { max-width: 700px; }

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}

/* ── BUTTON ───────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--green); transform: translateY(-2px); }

/* ── SECTIONS ─────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--sand); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-title.left { text-align: left; }

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── CARDS ────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); border-top: 3px solid var(--green-mid); }

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.card p { color: var(--gray); font-size: 0.97rem; }

/* ── GALLERY ──────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ── LIGHTBOX ─────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

#lightbox-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ── ABOUT ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-list li {
  color: var(--green-dark);
  font-weight: 500;
  font-size: 0.97rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge {
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  width: 240px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.badge-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.badge-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

/* ── CONTACT ──────────────────────────────────── */
.contact-grid {
  max-width: 640px;
  margin: 0 auto;
}

/* ── FORM ─────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-mid);
}

.contact-form textarea { resize: vertical; }

.form-note {
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 1.8rem 1.5rem;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 1rem; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 75px;
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--green-mid);
  }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { display: none; }

.form-row { grid-template-columns: 1fr; }
}
