/* Global Styles */
:root {
  --primary-dark: #002147; /* Deep Navy Blue */
  --primary-accent: #008080; /* Teal / Seafoam Green */
  --neutral-base: #F5F5DC; /* Sandy Tan / Beige */
  --warm-accent: #FF8C00; /* Sunset Orange / Gold */
  --light-gray: #E0E0E0;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary-dark);
  background-color: var(--neutral-base);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: var(--primary-accent);
  color: var(--white);
  border: none;
}

.primary-btn:hover {
  background-color: #006666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  font-size: 1.8rem;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 1.5rem;
}

.nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: var(--primary-accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url('https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Captain's Tip Section */
.captains-tip {
  padding: 3rem 0;
  background-color: var(--white);
}

.captains-tip h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.tip-card {
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

/* Dashboard Preview Section */
.dashboard-preview {
  padding: 3rem 0;
  background-color: var(--neutral-base);
}

.dashboard-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.weather-widget, .tide-widget {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
  background-color: var(--white);
}

.content-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.content-card {
  background-color: var(--neutral-base);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
}

/* Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.dashboard-widget {
  background-color: var(--neutral-base);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.weather-display, .tide-display {
  margin-top: 1rem;
}

.weather-item, .tide-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.weather-label, .tide-label {
  font-weight: 600;
}

.weather-value, .tide-value {
  color: var(--primary-accent);
}

.tide-chart-placeholder {
  margin-top: 1rem;
  text-align: center;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 4px;
}

.chart-placeholder-text {
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-accent);
}

.footer-section form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
}

.footer-section button {
  background-color: var(--primary-accent);
  color: var(--white);
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-section button:hover {
  background-color: #006666;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav ul li {
    margin: 0.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .dashboard-grid, .dashboard-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .hero {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .content-grid, .dashboard-content {
    grid-template-columns: 1fr;
  }

  .content-card, .weather-widget, .tide-widget, .dashboard-widget {
    padding: 1.5rem;
  }
}