/* Grand Lake Living - MVP Styles */

:root {
  --primary: #1e5f8a;
  --primary-dark: #143d5a;
  --accent: #f4a024;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f5f7f9;
  --border: #e0e0e0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

/* Navigation */
header {
  background: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links > a,
.nav-item {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-links > a:hover,
.nav-item:hover {
  background: rgba(30,95,138,0.1);
  border-radius: 4px;
}

.nav-item {
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  padding: 0.5rem 0;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: #f5f7f9;
  color: #1e5f8a;
}

.nav-arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

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

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 500;
}

/* Directory Listings */
.listing {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.listing:last-child {
  border-bottom: none;
}

.listing h3 {
  margin-top: 0;
}

.listing-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Placeholder Notice */
.placeholder-notice {
  background: var(--accent);
  color: white;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Footer */
footer {
  background: #fff;
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--primary);
}

footer a:hover {
  color: var(--primary-dark);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 35px;
  width: auto;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links > a,
  .nav-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .nav-dropdown {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 250px;
  }
  
  .nav-item:hover .nav-dropdown {
    transform: translateX(-50%) translateY(0);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 1rem;
  }
}
