:root {
  --green: #14532d;
  --orange: #c2410c;
  --orange-dark: #9a3412;
  --text: #1f2937;
  --bg: #ffffff;
  --surface: #f3f4f6;
  --border: #d1d5db;
  --field-border: #6b7280;
  --error: #b91c1c;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.photo-credit {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
  margin: 8px 0 0;
}
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--green);
  line-height: 1.2;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 1.6em 0 0.5em;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3em;
}

/* ---------- Header and navigation ---------- */
header {
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
header p {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#navToggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 8px 14px;
  font:
    600 0.95rem "Open Sans",
    Arial,
    sans-serif;
  cursor: pointer;
}
#navToggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }
  #navToggle {
    display: block;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
  nav.nav-open {
    display: flex;
  }
  nav a {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}
/* Skip link: hidden until a keyboard user presses Tab */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--green);
  padding: 10px 14px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Visible focus for keyboard users ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
header a:focus-visible,
.hero :focus-visible {
  outline-color: #fff;
}

/* ---------- Main content ---------- */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
main a {
  color: var(--green);
}

.hero {
  background: var(--green);
  color: #fff;
  padding: 36px 28px;
  border-radius: 12px;
  margin-bottom: 32px;
}
.hero h1,
.hero h2 {
  color: #fff;
}
.hero h2 {
  margin-top: 1.4em;
}

/* ---------- Buttons ---------- */
button,
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  border-radius: 8px;
  padding: 12px 22px;
  font:
    600 1rem "Open Sans",
    Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* ---------- Package cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0;
}
article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
article p {
  margin: 0 0 0.6em;
}

/* ---------- Forms ---------- */
label {
  font-weight: 600;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 480px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--field-border);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea {
  min-height: 96px;
}
fieldset {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  max-width: 480px;
}
legend {
  font-weight: 600;
  padding: 0 6px;
}
fieldset label {
  font-weight: 400;
  display: inline-block;
  padding: 4px 0;
}

/* ---------- Error messages ---------- */

[role="alert"]:not(.js-error) {
  border: 2px solid var(--error);
  color: var(--error);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 20px;
  font-weight: 600;
}
[role="alert"] p {
  margin: 0 0 0.4em;
}
[role="alert"] ul {
  margin: 0;
  padding-left: 1.2em;
}
[role="status"] {
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 20px;
  font-weight: 600;
}
.js-error {
  display: block;
  color: var(--error);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}
.js-error:not(:empty) {
  border: 2px solid var(--error);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 0 0;
}
/* ---------- Tables (scroll sideways on a phone) ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}
caption {
  text-align: left;
  padding: 12px;
  font-weight: 600;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--surface);
}
tbody tr:last-child > * {
  border-bottom: 0;
}
td form {
  display: grid;
  gap: 6px;
  min-width: 200px;
}
td form select {
  max-width: none;
}

/* ---------- Detail list on lead.php ---------- */
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px;
  font-size: 0.92rem;
}
footer p {
  max-width: 1040px;
  margin: 0 auto 0.4em;
}

/* ---------- Phone layout ---------- */
@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }
  main {
    padding: 24px 16px 40px;
  }
  .hero {
    padding: 28px 20px;
  }
}
