/* Earl Francis – Independent Legacy Data Consultant
   Shared styles. System fonts, no external dependencies. */

:root {
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #2c5f7a;
  --border: #e0e0e0;
  --bg: #fff;
  --bg-subtle: #f8f9fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Navigation */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  background: var(--bg);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero .headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.25rem 0 1rem;
}

.hero .value-prop {
  font-size: 1.1rem;
  max-width: 36ch;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Lists */
ol, ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

ol li, ul li {
  margin-bottom: 0.5rem;
}

.what-i-dont ul {
  list-style-type: disc;
}

/* Engagement block */
.engagement {
  background: var(--bg-subtle);
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.engagement h2 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
}

button[type="submit"] {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

.contact-direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--accent);
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.form-success {
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* About page sections */
.about-section {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

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

  .hero .headshot {
    width: 120px;
    height: 120px;
  }

  nav ul {
    gap: 1rem;
  }
}

/* --- Netlify Contact Form Styling --- */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 18px;
}

.form-card p {
  margin: 0 0 14px 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: #b00020;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.45);
}

button[type="submit"] {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: #111;
  color: #fff;
}

button[type="submit"]:hover {
  opacity: 0.92;
}

.hidden {
  display: none;
}

footer p {
  text-align: center;
}

