:root {
  --primary: #2a9d8f;
  --secondary: #264653;
  --accent: #e9c46a;
  --bg: #f4f9f9;
  --white: #ffffff;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navbar */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
nav .logo {
  font-size: 1.2rem;
  font-weight: 600;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}
nav ul li a:hover {
  color: var(--accent);
}
.call-btn {
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.call-btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* Hero with Animated Gradient */
header {
  background: linear-gradient(270deg, var(--secondary), var(--primary), var(--accent));
  background-size: 600% 600%;
  animation: gradientBG 15s ease infinite;
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-in-out;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  animation: fadeInUp 1.5s ease-in-out;
}

/* Gradient Animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtle text animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 12px 24px;
  margin: 10px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.cta-btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

/* About */
.about-block {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.about-block h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.service-card a {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.service-card a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}
.team-card h3 {
  margin-bottom: 8px;
  color: var(--primary);
}
.team-card a {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.team-card a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Contact Page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.info-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}
.info-card h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}
.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: auto;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}
.contact-form button {
  background: var(--primary);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.contact-form button:hover {
  background: var(--secondary);
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item h3::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-item h3.active::after {
  content: "-";
  transform: rotate(180deg);
}
.faq-item p {
  display: none;
  margin-top: 10px;
  color: var(--text-dark);

  /* ========== Mobile Nav ========== */
.nav { position: sticky; top: 0; z-index: 1000; }

/* Base */
.nav-links { display: flex; gap: 20px; align-items: center; }

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute; left: 8px; right: 8px; height: 3px;
  background: var(--white); border-radius: 3px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 28px; }

/* When active -> turn into "X" */
.hamburger.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile panel (hidden by default on mobile) */
@media (max-width: 768px) {
  /* stack header text smaller */
  header h1 { font-size: 1.8rem; }
  header p { font-size: 1rem; }

  /* show hamburger, hide inline links */
  .hamburger { display: inline-block; }
  .nav-links {
    position: fixed;
    top: 60px; right: 0;
    width: 80vw; max-width: 320px; height: calc(100vh - 60px);
    background: var(--secondary);
    flex-direction: column; align-items: flex-start;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 8px; }

  /* slide-in open state */
  .nav-links.open { transform: translateX(0%); }

  /* adjust top bar spacing */
  nav { padding: 10px 16px; }
  nav .logo { font-size: 1.05rem; }
  .call-btn { display: none; } /* optional: hide big call button to reduce clutter */
  
  /* grids stack better */
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Prevent background scroll when menu open */
body.menu-open { overflow: hidden; }
