:root {
  --primary: #1e88e5;
  --secondary: #2e7d32;
  --light: #f2f8ff;
  --white: #ffffff;
  --dark: #1a2b3c;
  --text: #334155;
  --shadow: 0 10px 24px rgba(30, 136, 229, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.9), rgba(46, 125, 50, 0.8)),
    url('../images/hero-placeholder.svg') center/cover no-repeat;
  color: var(--white);
  position: relative;
}

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: rgba(12, 33, 54, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 33, 54, 0.9);
  padding: 0.7rem 0;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.3rem 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 999px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #cfe8ff;
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 60%;
  left: 20%;
}

.nav-links a.active {
  color: var(--secondary);
}

.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.25s ease;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 5px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-content: center;
  text-align: left;
  gap: 1rem;
}

.hero-kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  max-width: 780px;
}

.hero p {
  max-width: 780px;
}

.btn-primary {
  display: inline-block;
  width: fit-content;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  color: var(--dark);
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.alt-bg {
  background: var(--light);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-list i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

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

.card {
  background: var(--white);
  padding: 1.3rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e5eef8;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ccdae8;
  font: inherit;
}

.contact-info {
  background: var(--light);
  border: 1px solid #d4e1ef;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #0f2133;
  color: var(--white);
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
}

.copyright {
  text-align: center;
  opacity: 0.9;
  font-size: 0.9rem;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 70px;
    background: rgba(12, 33, 54, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    width: min(260px, 92vw);
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
