/* =========================
   ROOT & GLOBAL RESET
========================= */
:root {
  --primary: #1e4db7;  /* blue */
  --accent: #f2c94c;   /* yellow */
  --bg: #f7fbff;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: #10293a;
}

/* =========================
   TOP BAR
========================= */
.topbar {
  background: linear-gradient(90deg, rgba(46,132,149,0.06), rgba(233,200,67,0.03));
  padding: 8px 0;
  font-size: 0.9rem;
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   HEADER & NAV
========================= */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  font-weight: 800;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
}

.logo img,
.logo-img,
.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  transition: all 0.3s ease;
}

.nav a {
  color: #10293a;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* underline hover effect */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Mobile menu toggle (hamburger) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #10293a;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,41,58,0.25), rgba(16,41,58,0.45));
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 25px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0 0 35px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
}

/* =========================
   SECTIONS & PARALLAX
========================= */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
  background: #fff;
}

/* parallax sections under hero */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.parallax {
  background-attachment: scroll !important;
}


/* on mobile, disable fixed background (smoother) */
@media (max-width: 900px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* Section headings */
.section-title {
  text-align: center;
  color: var(--primary);
  margin: 0 auto 20px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
}

/* =========================
   BUTTONS / CTA
========================= */
button,
.btn,
.cta {
  background: var(--accent);
  color: #10293a;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

button:hover,
.btn:hover,
.cta:hover {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
  transform: translateY(-2px);
}

/* =========================
   CARDS & GRIDS
========================= */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.responsive {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Generic card styling */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  text-align: left;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* visible by default; JS can still add .visible, but we don't hide anything */
.card.visible,
.section.visible,
.faq-item.visible {
  /* keep as is; transition handled on base elements */
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #10293a;
}

.card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.center {
  text-align: center;
  margin-top: 40px;
}

/* =========================
   CONTACT LAYOUT & FORM
========================= */
.contact-layout {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 12px;
  text-align: center;
}

/* form */
.form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(16,41,58,0.06);
  box-shadow: 0 10px 30px rgba(16,41,58,0.06);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d7e3ff;
  margin-top: 8px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

/* =========================
   FAQ STYLES
========================= */
.faq-list {
  width: 100%;
}

.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(16,41,58,0.06);
}

.faq-q {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 700;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  font-size: 0.98rem;
  color: var(--muted);
  margin-top: 4px;
}

/* when active (JS toggles inline max-height) */
.faq-item.active .faq-q {
  color: var(--primary);
}

/* =========================
   TEXT HELPERS
========================= */
.text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(180deg, #00141f 0%, #002b3d 100%);
  color: #d6d6d6;
  padding: 80px 0 40px;
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-col {
  flex: 1 1 220px;
  text-align: left;
  min-width: 250px;
}

.footer-logo-link {
  display: inline-block;
}

.footer h4 {
  color: #f3c702;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #bfbfbf;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer ul li a:hover {
  color: #f3c702;
  padding-left: 6px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  color: #c7c7c7;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-social a:hover img {
  transform: scale(1.2);
  filter: brightness(0) invert(80%) sepia(100%) saturate(300%) hue-rotate(90deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #999;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets / medium screens */
@media (max-width: 900px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* mobile nav */
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    padding: 12px 0;
    z-index: 998;
  }

  .nav.active {
    display: flex;
    animation: fadeDown 0.25s ease forwards;
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mobile-toggle {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .logo img,
  .logo-img {
    height: 52px;
  }

  .section {
    padding: 60px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .footer-col {
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn,
  .cta {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .logo img,
  .logo-img {
    height: 48px;
  }
}
