/* Enhanced styles.css — Interactive + Modern Look */

/* Variables */
:root {
  --accent: #0b6b3a;
  --accent-dark: #084f2b;
  --muted: #666;
  --bg: #f8faf9;
  --card: #ffffff;
  --radius: 12px;
  --max-width: 1100px;
  --gap: 1.25rem;
  --container-pad: 1.25rem;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --transition: all 0.3s ease-in-out;
}

/* Base */
* { box-sizing: border-box; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}

/* Scroll progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(to right, #00b09b, #96c93d);
  width: 0%;
  z-index: 9999;
  transition: width 0.2s ease-out;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--container-pad) * 1) var(--container-pad);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
}
.brand .tag { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: #222;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: var(--transition);
}
.site-nav a:hover {
  background: rgba(11,107,58,0.1);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  background: radial-gradient(circle at top right, rgba(11,107,58,0.1), rgba(255,255,255,0.9));
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/fresh-snow.png');
  opacity: 0.15;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--gap);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text h1 {
  font-size: 2.5rem;
  color: var(--accent-dark);
  margin: 0 0 .5rem;
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero-text .hero-dynamic {
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(11,107,58,0.2);
  transition: var(--transition);
}
.hero-text.fade {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}
.btn.outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Cards and Sections */
.section { margin-top: 2rem; padding: 1.5rem 0; }
.section h2 {
  margin: 0 0 .75rem;
  color: var(--accent-dark);
  font-size: 1.6rem;
  text-align: center;
}
.cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form */
.contact-form {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.contact-form:hover {
  transform: translateY(-4px);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: .35rem;
  transition: border 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 4px rgba(11,107,58,0.2);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

/* Modal */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  padding: 1rem;
}
.img-modal[aria-hidden="false"] { display: flex; }
.img-modal-content img {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.modal-caption {
  color: #fff;
  margin-top: .5rem;
  text-align: center;
}

/* Responsive */
@media(max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; right: 1rem; top: 60px; background: #fff; border-radius: 8px; padding: 10px; box-shadow: var(--shadow); }
  .site-nav ul { flex-direction: column; gap: .5rem; }
  .nav-toggle { display: block; }
}

/* Smooth fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal fade-in */
.fade-in {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Nav toggle animation */
#nav-toggle.active span {
  background: #00b894;
  transition: 0.4s;
}
