/*
Theme Name: Chapman's Staking
Description: Custom theme for Chapman's Staking Service, Inc.
Version: 1.0.2
Requires PHP: 7.4
Text Domain: chapman
*/

:root {
  --navy: #0f2340;
  --navy-2: #17325c;
  --ink: #1d232c;
  --muted: #5a6370;
  --paper: #f7f3ea;
  --paper-2: #efe6d3;
  --card: #fffdf8;
  --brass: #b58a3e;
  --brass-2: #d6b46f;
  --line: rgba(15, 35, 64, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--brass); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #a07732; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* Utility bar + header */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 1.6rem; padding: .5rem 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--brass-2); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin-top: .3rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav .current a { color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--navy) center 35% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(10,24,46,.94) 0%, rgba(10,24,46,.82) 38%, rgba(10,24,46,.25) 75%, rgba(10,24,46,.1) 100%);
}
.hero .wrap { padding: 6rem 0; }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--brass-2); font-weight: 500; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--brass-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-caption {
  position: absolute; right: 24px; bottom: 18px;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* Value strip */
.strip { background: var(--card); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 2rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--brass); margin-top: 2px; }
.strip-item strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.strip-item span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  display: flex; flex-direction: column;
  position: relative;
}
.step-num {
  font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brass);
  font-weight: 500; margin-bottom: 1rem; font-style: italic;
}
.step p { color: var(--muted); }
.step-sample {
  margin-top: auto; display: flex; align-items: center; gap: 1rem;
  padding-top: 1.2rem; border-top: 1px dashed var(--line);
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem;
}
.step-sample img { width: 58px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 14px rgba(15,35,64,.12); transition: transform .2s; }
.step-sample:hover img { transform: rotate(-3deg) scale(1.05); }

/* Online band */
.band { background: var(--navy); color: rgba(255,255,255,.86); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(214,180,111,.08);
}
.band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--brass-2); }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.05rem; }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.portal-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.portal-card h3 { color: #fff; font-size: 1.5rem; }
.portal-card p { font-size: .98rem; }
.portal-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.portal-card small { display: block; margin-top: 1rem; color: rgba(255,255,255,.6); font-size: .85rem; }

/* Heritage */
.heritage .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.photo-frame { position: relative; }
.photo-frame img { border-radius: var(--radius); filter: grayscale(1) contrast(1.05); box-shadow: 0 30px 60px -20px rgba(15,35,64,.35); }
.photo-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--brass);
  border-radius: var(--radius); z-index: -1;
}
.photo-frame figcaption { margin-top: 1.6rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.heritage blockquote {
  margin: 1.8rem 0; padding-left: 1.4rem; border-left: 3px solid var(--brass);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy); line-height: 1.45;
}
.text-link { font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--brass); padding-bottom: 2px; }

/* Testimonials */
.testimonials { background: var(--paper-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.quote {
  background: var(--card); border-radius: var(--radius); padding: 2rem; margin: 0;
  border: 1px solid var(--line); position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--brass-2);
  position: absolute; top: .6rem; right: 1.4rem; opacity: .6;
}
.quote p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--navy); }
.quote footer { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; }
.quote footer img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-2); }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote footer span { font-size: .85rem; color: var(--muted); }
.quote.featured { grid-row: span 2; }

/* Industry links */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.links-grid a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--navy); font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.links-grid a::after { content: "\2197"; color: var(--brass); }
.links-grid a:hover { border-color: var(--brass); transform: translateY(-2px); }

/* CTA */
.cta { padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.cta-box {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: 22px; padding: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem;
}
.cta-box h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-box p { margin: 0; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Interior pages */
.page-hero { background: var(--navy); color: rgba(255,255,255,.85); padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.page-hero .eyebrow { color: var(--brass-2); }
.page-hero p { max-width: 640px; font-size: 1.12rem; margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose img { border-radius: var(--radius); }

.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-aside { position: sticky; top: 110px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact-card svg { width: 30px; height: 30px; color: var(--brass); margin-bottom: .8rem; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.contact-card a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-card p { color: var(--muted); font-size: .95rem; margin: .4em 0 0; }

/* Footer */
.site-footer { background: #0a182e; color: rgba(255,255,255,.7); font-size: .95rem; }
.site-footer .wrap { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 960px) {
  .steps, .quotes, .contact-cards { grid-template-columns: 1fr; }
  .quote.featured { grid-row: auto; }
  .band .wrap, .heritage .wrap, .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 24px 1.5rem; gap: 1rem; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; }
  .topbar .wrap { justify-content: center; gap: 1rem; font-size: .8rem; }
  .topbar .hide-sm { display: none; }
  .hero { min-height: 640px; background-position: 30% center; }
  .hero::before { background: linear-gradient(180deg, rgba(10,24,46,.55) 0%, rgba(10,24,46,.92) 70%); }
  .hero .wrap { padding: 8rem 0 4rem; align-self: flex-end; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Wide layouts inside page content */
.prose:has(> .about-grid), .prose:has(> .contact-cards) { max-width: none; }
.prose .lead { color: var(--muted); }

/* Icon sizing inside buttons + nav button color */
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.quotes { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }
