/* Color Palette */
:root {
  --deep-ocean: #0a1f44;
  --deep-ocean2: #052744;
  --marine-blue: #1e3a8a;
  --signal-white: #ffffff;
  --cargo-gray: #f5f6f7;
  --safety-orange: #ff6f00;
  --background-grao: #FAF9F3;

  --primary: #005f8a;
  --secondary: #002f45;
  --accent: #7ed6a5;
  --light: #f5f7fa;
  --dark: #333f50;
  --hover: #333f50;
}
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, textarea {
/*  font-family: "Open Sans", sans-serif; */
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.5;
}
h1 {
  font-family: 'Playfair Display', serif;
  padding-bottom: 10px;
}

h2 {
  font-family: "Bahnschrift", sans-serif;
  /* text-shadow: 2px 2px 4px #000000; */
}

h3 {
  font-family: "Bahnschrift", sans-serif;
  font-size: 1rem;
  line-height: 2.5;
  font-weight: bold;
  /* text-shadow: 2px 2px 4px #000000; */
}

nav a,
.btn {
/*  font-family: "Montserrat", sans-serif; */
  font-family: "Roboto Slab", sans-serif;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  background: url("oceanpower.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light); /* #fff; */
  /* margin-top: -64px;*/
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
}
.hero-content {
  position: relative;
  max-width: 600px;
  padding: 1rem;
}
.hero-content h1 {
  font-size: 3.25rem;
  text-shadow: 1px 1px 3px #000000; 
  font-weight: lighter;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--safety-orange); /* var(--accent); */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.hero-content .btn:hover {
  background: #66b58a;
}
/* Metrics Snapshot */
.metrics {
  display: flex;
  justify-content: space-around;
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}
.metric {
  max-width: 200px;
}
.metric h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
/* Solutions Cards */
.solutions {
  padding: 1.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.solutions-short {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.solutions-shortest {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-invisible {
  border-radius: 8px;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  object-fit: cover;
  height: 160px;
}
.card-content {
  margin-top: -1.5rem;
  padding: 1rem;
  /* padding: 0 1rem 1rem 1rem; */
  flex: 1;
}

.card-content h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  line-height: 1.6;  
}

.card-content h1 {
  /* color: var(--secondary);  */
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.card-content h2 {
  /* color: var(--secondary); */
  font-size: 1.3rem;
  margin-top: 1.25rem; 
  margin-bottom: 0.5rem;
}

.card-content h3 {
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.card-content p {
  flex: 1;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.card-content ul li {
  flex: 1;
  line-height: 1.6;
  /* margin-bottom: 0rem; */
  font-size: 0.95rem;
  color: #555;
}
.card-content li {
  margin-left: 35px;
}

.card-content .btn {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Container */
.top-nav {
  background: var(--secondary); /* var(--bg); */
  /* opacity: 0.8; */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}
/* Logo */
.top-nav .logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--cargo-gray); /* var(--light); */
  text-decoration: none;
  font-family: "Bahnschrift", sans-serif;
  text-shadow: 1px 1px 2px #000000;  
}
/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light); /* var(--text); */
}
/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.9rem;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  text-decoration: none;
  color: var(--light); /* var(--text); */
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-menu a:hover {
  background: var(--hover);
  border-radius: 4px;
}
.nav-menu .arrow {
  font-size: 0.75rem;
}
/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--deep-ocean2); /* var(--bg); */
  opacity: 0.88;
  list-style: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  min-width: 160px;
  margin-top: -0.1rem;
  padding-top: 0.5rem;
}
.submenu li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.submenu li a:hover {
  background: var(--hover);
}

.big-page-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  align-self: center;
  margin: 0 auto;
  display: block;
}

.navigation-flow {
  display: flex;
  flex-direction: row;
}

.content-flow {
  display: flex;
  flex-direction: row;
}

@media (max-width: 820px) {
  .content-flow {
    flex-direction: column;
  }
}

@media (max-width: 1040px) {
  .navigation-flow {
    flex-direction: column;
  }
}

/* Desktop Hover */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }
  .contact-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    font-weight: lighter;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .menu-toggle {
    display: block;
  }
  .navigation-flow {
    flex-direction: row;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--deep-ocean2); /* var(--bg); */
    opacity: 0.88;
    display: none;
    gap: 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 0.25rem 0;
  }
  .has-submenu .arrow {
    margin-left: auto;
    transform: rotate(0deg);
    transition: transform 0.2s;
  }
  .has-submenu.active .arrow {
    transform: rotate(180deg);
  }
  .has-submenu .submenu {
    position: static;
    box-shadow: none;
    margin: 0;
  }
  .has-submenu.active .submenu {
    display: flex;
    flex-direction: column;
  }
  .submenu {
    background: var(--secondary); /* var(--bg); */
    opacity: 0.88;
  }
  .contact-container {
    margin: 50px auto;
  }
}

/*contact form styles */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #555;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

input:focus, textarea:focus, select:focus {
  border-color: #007BFF;
  outline: none;
}

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

.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #66b58a /* #0056b3; */
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Thank You Page Styles */
.thank-you-container {
  text-align: center;
}
.thank-you-container h2 {
  color: #2e7d32;
  /* font-size: 2rem;
  margin-bottom: 10px; */
} 
.thank-you-container h1 {
  color: #2e7d32;
} 
.thank-you-container p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}
.thank-you-container a {
  text-decoration: none;
  color: white;
  background-color: #2e7d32;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.thank-you-container a:hover {
  background-color: #1b5e20;
}

.fieldset-checkboxes {
  border: 0;
}

.fieldset-checkboxes label {
  margin-left:14px; display: flex; float:left; width: 100%; border: 0;
  line-height: 1.2;
}

.fieldset-checkboxes input[type="checkbox"] {
  width:15px; margin-right:10px
}
