/* 1. Base Rules & Typography */
:root {
  font-size: 18px;
  --text-color: #333333;
  --bg-color: #FFFFF6;
  --link-color: #005f87; /* A darker, more professional blue */
  --border-color: #dddddd;
  --button-bg: var(--link-color);
  --button-text: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0 1rem;
}

/* 2. Layout & Spacing */
header, main, footer {
  max-width: 650px;
  margin: 2rem auto;
}

header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 250px; /* Adjust as needed */
  height: auto;
  margin-bottom: 1rem;
}

.logo-link {
  display: inline-block;
}

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

section {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

section:last-of-type {
  border-bottom: none;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 3rem;
}


/* 3. Headings */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* 4. Links & Other Elements */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 600;
}

/* 5. Forms & Buttons */
form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

textarea {
    font-family: inherit; /* Ensures textarea uses the body font */
    line-height: 1.5;
}

.button, a.button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease;
}

.button:hover, a.button:hover {
    opacity: 0.85;
    text-decoration: none;
}

.email-direct {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}