:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #15201b;
  --muted: #617069;
  --brand: #176b52;
  --brand-dark: #0f4c3c;
  --accent: #d7942d;
  --danger: #b73b3b;
  --line: #d9e2dd;
  --shadow: 0 18px 55px rgba(25, 49, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar strong,
.topbar span {
  display: block;
}

.topbar strong {
  font-size: 18px;
}

.topbar span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

nav,
.hero-actions,
.admin-tools,
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.nav-button,
.tab {
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  min-height: 40px;
  padding: 0 12px;
}

.nav-button.active,
.tab.active {
  background: #e3f0eb;
  color: var(--brand-dark);
  font-weight: 700;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(22px, 5vw, 56px) clamp(16px, 4vw, 36px);
}

.view {
  display: none;
}

.view.active,
.admin-list.active {
  display: block;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.hero-copy,
.stats-panel,
.form-grid,
.admin-list,
.section-header,
.admin-tools,
.tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy,
.section-header {
  padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 780px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 690px;
}

.primary-action,
.secondary-action,
.danger-action {
  border-radius: 6px;
  min-height: 46px;
  padding: 0 18px;
  white-space: normal;
}

.primary-action {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.secondary-action {
  background: #e9eee9;
  color: var(--ink);
}

.danger-action {
  background: #f4dfdf;
  color: var(--danger);
  font-weight: 700;
}

.stats-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stats-panel div {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.stats-panel span {
  color: var(--brand);
  display: block;
  font-size: 36px;
  font-weight: 800;
}

.stats-panel small {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding: clamp(18px, 4vw, 34px);
}

label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

.admin-tools,
.tabs {
  box-shadow: none;
  margin-top: 18px;
  padding: 14px;
}

.admin-tools input {
  flex: 1 1 260px;
}

.admin-list {
  display: none;
  margin-top: 18px;
  min-height: 160px;
  padding: 14px;
}

.record {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
}

.record header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.record h3 {
  font-size: 18px;
  margin: 0;
}

.record p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.badge {
  background: #e3f0eb;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#toast {
  background: var(--ink);
  border-radius: 6px;
  bottom: 18px;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%) translateY(12px);
  transition: 180ms ease;
  z-index: 10;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    display: grid;
  }

  .full {
    grid-column: auto;
  }
}


.contact-link {
  color: var(--brand);
  display: block;
  font-size: 12px;
  margin-top: 4px;
  text-decoration: none;
}

.contact-link:hover,
.contact-note a:hover {
  text-decoration: underline;
}

.hero-copy .contact-note {
  font-size: 15px;
  margin-top: -4px;
}

.contact-note a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

/* Neuromarketing palette refresh */
:root {
  --bg: #eef5f2;
  --surface: #ffffff;
  --ink: #10221c;
  --muted: #60736c;
  --brand: #147a5b;
  --brand-dark: #0b4738;
  --accent: #d99025;
  --blue: #1f5f8b;
  --line: #d7e4de;
  --shadow: 0 20px 60px rgba(15, 42, 32, 0.14);
}

body {
  background:
    radial-gradient(circle at top left, rgba(31, 95, 139, 0.12), transparent 34%),
    linear-gradient(180deg, #f7fbf8 0%, #e9f2ef 100%);
}

.topbar {
  border-bottom: 1px solid rgba(20, 122, 91, 0.16);
  box-shadow: 0 10px 30px rgba(16, 34, 28, 0.08);
}

.hero {
  background:
    linear-gradient(90deg, rgba(9, 42, 34, 0.94) 0%, rgba(9, 42, 34, 0.82) 46%, rgba(9, 42, 34, 0.22) 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
  padding: clamp(18px, 4vw, 38px);
}

.hero-copy,
.hero-copy p:not(.eyebrow),
.hero-copy .contact-note a {
  color: #fff;
}

.hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: clamp(22px, 5vw, 48px) 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  opacity: 0.92;
}

.hero .eyebrow {
  color: #f1b85b;
}

.primary-action {
  background: linear-gradient(135deg, var(--accent), #f0b34d);
  color: #1d170d;
  box-shadow: 0 10px 24px rgba(217, 144, 37, 0.28);
}

.secondary-action {
  background: #e8f1f7;
  color: var(--blue);
  font-weight: 700;
}

.hero .secondary-action {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
}

.stats-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.stats-panel span {
  color: var(--blue);
}

.trust-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.trust-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 42, 32, 0.08);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.trust-grid strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.trust-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.form-grid,
.section-header,
.admin-list,
.admin-tools,
.tabs {
  border-top: 4px solid var(--brand);
}

.form-subtitle {
  align-items: center;
  background: #eef7f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  display: flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

.record {
  border-left: 5px solid var(--blue);
}

.record a {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 34px;
  text-align: center;
}


.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


.admin-protected {
  display: none;
}

.admin-protected.active {
  display: block;
}

.admin-gate .section-header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}


.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.blog-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 42, 32, 0.08);
  padding: 20px;
}

.blog-grid span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-grid h3 {
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.2;
  margin: 10px 0;
}

.blog-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

