/* ===========================
   Design Tokens
   =========================== */
:root {
  --brand-navy:   #0b1f3a;
  --brand-blue:   #1a3a5c;
  --brand-accent: #c9a227;
  --brand-gold-light: #f0d878;
  --brand-light:  #fdf6e3;
  --text-primary: #1a1a2e;
  --text-muted:   #556070;
  --border:       #d0c49a;
  --white:        #ffffff;
  --radius:       8px;
  --shadow-sm:    0 2px 6px rgba(11,31,58,.08);
  --shadow-md:    0 6px 24px rgba(11,31,58,.12);
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width:    960px;
}

/* ===========================
   Reset / Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #f5f7fa;
  line-height: 1.6;
}

a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================
   Utility
   =========================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn-primary:hover { background: #a8841a; text-decoration: none; }
.btn-primary:active { transform: scale(.98); }

/* ===========================
   Hero
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner { max-width: 720px; margin-inline: auto; }

.logo-mark {
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 145px;
  height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(201,162,39,.4));
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: #f0d878;
  margin-bottom: .75rem;
}

.hero .motto {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  margin-bottom: 2.25rem;
}

/* ===========================
   About
   =========================== */
.about {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.about h2, .survey h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon { font-size: 2rem; margin-bottom: .75rem; }

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: .5rem;
}

.card p { font-size: .9rem; color: var(--text-muted); }

.tool-lead {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Core Services */
.core-services {
  margin-top: 3rem;
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

.core-services h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.services-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.services-list > li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .5rem;
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.5;
  break-inside: avoid;
}

.services-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  border-radius: 50%;
}

.services-list ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: .25rem;
}

.services-list ul li {
  font-size: .875rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}

.services-list ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
}

@media (max-width: 860px) {
  .services-list { columns: 1; }
}

/* ===========================
   Survey
   =========================== */
.survey {
  background: #f0f4fb;
  padding: 5rem 1.5rem;
}

form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  margin-top: 1rem;
}

fieldset {
  border: none;
  margin-bottom: 2rem;
}

legend {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand-accent);
  width: 100%;
  margin-bottom: 1.5rem;
}

.form-row { margin-bottom: 1.25rem; }

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 580px) {
  .form-row.two-col { grid-template-columns: 1fr; }
  form { padding: 1.5rem 1rem; }
}

.form-group { display: flex; flex-direction: column; gap: .35rem; }

label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required { color: #d63031; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .8rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,.2);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: #d63031;
  box-shadow: 0 0 0 3px rgba(214,48,49,.12);
}

textarea { resize: vertical; }

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem .75rem;
  padding-top: .25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-accent);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .checkbox-group { grid-template-columns: 1fr; }
}

/* Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-submit {
  font-size: 1rem;
  padding: .8rem 2.5rem;
}

/* Form message */
.form-message {
  margin-top: 1rem;
  font-size: .95rem;
  min-height: 1.5rem;
  text-align: center;
}
.form-message.success { color: #00803c; font-weight: 600; }
.form-message.error   { color: #d63031; }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--brand-navy);
  color: #f0d878;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .9rem;
}

.footer strong { color: var(--white); }
.footer a { color: #f0d878; }
.footer a:hover { color: var(--white); }
.footer-copy { margin-top: .5rem; font-size: .8rem; color: #8a7a50; }
