/* ------------------ Variables ------------------ */
:root {
  /* Color Palette */
  --deep-nautical-blue: #014f86; /* Headers, primary buttons, logo */
  --medium-nautical-blue: #017bb5; /* Sub-headers, secondary buttons, links */
  --vibrant-coral-orange: #f5a623; /* CTAs, highlights, icons */
  --green: #72ae60; /* Success messages, growth indicators */
  --light-gray: #f4f7fa; /* Backgrounds, large sections */
  --dark-gray: #333333; /* Body text, primary content */
  --soft-blue-gray: #b0c4de; /* Borders, dividers, secondary elements */

  /* Additional Colors */
  --white: #ffffff;
}

/* ------------------ Global Styles ------------------ */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  scroll-behavior: smooth;
}

a {
  color: var(--deep-nautical-blue);
  text-decoration: none;
}

a:hover {
  color: var(--vibrant-coral-orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------ Header Styles ------------------ */
header {
  background: var(--deep-nautical-blue);
  padding: 10px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ------------------ Navigation Styles ------------------ */
nav.container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center all items horizontally */
  position: relative; /* For absolute positioning of menu-icon */
  padding: 0 20px;
  height: 70px; /* Maintain consistent header height */
  box-sizing: border-box; /* Include padding in width calculations */
  flex-wrap: nowrap; /* Prevent wrapping */
}

/* Left Section */
.nav-left {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 55px;
  height: auto;
  width: auto;
}

/* Center Section */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Links */
.nav-center .nav-link {
  margin: 0 15px;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  font-size: 1em; /* Adjust font size as needed */
  white-space: nowrap; /* Prevent text wrapping */
}
/* Override link colors within the mobile navigation menu */
.nav-mobile .nav-link {
  color: var(--white); /* Set text color to white */
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
  color: var(
    --vibrant-coral-orange
  ); /* Optional: Maintain hover and active states */
}

/*.nav-mobile .btn.primary {
    font-size: 1.2em;
}*/

.nav-center .nav-link.active::after,
.nav-center .nav-link:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--vibrant-coral-orange);
  bottom: -5px;
  left: 0;
}

.nav-center .nav-link:hover {
  color: var(--vibrant-coral-orange);
}

/* Right Section */
.nav-right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
}

.nav-right .btn {
  margin-left: 10px;
}

/* Button Styles */
.btn {
  background-color: var(--deep-nautical-blue);
  color: var(--white);
  padding: 6px 12px; /* Adjust padding as needed */
  border: none;
  border-radius: 5px;
  font-size: 0.9em; /* Adjust font size as needed */
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.btn.secondary {
  background-color: var(--deep-nautical-blue);
}

.btn.cta {
  background-color: var(--vibrant-coral-orange);
}

.btn.success {
  background-color: var(--green);
}

.btn:hover {
  background-color: var(--vibrant-coral-orange);
  color: var(--white);
}

/* LinkedIn Logo Styling */
.linkedin-logo {
  width: 24px; /* Adjust size as needed */
  height: 24px;
  margin-left: 10px;
}

/* Menu Icon for Mobile */
.menu-icon {
  display: none; /* Hidden by default */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon .menu-icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile Navigation Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px; /* Align with header height */
  left: 0;
  width: 100%;
  background-color: var(--deep-nautical-blue);
  color: var(--white);
  padding: 20px 0;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav-link {
  margin: 10px 0;
  text-align: center;
  font-size: 1.2em; /* Increased font size for better visibility on mobile */
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-mobile .btn {
  margin: 10px auto;
  width: 80%; /* Make buttons wider on mobile */
  text-align: center;
}

/* ------------------ Scroll Margin for Sections ------------------ */
section {
  scroll-margin-top: 80px; /* Adjust based on header height + padding */
}

/* ------------------ Responsive Styles ------------------ */
@media (max-width: 1024px) {
  /* Intermediate breakpoint */
  /* Reduce margins to save space */
  .nav-center .nav-link {
    margin: 0 10px;
    font-size: 0.95em;
  }

  /* Optionally reduce logo size further */
  .logo-img {
    max-height: 50px;
  }
}

@media (max-width: 900px) {
  /* Main breakpoint to trigger mobile menu */
  .nav-center {
    display: none; /* Hide navigation links on smaller screens */
  }

  .nav-right {
    display: none; /* Hide buttons on smaller screens */
  }

  .menu-icon {
    display: block; /* Show menu icon on mobile */
  }

  /* Adjust logo size on mobile if needed */
  .logo-img {
    max-height: 45px;
  }

  /* Adjust nav-mobile link sizes */
  .nav-mobile .nav-link {
    font-size: 1.1em;
  }

  .nav-mobile .btn {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Additional styles if needed */
  /* Adjust nav-mobile link sizes */
  .nav-mobile .nav-link {
    font-size: 1.1em;
  }
  .logo-img {
    max-height: 45px;
  }

  .nav-mobile .btn {
    font-size: 1em;
  }
}

/* ------------------ Hero Section ------------------ */
.hero {
  background: linear-gradient(rgba(1, 84, 134, 0.6), rgba(1, 84, 134, 0.6)),
    url("images/Sailboat2.webp") no-repeat center center/cover;
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero .tagline {
  font-size: 1.5em;
  margin-bottom: 30px;
}

.hero .btn.hero-btn {
  background-color: var(--vibrant-coral-orange);
  color: var(--white);
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

.hero .btn.hero-btn:hover {
  background-color: var(--deep-nautical-blue);
  color: var(--white);
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 15px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero .tagline {
    font-size: 1.2em;
  }
}

/* ------------------ Main Content ------------------ */
.main-content {
  padding: 50px 20px;
  text-align: center;
}

.main-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--deep-nautical-blue);
}

.main-content p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: var(--dark-gray);
}

/* ------------------ What We Look For Section ------------------ */
.tiles-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
  max-width: 1234.5px; /* Sets the maximum width */
  margin: 0 auto;
  padding: 0 20px;
}

.tile {
  background-color: var(--white);
  padding: 20px;
  border: 1px solid var(--soft-blue-gray);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 350px; /* Sets the maximum width */
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.tile h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--deep-nautical-blue);
}

.tile p {
  font-size: 1em;
  color: var(--dark-gray);
}

/* ------------------ Responsive Breakpoints ------------------ */
@media (min-width: 600px) {
  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tiles-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .tiles-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------ Team Section ------------------ */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 40px; /* row gap | column gap */
  justify-items: center;
  align-items: start;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  text-align: center;
  width: 100%;
  max-width: 240px;
}

.team-member a {
  text-decoration: none;
  color: inherit;
}

.team-member a .profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.team-member a:hover .profile-img {
  transform: scale(1.03);
}

.team-member a h3 {
  margin: 8px 0 4px;
  font-size: 1.1em;
  color: var(--deep-nautical-blue);
}

.team-member a .role {
  margin-top: 6px;
  font-size: 0.95em;
  color: var(--dark-gray);
}

@media (max-width: 600px) {
  .team-members {
    gap: 20px;
    margin-top: 32px;
  }

  .team-member a .profile-img {
    width: 140px;
    height: 140px;
  }
}

/* ------------------ Partners Section ------------------ */
.partners-section {
  padding: 50px 20px;
  background-color: var(--white);
  color: var(--deep-nautical-blue);
  text-align: center;
}

.partners-section.no-background {
  background-color: transparent;
}

.partners-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.partner-card {
  background-color: var(--white);
  padding: 20px;
  border: 1px solid var(--soft-blue-gray);
  border-radius: 10px;
  width: 200px;
  transition: transform 0.3s;
}

.partner-card:hover {
  transform: scale(1.05);
}

.partner-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.linkedin-link {
  display: inline-block;
  margin-top: 0px;
  color: var(--deep-nautical-blue);
  text-decoration: none;
  font-weight: bold;
}

.linkedin-link:hover {
  color: var(--vibrant-coral-orange);
}

@media (max-width: 768px) {
  .partners-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ------------------ Footer Styles ------------------ */
footer {
  background-color: var(--deep-nautical-blue);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  margin: 5px 0;
}

.footer-offices {
  margin: 10px 0;
}

.footer-offices p {
  margin: 5px 0;
  font-size: clamp(0.8em, 2vw, 1em); /* Responsive font size */
  white-space: nowrap; /* Prevent text from wrapping */
}

.footer-offices .our-offices {
  font-size: clamp(1em, 2vw, 1.2em); /* Responsive font size */
  color: var(--white);
  margin: 0 0 5px 0; /* Add bottom margin for spacing */
}

.footer-offices .office-locations {
  font-size: clamp(0.8em, 2vw, 1em); /* Responsive font size */
  color: var(--white);
  margin: 0;
}

.linkedin-logo-footer {
  width: 24px; /* Adjust size as needed */
  height: 24px;
  margin-top: 10px;
}

/* ------------------ Contact Section ------------------ */
.contact-section {
  padding: 50px 20px;
  background-color: var(--white);
  color: var(--deep-nautical-blue);
}

.contact-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-align: center;
}

.contact-section p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  text-align: center;
}

.form-wrapper {
  max-width: 800px; /* Increased width to accommodate iframe */
  margin: 0 auto;
}

.form-wrapper iframe {
  width: 100%;
  height: 800px; /* Adjust as needed to prevent scrollbars */
  border: none;
}

/* ------------------ Thank You Section ------------------ */
.thank-you-section {
  padding: 100px 20px;
  text-align: center;
}

.thank-you-section h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.thank-you-section p {
  font-size: 1.5em;
  margin-bottom: 30px;
}

.thank-you-section .btn {
  background-color: var(--deep-nautical-blue);
  color: var(--white);
  padding: 15px 30px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.thank-you-section .btn:hover {
  background-color: var(--vibrant-coral-orange);
  color: var(--white);
}

/* ------------------ Login Section ------------------ */
.login-section {
  padding: 80px 20px;
  background-color: var(--light-gray);
  color: var(--deep-nautical-blue);
  text-align: center;
}

.login-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.login-section p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

.login-section .form-wrapper {
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-section .form-group {
  margin-bottom: 25px;
  text-align: left;
}

.login-section .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--deep-nautical-blue);
}

.login-section .form-group label span {
  color: red;
}

.login-section .form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--soft-blue-gray);
  border-radius: 5px;
  font-size: 1em;
}

.submit-btn {
  width: 100%;
  background-color: var(--deep-nautical-blue);
  color: var(--white);
  padding: 10px; /* Reduced padding */
  font-size: 0.9em; /* Reduced font size */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.submit-btn:hover {
  background-color: var(--vibrant-coral-orange);
  color: var(--white);
}

@media (max-width: 768px) {
  .login-section h1 {
    font-size: 2em;
  }

  .login-section .form-wrapper {
    padding: 30px;
  }

  .login-section .form-group input {
    font-size: 0.9em;
  }

  .submit-btn {
    padding: 12px;
    font-size: 0.9em;
  }
}

/* ------------------ Custom Modal Styles ------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  margin: auto;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.modal-buttons .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: var(--vibrant-coral-orange);
  color: var(--white);
  transition: background-color 0.3s, color 0.3s;
}

.modal-buttons .btn:hover {
  background-color: var(--deep-nautical-blue);
  color: var(--white);
}
