/* Cardiff Group — thecardiffgroup.us
   Brand palette (the entire palette, per the brand book):
   navy #0E2A3A (primary) · ocean blue #2E6E9E (secondary) ·
   gold #D9A441 (accents only) · warm white #FAF7F0 (backgrounds).
   No grey, no pink. Type: Poppins (friendly geometric sans), fallbacks. */

* { box-sizing: border-box; }

:root {
  --navy: #0E2A3A;
  --ocean: #2E6E9E;
  --gold: #D9A441;
  --paper: #FAF7F0;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.65;
  font-size: 17px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
}
.nav a:hover { color: var(--ocean); }

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
}
.hero .kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 800;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { filter: brightness(0.94); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--paper); }
.hero-note {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ocean);
}

/* ---------- Sections ---------- */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--navy); color: var(--paper); }
.section-alt h2 { color: var(--paper); }
.wrap { max-width: 60rem; margin: 0 auto; }
.wrap.narrow { max-width: 44rem; }
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  font-weight: 800;
}
.section-intro {
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 40rem;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 1.5rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--ocean);
  font-weight: 700;
}
.card p { margin: 0; }

/* ---------- Otto / Claude Auto band ---------- */
.otto-band .kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.otto-band h2 { color: var(--paper); }
.otto-band p {
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

/* ---------- About ---------- */
.about p { max-width: 42rem; }

/* ---------- Contact ---------- */
.email-line {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 2rem;
}
.email-line a { color: var(--ocean); }
.contact-form {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--ocean);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.92rem; color: var(--ocean); }
.hp { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 2rem 1.25rem;
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; font-size: 0.95rem; }
.site-footer a { color: var(--gold); }

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
  .hero h1 { font-size: 2.9rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
