:root {
  --navy: #0b1f3a;
  --deep-green: #0d3b2e;
  --forest: #145c45;
  --gold: #d4a017;
  --gold-light: #f0c14b;
  --cream: #f7f3eb;
  --white: #ffffff;
  --muted: #5a6a7a;
  --danger: #b33a3a;
  --warn: #c47d0a;
  --ok: #1a7a4c;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 31, 58, 0.12);
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--forest); }
a:hover { color: var(--gold); }

.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-green) 100%);
  color: var(--white);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name span { color: var(--gold-light); }

.brand-sub {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 400;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

.hero {
  background: linear-gradient(145deg, var(--navy), var(--deep-green));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 36rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(240,193,75,0.15); color: var(--gold-light); }

.btn-green {
  background: var(--forest);
  color: var(--white);
}
.btn-green:hover { background: var(--deep-green); color: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.card h2, .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--navy);
}

.note, .callout {
  background: #eef6f1;
  border-left: 4px solid var(--forest);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.callout-warn {
  background: #fff8e8;
  border-left-color: var(--gold);
}

.callout-danger {
  background: #fceeee;
  border-left-color: var(--danger);
}

.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.9rem 0 0.3rem;
  font-size: 0.92rem;
}

label .req { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c5cdd6;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

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

.hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions { margin-top: 1.25rem; }

.display-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.display-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
}

.display-photo {
  background: linear-gradient(160deg, var(--deep-green), var(--navy));
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.display-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.display-body { padding: 1rem; }

.display-body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.meta { font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.calc-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.calc-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 8px;
  background: #eef6f1;
  border: 1px solid #b8d9c8;
}

.calc-result strong { font-size: 1.25rem; color: var(--deep-green); }

.calc-warn {
  background: #fff8e8;
  border-color: #e8c878;
  color: var(--navy);
}

.calc-danger {
  background: #fceeee;
  border-color: #e8a0a0;
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a { color: var(--gold-light); }

.calc-list { list-style: none; padding: 0; margin: 1rem 0; }
.calc-list li {
  background: var(--white);
  margin-bottom: 0.65rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.calc-list a {
  display: block;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.calc-list a:hover { color: var(--forest); }
.calc-list a span {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }
  .nav.open { display: flex; }
  .display-card { grid-template-columns: 1fr; }
  .display-photo { min-height: 100px; }
}

/* Quiet SEO area line — readable, not keyword-hidden */
.seo-areas {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted, #6b7280);
  max-width: 42rem;
}
