/*------------------------------------------
   Global Reset & Typography
------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0d6efd;          /* Default blue – change to teal if you like */
  --secondary: #6c757d;
  --accent: #009688;           /* Gulf‑Coast teal – used for region highlights */
  --bg: #f8f9fa;
  --text: #222;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--primary); margin-bottom: .5rem; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: .375rem;
  font-weight: 600;
  transition: background .3s, color .3s;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #0b5ed7; }

.btn.secondary { background: var(--secondary); color: #fff; }
.btn.secondary:hover { background: #5c636a; }

/*------------------------------------------
   Navbar
------------------------------------------*/
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 1.25rem; font-weight: 700; }
.nav-links { list-style: none; display: flex; gap: 1.25rem; }
.nav-links a { color: #333; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.github-btn { margin-left: 1rem; }

/*------------------------------------------
   Hero
------------------------------------------*/
/*.hero {
  height: 65vh; min-height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1rem;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 1.5rem; }*/

.hero {
  /* Height can be fixed or viewport‑based */
  height: 60vh;             /* adjust as needed */
  background-image: url('img/hero.png');
  background-size: cover;    /* cover entire area */
  background-position: center;
  background-repeat: no-repeat;
  position: relative;       /* for overlay positioning */
  color: #fff;              /* default text color on image */
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1rem;
}

.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align:center;
  padding: 0 1rem;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 1.5rem; }

/*------------------------------------------
   Sections
------------------------------------------*/
.section { max-width: 960px; margin: 4rem auto; padding: 0 1rem; }
.section h2 { text-align: center; margin-bottom: 1.5rem; }

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.features article {
  background: #fff; padding: 1.5rem;
  border-radius: .5rem; box-shadow: 0 2px 6px rgba(0,0,0,.1);
  text-align: center;
}
.features article i { font-size: 2.5rem; color: var(--primary); margin-bottom: .75rem; }

.region-map img { width: 100%; border-radius: .5rem; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.region-list { list-style: disc inside; margin-top: 1rem; }

.cta-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/*------------------------------------------
   Footer
------------------------------------------*/
footer {
  background: #343a40; color: #adb5bd;
  padding: 1.5rem 1rem; text-align: center;
}
footer a { color: #fff; }
footer a:hover { color: #ffc107; }

/*------------------------------------------
   Responsive Tweaks
------------------------------------------*/
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.15rem; }
}

#faq hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #eee;
}

.map-links a {
  margin: 0 .5rem;
}

.roles-list li {
  margin-bottom: 0.75rem;
}

.radio-settings th, .radio-settings td {
  border: 1px solid #ddd;
  padding: 8px;
}

.radio-settings th {
  background: #f5f5f5;
}

/* Section headline */
#member-projects h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Project card styles */
.project-list li h3 a {
  font-size: 1.2rem;
  color:#0054c8;
  text-decoration:none;
}
.project-list li h3 a:hover {
  text-decoration:underline;
}

.project-list li p {
  margin-top: .5rem;
  color:#444;
}

/* ------------------------------------------------------------------
   Section headline
   ------------------------------------------------------------------*/
#mqtt-config h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Pre‑formatted code block
   ------------------------------------------------------------------*/
.code-block {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;   /* keeps line‑breaks but allows wrap if the viewport is narrow */
}
