:root {
  --bg-soft: #edf7f0;
  --accent: #407050;
  --accent-soft: #8ab79b;
  --accent-deep: #173824;
  --text-main: #132218;
  --text-muted: #4f6657;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Poppins", sans-serif;
  color: var(--text-main);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(226, 244, 233, 0.55)),
    url("images/_MG_0601.JPEG");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

p {
  line-height: 1.7;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(64, 112, 80, 0.35);
  color: var(--accent-deep);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.btn.small {
  padding: 0.4rem 1.1rem;
  font-size: 0.86rem;
}

/* Layout helpers */
main {
  min-height: calc(100vh - 170px);
}

.page-main {
  padding: 1.8rem 1.6rem 3rem;
}

.page-section {
  max-width: 1150px;
  margin: 0 auto 2rem;
  padding: 1.4rem 1.7rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(64, 109, 82, 0.18);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.card {
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(64, 109, 82, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  font-size: 0.94rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 1.6rem;
}

.header-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* NAVIGATION */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #064e3b;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background-color: #3b7a57;
  transition: width 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: #1c6145;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 0.45rem 0.25rem;
  margin-top: 0.25rem;
  list-style: none;
  display: none;
  z-index: 20;
}

.has-dropdown:hover > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  color: #064e3b;
}

.dropdown li a:hover {
  background: #e8f3ec;
}

/* BRAND SIDE */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: right;
}

.header-logo {
  width: 68px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-name {
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
  letter-spacing: 0.03em;
}

.site-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  color: #2f604d;
}

/* FOOTER */
.site-footer {
  padding: 1.4rem 1.6rem 1.8rem;
  background: rgba(8, 24, 15, 0.94);
  color: #f5fbf7;
  margin-top: 1.5rem;
}

.footer-links {
  max-width: 1150px;
  margin: 0 auto 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #e6f5ec;
  font-size: 0.86rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  max-width: 1150px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #d0e6d8;
}

/* HOME */
.home-hero {
  padding: 1.8rem 1.6rem 2.4rem;
}

.home-hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 1.7rem;
}

.home-hero-text {
  padding: 1.8rem 2rem;
  border-radius: 22px;
  background: rgba(5, 18, 11, 0.8);
  color: #edf8f1;
  box-shadow: var(--shadow-soft);
}

.home-hero-text h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.stat-card {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 238, 221, 0.35);
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-number span {
  font-size: 0.9rem;
  font-weight: 400;
}

.stat-label {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
}

.home-hero-card {
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 22px;
  background: rgba(244, 251, 247, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(64, 109, 82, 0.22);
}

.home-hero-card h3 {
  margin-top: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-card-list {
  margin: 0.6rem 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.home-ribbon {
  padding: 0 1.6rem 2.4rem;
}

.home-ribbon-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  background: radial-gradient(circle at left, #f3faf5, #dfeee4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  border: 1px solid rgba(64, 109, 82, 0.16);
}

.home-ribbon-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.home-projects {
  padding: 0 1.6rem 2.6rem;
}

.home-section-header {
  max-width: 780px;
  margin: 0 auto 1.7rem;
  text-align: center;
}

.home-project-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.home-project-card {
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(64, 109, 82, 0.18);
  font-size: 0.95rem;
}

.home-story {
  padding: 0 1.6rem 2.6rem;
}

.home-story-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.7rem;
}

.home-story-text,
.home-story-side {
  padding: 1.5rem 1.7rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.home-story-card {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(64, 109, 82, 0.14);
}

.home-gallery-teaser {
  padding: 0 1.6rem 2.8rem;
}

.home-gallery-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.7rem 1.8rem;
  border-radius: 22px;
  background: rgba(6, 22, 14, 0.8);
  box-shadow: var(--shadow-soft);
  color: #edf8f1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 1.6rem;
}

.home-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-gallery-tile {
  border-radius: 16px;
  min-height: 80px;
  background-image:
    linear-gradient(135deg, rgba(64, 109, 82, 0.45), rgba(138, 183, 155, 0.7)),
    url("images/_MG_0601.JPEG");
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.home-contact-teaser {
  padding: 0 1.6rem 3rem;
}

.home-contact-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.6rem 1.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
}

/* GALLERY PAGE */
.gallery-page {
  padding: 1.8rem 1.6rem 3rem;
}

.gallery-hero {
  max-width: 1150px;
  margin: 0 auto 1.4rem;
  padding: 1.4rem 1.7rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(64, 109, 82, 0.16);
}

.gallery-frame {
  max-width: 1150px;
  margin: 0 auto 1.6rem;
}

.gallery-main-wrapper {
  padding: 0;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 32, 19, 0.7);
  overflow: hidden;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.75);
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #f6fff9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px 10px;
  background: rgba(4, 18, 10, 0.9);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(230, 248, 238, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.gallery-dot.active {
  background: #e6f8ee;
}

.gallery-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.gallery-thumbs {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.6rem 1.4rem 0.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.thumb-header h2 {
  margin: 0 0 0.3rem;
}

.thumb-header p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.thumb-strip {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-behavior: smooth;
}

.thumb-strip::-webkit-scrollbar {
  height: 6px;
}
.thumb-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(64, 109, 82, 0.5);
  border-radius: 999px;
}

.thumb-card {
  position: relative;
  min-width: 150px;
  height: 95px;
  border-radius: 18px;
  border: none;
  padding: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  color: #f5fff8;
}

.thumb-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  filter: saturate(1.05);
}

.thumb-card.active {
  outline: 2px solid rgba(64, 109, 82, 0.9);
}

.thumb-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(64, 109, 82, 0.3);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  }

  .home-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-story-inner,
  .home-gallery-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-contact-inner {
    flex-direction: column;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-brand {
    justify-content: center;
    text-align: center;
  }

  .header-text {
    align-items: center;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-text {
    padding-inline: 1.5rem;
  }

  .home-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-gallery-inner,
  .home-contact-inner {
    padding-inline: 1.4rem;
  }

  .card-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
