@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #038B2A;
  --green-light: #04a832;
  --green-glow: #4ade80;
  --dark: #0f1923;
  --gray-50: #f8fafb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e5ea;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--gray-50); color: var(--gray-900); }
a { color: var(--green); text-decoration: none; }

/* NAV */
header {
  background: white;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 101;
}

nav {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo img { max-width: 80px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--gray-700); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0;
  height: 2px; background: var(--green); transition: all var(--transition); transform: translateX(-50%);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.burger { display: none; font-size: 1.8rem; color: var(--gray-700); cursor: pointer; z-index: 10002; }

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: fixed; inset: 0;
    background: rgba(10,15,20,0.98); backdrop-filter: blur(20px); z-index: 10000;
    justify-content: center; align-items: center; gap: 0;
  }
  .nav-links.nav-active { display: flex; }
  .nav-links a { color: white; padding: 18px 0; font-size: 1.2rem; }
  .nav-links a::after { display: none; }
  .burger { display: block; z-index: 10001; }
}

/* HERO */
.insurancesection {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px;
  color: white;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.insurancesection::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  z-index: 1;
}

.insurancesection h1 {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  font-size: 3rem; font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GALLERY */
.gallery {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
}

.gallery h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  animation: fadeUp 0.6s ease-out both;
}

.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox-img {
  max-width: 88%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform var(--transition);
}

.close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.close:hover { background: rgba(255,255,255,0.2); color: var(--green-glow); }

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: white;
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  backdrop-filter: blur(10px);
}

.prev { left: 24px; }
.next { right: 24px; }
.prev:hover, .next:hover { background: rgba(255,255,255,0.25); color: var(--green-glow); }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: auto; }
  .prev, .next { width: 40px; height: 40px; font-size: 20px; }
  .insurancesection { min-height: 280px; }
  .insurancesection h1 { font-size: 2rem; }
}

/* FOOTER */
.footer {
  background: #0a0f14; color: rgba(255,255,255,0.6); text-align: center;
  padding: 50px 24px 20px; margin-top: 40px;
}
.footer img { width: 70px; margin-bottom: 10px; filter: brightness(0.9); }
.footer h3 { color: rgba(255,255,255,0.4); margin: 8px 0 20px; font-size: 0.9rem; font-weight: 400; }

.footer-container { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-column h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin: 6px 0; }
.footer-column ul li a { color: rgba(255,255,255,0.45); font-size: 0.85rem; transition: all var(--transition); text-decoration: none; }
.footer-column ul li a:hover { color: var(--green-glow); padding-left: 4px; }

.social-icons { margin: 20px 0; display: flex; justify-content: center; gap: 10px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
  font-size: 0.9rem; transition: all var(--transition); text-decoration: none;
}
.social-icons a:hover { background: var(--green); color: white; transform: translateY(-3px); }

.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.8rem; }
.footer-bottom p { color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--green-glow); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
