/* ChainLink Essentials LLC — corporate site */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #1e2637;
  --muted: #5b6577;
  --navy: #14235f;
  --blue: #3565b8;
  --blue-soft: #4a7fd4;
  --line: #e4e7ed;
  --radius: 10px;
  --wrap: 1040px;
  --prose: 740px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand img { display: block; width: 217px; height: 40px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav a.active { color: var(--navy); }

/* Home */
.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 {
  font-size: 2.3rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}
.hero p {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.btn:hover { background: #1c3179; text-decoration: none; }

.home-section { padding: 12px 24px 72px; }
.section-title {
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 1.5rem;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: -0.75rem auto 2rem;
  color: var(--muted);
}
.center { text-align: center; margin: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.values .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.values h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.values p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 2.25rem;
}
.services-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.94rem;
}
.services-grid a:hover {
  border-color: var(--blue-soft);
  text-decoration: none;
}

.support-band {
  border-top: 1px solid var(--line);
  padding: 48px 0 72px;
  text-align: center;
}
.support-band h2 { margin-top: 0; }
.support-band p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

/* Content pages */
.page {
  max-width: var(--prose);
  padding-top: 56px;
  padding-bottom: 80px;
}
.page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.25rem 0 2rem;
}
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.3rem; }
.page li { margin-bottom: 0.35rem; }

/* Contact */
.contact-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 1.5rem 0 2.25rem;
}
.contact-details p { margin: 0.35rem 0; }
.contact-details .label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

form.contact-form { max-width: 560px; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cdd3dd;
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(74, 127, 212, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.notice {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.notice.ok    { background: #e8f3ea; border: 1px solid #bfdcc6; color: #1e5c2f; }
.notice.err   { background: #fbeeee; border: 1px solid #ecc8c8; color: #8a2323; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 14px;
}
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--navy); }
.footer-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.footer-meta a { color: var(--muted); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .values { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { gap: 16px 20px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}
