:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --accent: #2563eb;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #dbeafe;
  --success: #0f766e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-strip {
  background: #be185d;
  color: #fff;
  font-size: 0.9rem;
}

.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.top-strip strong {
  margin-right: 0.5rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Header + Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.brand-text h1 {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--muted);
}

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

.nav-links a {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #dbeafe;
  color: var(--accent);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Shared Sections */
section {
  padding: 4.2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--primary-dark);
}

.section-title p {
  color: var(--muted);
  max-width: 700px;
  margin: 0.6rem auto 0;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.12);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.45rem;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero p {
  margin: 0.9rem 0 1.6rem;
  color: var(--muted);
}

.btn-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: #dbeafe;
}

.hero-banner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
  animation: floatY 4s ease-in-out infinite;
}

.hero-slider {
  position: relative;
  margin: 0;
  background: #0f172a;
}

.slides {
  position: relative;
  width: 100%;
  height: clamp(260px, 46vw, 520px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.25));
  display: flex;
  align-items: center;
}

.slide-content {
  color: #fff;
  max-width: 620px;
}

.slide-content h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 0.4rem;
}

.slide-content p {
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  color: #1e3a8a;
  font-size: 1.15rem;
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.feature-band {
  background: #be185d;
  color: #fff;
}

.feature-band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-box {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-box:last-child {
  border-right: 0;
}

.feature-box h4 {
  margin-bottom: 0.25rem;
}

/* Callouts */
.cta {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
}

.cta h3 {
  margin-bottom: 0.6rem;
}

.cta p {
  color: #c7d2fe;
  margin-bottom: 1rem;
}

.cta .btn-outline {
  border-color: #c7d2fe;
  color: #e0e7ff;
}

.cta .btn-outline:hover {
  background: #1e40af;
}

/* Forms */
form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  color: var(--primary-dark);
}

input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.9)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  color: #e2e8f0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.2rem;
  padding: 2.2rem 0;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a:hover {
  color: #93c5fd;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-contact-row {
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer-contact-item {
  padding: 1rem 0.6rem;
}

.footer-contact-item strong {
  display: block;
  color: #fff;
}

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Simple reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

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

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
  color: #fff;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.85);
}

.gallery-item:hover .caption {
  transform: translateY(0);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-wrap,
  .card-grid,
  .footer-grid,
  .form-grid,
  .feature-band .container,
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-text h1 {
    font-size: 0.95rem;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.8rem 4%;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: inline-block;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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