/* ==========================================================================
   FishTrax 2.0 - Core Stylesheet
   Modern, responsive CSS perfectly replicating the classic FishTrax visual design.
   ========================================================================== */

:root {
  --ft-blue: #243464;
  --ft-blue-dark: #192446;
  --ft-orange: #ea5428;
  --ft-orange-hover: #d3451b;
  --ft-orange-dark: #cc3f17;
  --ft-orange-light: #fce5d3;
  --ft-gray-dark: #303030;
  --ft-gray-medium: #676767;
  --ft-gray-light: #e6e6e6;
  --ft-white: #ffffff;
  --ft-max-width: 980px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ft-gray-dark);
  background: url('/static/images/FishTraxMarketplaceBackground.jpg') no-repeat fixed center;
  background-size: cover;
  background-color: var(--ft-blue);
  line-height: 1.5;
}

a {
  color: var(--ft-blue);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Grid & Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--ft-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.col {
  padding: 0 10px;
  flex: 1 1 0%;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ftm-button {
  display: inline-block;
  background-color: var(--ft-orange);
  color: var(--ft-white) !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: capitalize;
  padding: 7px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ftm-button:hover {
  background-color: var(--ft-orange-hover);
  color: var(--ft-white);
  text-decoration: none;
}

/* Blue "Sign up Now!" button on orange header */
.ftm-button-blue {
  background-color: var(--ft-blue) !important;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ftm-button-blue:hover {
  background-color: var(--ft-blue-dark) !important;
}

.ftm-button-large {
  padding: 12px 26px;
  font-size: 16px;
}

/* ==========================================================================
   Page Header & Branding Band (ORANGE)
   ========================================================================== */
.page-header {
  background-color: var(--ft-orange);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 100;
}

.branding-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 8px 15px;
}

.branding-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.branding-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.branding-center img.logo {
  max-height: 65px;
  width: auto;
}

.branding-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.social-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-logos a {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.social-logos a:hover {
  transform: translateY(-1px);
}

.social-logos img {
  width: 22px;
  height: 22px;
}

.community-link {
  color: var(--ft-white) !important;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Bar (Top Menu - ORANGE)
   ========================================================================== */
.top-menu-bar {
  background-color: var(--ft-orange);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.top-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.top-menu > li {
  flex: 1;
  position: relative;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.top-menu > li:last-child {
  border-right: none;
}

.top-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  color: var(--ft-white);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.top-menu > li:hover > a {
  background-color: var(--ft-orange-dark);
  color: var(--ft-white);
}

/* Dropdown Menu */
.top-menu ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 180px;
  background-color: var(--ft-orange);
  list-style: none;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 200;
  border-top: 2px solid var(--ft-blue);
}

.top-menu > li:hover ul.dropdown {
  display: block;
}

.top-menu ul.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: var(--ft-white);
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.15s ease;
}

.top-menu ul.dropdown li a:hover {
  background-color: var(--ft-orange-dark);
  color: var(--ft-white);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
  background-color: var(--ft-white);
  margin-top: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

/* Video Toggle Bar (DARK BLUE CONTAINER, ORANGE BUTTON) */
.video-toggle-bar {
  background-color: var(--ft-blue);
  padding: 14px 15px;
  text-align: center;
}

.video-toggle-bar a {
  background-color: var(--ft-orange);
  color: var(--ft-white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 24px;
  display: inline-block;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-toggle-bar a:hover {
  background-color: var(--ft-orange-hover);
}

/* Responsive YouTube Video Container */
.video-embed-container {
  background-color: #000;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-embed-container iframe,
.video-embed-container #marketingVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.video-embed-container.hide-video {
  padding-bottom: 0 !important;
  height: 0 !important;
}

/* Landing Banner */
.landing-banner {
  position: relative;
  text-align: center;
}

.landing-banner img {
  width: 100%;
  height: auto;
}

.banner-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  color: var(--ft-white);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

/* Arrow Strip (Seafood Lovers -> Retailers -> Dealers) */
.arrow-strip-container {
  background-color: #f7f7f7;
  border-top: 1px solid var(--ft-gray-light);
  border-bottom: 1px solid var(--ft-gray-light);
  padding: 15px 0;
}

.arrow-strip-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.arrow-strip-table td {
  padding: 8px;
  vertical-align: middle;
}

.arrow-strip-table h4 {
  color: var(--ft-blue);
  font-size: 20px;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.arrow-pane img.arrows {
  height: 24px;
  margin: 0 auto;
}

/* Three Columns Section */
.three-columns-section {
  padding: 30px 20px 20px 20px;
}

.feature-box {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-box h5 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ft-blue);
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.feature-box .now-you-can {
  font-size: 16px;
  font-weight: 700;
  color: var(--ft-orange);
  margin-bottom: 15px;
}

.feature-box .button-wrapper {
  margin-top: auto;
}

.feature-box .button-wrapper .ftm-button {
  width: 100%;
}

/* ==========================================================================
   Content & Informative Pages
   ========================================================================== */
.content-box {
  padding: 30px;
}

.content-box h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--ft-blue);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--ft-orange);
  padding-bottom: 8px;
}

.content-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ft-blue);
  margin: 25px 0 12px 0;
}

.content-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ft-blue);
  margin: 15px 0 8px 0;
}

.content-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
}

.content-box hr {
  border: 0;
  height: 1px;
  background: var(--ft-gray-light);
  margin: 25px 0;
}

/* Bio Cards */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.bio-card {
  background: #fdfdfd;
  border: 1px solid var(--ft-gray-light);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.bio-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--ft-orange);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.bio-card h4 {
  color: var(--ft-blue);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bio-card .title {
  color: var(--ft-orange);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bio-card p {
  font-size: 13.5px;
  text-align: left;
  line-height: 1.55;
  color: #444;
  margin-bottom: 0;
}

/* Forms */
.form-card {
  max-width: 500px;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--ft-gray-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--ft-blue);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--ft-orange);
  box-shadow: 0 0 0 2px rgba(234, 84, 40, 0.2);
}

/* ==========================================================================
   Page Footer
   ========================================================================== */
.page-footer {
  margin-top: 30px;
  padding: 20px 0 35px 0;
}

.footer-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-content p {
  margin-bottom: 6px;
}

.footer-content p:last-child {
  margin-bottom: 0;
  font-size: 12px;
  color: #666;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .branding-band {
    flex-direction: column;
    gap: 12px;
  }

  .branding-left, .branding-center, .branding-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .banner-text {
    font-size: 24px;
    bottom: 10px;
  }

  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .arrow-strip-table h4 {
    font-size: 15px;
  }

  .top-menu > li > a {
    font-size: 12px;
    padding: 10px 4px;
  }
}
