/* Copperleaf Networks — site styles */

:root {
  --navy: #1F2A44;
  --copper: #B87333;
  --copper-dark: #8F5622;   /* copper for small text on white (passes AA) */
  --copper-light: #D9A066;  /* copper for text on navy (passes AA) */
  --text: #2B3550;
  --muted: #56607A;
  --line: #E4E7EE;
  --tint: #F6F7FA;
  --white: #FFFFFF;
  --max: 1120px;
  --radius: 10px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "lnum" 1;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #2C3B5E; border-color: #2C3B5E; color: var(--white); }

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--copper-light); border-color: var(--copper-light); color: var(--navy); }

.btn-small { padding: 9px 18px; font-size: 0.95rem; }

.text-link { font-weight: 600; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--navy); }
.brand img { display: block; width: 36px; height: 36px; }
.brand-name span { font-weight: 500; color: var(--copper-dark); }

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 8px 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--copper); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--copper); }
  .site-nav .btn { display: block; text-align: center; margin-top: 16px; padding: 13px 18px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 40px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }

.hero { padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 9vw, 112px); }
.hero h1 { max-width: 780px; }
.hero h1::after {
  content: "";
  display: block;
  width: 72px; height: 4px;
  margin-top: 24px;
  background: var(--copper);
  border-radius: 2px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); max-width: 760px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--copper); box-shadow: 0 6px 24px rgba(31, 42, 68, 0.08); }
.card h3 { margin-bottom: 8px; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #F7EEE5;
  color: var(--copper-dark);
}
.icon svg { width: 26px; height: 26px; }

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 48px;
}
.points h3 { padding-top: 16px; border-top: 3px solid var(--copper); }
.points p { margin: 0; color: var(--muted); }

/* ---------- Services page ---------- */

.service { display: grid; grid-template-columns: 48px 1fr; gap: 8px 28px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service .icon { margin: 0; }
.service-body { max-width: 680px; }
.service-body h2 { font-size: 1.6rem; margin-bottom: 10px; }
.service-body ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.service-body li { margin-bottom: 4px; }
.service-body li::marker { color: var(--copper); }

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

/* ---------- Prose (About, Contact) ---------- */

.prose { max-width: 680px; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--copper); }

.contact-card {
  max-width: 680px;
  margin-bottom: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-email { font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Call-to-action band ---------- */

.cta-band { background: var(--navy); color: #E6E9F0; padding: clamp(56px, 8vw, 88px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 620px; }
.cta-band .eyebrow { color: var(--copper-light); }
.cta-band .btn { margin-top: 12px; }
.cta-band :focus-visible { outline-color: var(--copper-light); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.975rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-inner p { margin: 0 0 6px; }
.footer-brand { color: var(--navy); font-weight: 700; font-size: 1.1rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { display: inline-block; padding: 4px 0; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; }
