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

:root {
  --primary-blue: #1a2332;
  --accent-blue: #3978e6;
  --light-gray: #f5f6fa;
  --mid-gray: #e6e8ee;
  --text-gray: #495160;
  --accent-red: #ec1c24;
  --white: #fff;
  --shadow: 0 2px 24px 0 rgba(30,40,90,.09);
  --radius: 16px;
}

html, body {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: var(--light-gray);
  color: var(--primary-blue);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--accent-red);
}
img {
  max-width: 100%;
  display: block;
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  background: var(--white);
}
.logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-blue);
  letter-spacing: 1px;
}
nav {
  display: flex;
  gap: 1rem;
}
nav a {
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-weight: 500;
  color: var(--primary-blue);
  transition: background .2s, color .2s;
}
nav a.active, nav a:hover {
  background: var(--accent-blue);
  color: var(--white);
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: 0.5rem;
  z-index: 20;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 4px 0;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, var(--primary-blue) 60%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--light-gray);
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 32px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.btn.primary {
  background: var(--accent-blue);
  color: var(--white);
}
.btn.secondary {
  background: var(--white);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}
.btn.primary:hover, .btn.secondary:hover {
  background: var(--accent-red);
  color: var(--white);
}
.btn.link {
  background: none;
  color: var(--accent-blue);
  box-shadow: none;
  padding: 0;
  font-size: 1rem;
  text-decoration: underline;
}
.btn.link:hover {
  color: var(--accent-red);
}

/* Services Section */
.services-preview {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 1120px;
  padding: 2rem 1rem 2.5rem 1rem;
}
.services-preview h2 {
  text-align: center;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.service-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px 0 rgba(30,40,90,.06);
  padding: 1.5rem 1.25rem;
  flex: 1 1 220px;
  max-width: 250px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 4px 24px 0 rgba(57,120,230,.16);
  transform: translateY(-4px) scale(1.03);
}
.service-card .icon {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.98rem;
  color: var(--text-gray);
  margin: 0;
}

/* Trust Section */
.trust {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--mid-gray);
  padding: 1rem;
  border-radius: var(--radius);
  max-width: 600px;
  margin: 1.5rem auto;
  font-size: 1rem;
  color: var(--primary-blue);
}
.trust-logos img {
  height: 32px;
  margin-right: 1rem;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid var(--accent-blue);
  background: var(--white);
}

/* Gallery Preview */
.gallery-preview {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 1040px;
  padding: 2rem 1rem;
}
.gallery-preview h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.gallery-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.gallery-row img {
  border-radius: var(--radius);
  max-width: 32%;
  min-width: 100px;
  object-fit: cover;
  box-shadow: 0 1px 6px 0 rgba(30,40,90,.08);
}

/* Testimonials */
.testimonials {
  background: var(--mid-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  text-align: center;
}
.testimonials h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.testimonials blockquote {
  font-style: italic;
  color: var(--primary-blue);
  border-left: 3px solid var(--accent-blue);
  margin: 1.5rem auto;
  padding-left: 1.5rem;
  max-width: 500px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 6px 0 rgba(30,40,90,.06);
}
.testimonials footer {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* FAQ Preview */
.faq-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.25rem;
}
.faq-preview h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}
.faq-item {
  flex: 1 1 340px;
  max-width: 380px;
  min-width: 220px;
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 6px 0 rgba(30,40,90,.04);
  color: var(--primary-blue);
}
.faq-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-blue);
}

/* Footer */
footer {
  background: var(--primary-blue);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem 0;
  box-shadow: var(--shadow);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  gap: 2rem;
  padding: 0 1rem;
}
.footer-content > div {
  min-width: 180px;
}
.footer-links a, .socials a {
  color: var(--light-gray);
  font-size: 1rem;
  margin-right: 0.9rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover, .socials a:hover {
  color: var(--accent-red);
}
.socials a {
  font-weight: 600;
  letter-spacing: 2px;
}
.footer-copy {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 850px) {
  .service-cards,
  .gallery-row,
  .faq-list,
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .service-card,
  .faq-item {
    max-width: 100%;
    min-width: 0;
  }
  .gallery-row img {
    max-width: 95%;
    margin-bottom: 0.75rem;
  }
  .footer-content {
    gap: 1.5rem;
  }
  nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 0 0 12px 12px;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.7rem 0.8rem 1.2rem 0.8rem;
    min-width: 0;
    display: none;
    z-index: 999;
    text-align: center;
  }
  nav.open {
    display: flex;
  }
  nav a {
    width: 100%;
    text-align: center;
    margin: 0.25rem 0;
    padding: 0.7rem 0.8rem;
    border-radius: 18px;
    font-size: 1.08rem;
  }
  .hamburger {
    display: flex;
  }
  .navbar {
    position: relative;
  }
}
@media (max-width: 600px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 500px) {
  .navbar {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.7rem 0.5rem;
  }
  nav {
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 1.1rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.98rem;
    min-width: 120px;
  }
  .services-preview,
  .gallery-preview,
  .testimonials,
  .faq-preview,
  main,
  .about-main,
  .faq-main {
    padding: 0.6rem 0.1rem;
  }
  .service-card,
  .faq-item {
    padding: 1rem 0.5rem;
  }
  .logo img {
    height: 38px;
    width: 38px;
  }
  .hamburger {
    width: 32px;
    height: 32px;
  }
  nav {
    top: 54px;
    min-width: 120px;
    padding: 0.3rem 0.7rem;
  }
}

/* Ultra-small screens: ≤400px */
@media (max-width: 400px) {
  html, body {
    font-size: 14px;
  }
  .navbar {
    padding: 0.4rem 0.2rem;
  }
  .logo img {
    height: 30px;
    width: 30px;
  }
  .logo span {
    font-size: 1rem;
  }
  .btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.92rem;
    min-width: 90px;
  }
  .service-card,
  .faq-item {
    padding: 0.7rem 0.2rem;
    font-size: 0.95rem;
  }
  .services-preview,
  .gallery-preview,
  .testimonials,
  .faq-preview,
  main,
  .about-main,
  .faq-main {
    padding: 0.3rem 0.02rem;
  }
  .hero-content h1 {
    font-size: 0.95rem;
  }
  .hero-content p {
    font-size: 0.85rem;
  }
  .footer-content {
    gap: 0.7rem;
  }
}

/* Ultra-narrow screens: ≤350px */
@media (max-width: 350px) {
  html, body {
    font-size: 12px;
  }
  .navbar {
    padding: 0.2rem 0.05rem;
  }
  .logo img {
    height: 22px;
    width: 22px;
  }
  .logo span {
    font-size: 0.85rem;
  }
  .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    min-width: 70px;
  }
  .service-card,
  .faq-item {
    padding: 0.4rem 0.05rem;
    font-size: 0.9rem;
  }
  .services-preview,
  .gallery-preview,
  .testimonials,
  .faq-preview,
  main,
  .about-main,
  .faq-main {
    padding: 0.1rem 0;
  }
  .hero-content h1 {
    font-size: 0.8rem;
  }
  .hero-content p {
    font-size: 0.7rem;
  }
  .footer-content {
    gap: 0.3rem;
  }
}

body {
  top: 0 !important;
}