/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0050a3;
  color: #333;
  line-height: 1.6;
}

.hero {
  background: linear-gradient(rgba(0, 80, 163, 1), rgba(0, 80, 163, 1)),
              url('backgroud.jpg') center/cover no-repeat;
  color: white;
  padding: 2rem 1.5rem 4rem;
  position: relative;
}

/* Navigation and Logo styles */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  padding: 0.5rem 1.5rem;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
}

.logo-pic {
  width: 14%;
  height: auto;
  max-width: 150px;
}

.logo-pic-s {
  width: 8%;
  height: auto;
}

.top-nav nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.top-nav nav a:hover {
  color: black;
}

/* Mobile Dropdown Navigation - pushes content down */
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: #0050a3;
  padding: 0.75rem 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  text-align: center;
}

.nav-links.show {
  display: flex;
  max-height: 500px;
  opacity: 1;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Text Centered */
.hero-content {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cta-button {
  background-color: #ffcc00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e6b800;
}

.features {
  padding: 4rem 1.5rem;
  background-color: #fff;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-left: 5px solid #1e90ff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: left;
  font-size: 1.1rem;
}

.quote-section,
.contact-info {
  padding: 3rem 6rem;
  background-color: hsl(0, 0%, 100%);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.quote-section h2,
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0050a3;
}

.quote-section p,
.contact-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.contact-info a {
  color: #1e90ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.quote-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.quote-form input,
.quote-form select,
.quote-form textarea,
.quote-form button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.quote-form button {
  background-color: #0050a3;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quote-form button:hover {
  background-color: #0d6efd;
}

.gallery-section {
  text-align: center;
  color: white;
  font-size: 2rem;
  padding: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

footer {
  background-color: #0050a3;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

.info-section {
  background-color: #f4f6f8;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.info-block.reverse {
  flex-direction: row-reverse;
}

.info-text {
  flex: 1 1 45%;
  text-align: left;
}

.info-text h2 {
  font-size: 2rem;
  color: #0050a3;
  margin-bottom: 1rem;
}

.info-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

.info-image {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
}

.info-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.fade-right::before,
.fade-left::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  pointer-events: none;
}

.fade-right::before {
  right: 0;
  background: linear-gradient(to left, #f4f6f8 0%, rgba(244, 246, 248, 0) 100%);
}

.fade-left::before {
  left: 0;
  background: linear-gradient(to right, #f4f6f8 0%, rgba(244, 246, 248, 0) 100%);
}

/* Responsive Layout */
@media (max-width: 768px) {
  /* Header & Navigation */
  .top-nav {
    flex-direction: column;
    align-items: center;
  }

  .logo-pic {
    width: auto;
    max-width: 180px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links a {
    display: block;
    margin: 0.5rem 0;
    font-weight: 600;
    color: white;
    padding: 0;
  }

  .nav-links a:hover {
    color: black;
  }

  .hero {
    padding-top: 3rem;
  }

  .info-block,
  .info-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .info-text,
  .info-image {
    flex: 1 1 100%;
  }

  .fade-right::before,
  .fade-left::before {
    display: none;
  }

  footer {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

/* Desktop nav links styling (horizontal and visible) */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    padding: 0;
  }

  .nav-links a {
    margin-left: 1.5rem;
    display: inline-block;
    font-weight: 500;
    color: white;
  }

  .nav-links a:hover {
    color: black;
  }
}
