/* ===========================
   Boat of the Day — Styles
   Mobile-first responsive CSS
   =========================== */

/* --- Reset & Base --- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a2a3a;
  background-color: #f8fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */

h1, h2, h3 {
  line-height: 1.2;
  color: #0d2137;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Links — 44px minimum touch target on mobile --- */

a {
  color: #0b6faa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #094d77;
  text-decoration: underline;
}


/* --- Header & Navigation --- */

header {
  background-color: #0d2137;
  color: #ffffff;
  padding: 1rem;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

nav .site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

nav .site-name:hover,
nav .site-name:focus {
  color: #a8d8ea;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  display: inline-block;
  color: #a8d8ea;
  padding: 0.75rem 1rem;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  border-radius: 4px;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* --- Main Content --- */

main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
}

/* --- Sections --- */

section {
  margin-bottom: 2.5rem;
}

section:last-child {
  margin-bottom: 0;
}

/* --- Hero Section --- */

.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: #3a5a7c;
  margin-bottom: 1.5rem;
}

/* --- CTA Button — 44px+ touch target --- */

.cta {
  display: inline-block;
  background-color: #0b6faa;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  min-height: 44px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta:hover,
.cta:focus {
  background-color: #094d77;
  color: #ffffff;
  text-decoration: none;
}

/* --- Features / Description --- */

.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  background-color: #ffffff;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  padding: 1.25rem;
}

/* --- Privacy Policy Sections --- */

.policy-section {
  background-color: #ffffff;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.policy-section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.policy-section li {
  margin-bottom: 0.35rem;
}


/* --- Footer --- */

footer {
  background-color: #0d2137;
  color: #a8d8ea;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #a8d8ea;
  display: inline-block;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
}

footer a:hover,
footer a:focus {
  color: #ffffff;
}

footer p {
  margin-bottom: 0.5rem;
}

/* ===========================
   Desktop Layout — 768px+
   =========================== */

@media (min-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
  }

  main {
    padding: 3rem 2rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero .tagline {
    font-size: 1.35rem;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
  }

  /* Desktop links don't need oversized touch targets */
  nav ul li a {
    min-height: auto;
    min-width: auto;
    padding: 0.5rem 0.75rem;
  }

  footer a {
    min-height: auto;
    min-width: auto;
  }
}
