/* ================================================================
   THE SOVEREIGN APPROACH — Will Bartlett Consulting
   willbartlettconsulting.com — shared design system
   ================================================================ */

:root {
  --navy: #1D3567;       /* primary background */
  --navy-deep: #15264a;  /* slightly darker for cards/accents */
  --blue: #457B9D;       /* mid-tone blue accent */
  --cream: #faf6ec;      /* primary cream — light cards, body text on navy */
  --cream-soft: #f0e9d6; /* slightly warmer cream — buttons, accents */
  --ink: #171717;        /* dark text on cream cards */
  --muted: rgba(250, 246, 236, 0.78);
  --rule: rgba(250, 246, 236, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Afacad', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--navy);
  /* Hero gradient: medium blue at top fading to navy by ~720px (covers header + hero) */
  background-image: linear-gradient(180deg, #457B9D 0%, #1D3567 720px);
  background-repeat: no-repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(250, 246, 236, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cream); }

/* ========== PAGE WRAPPER ========== */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
/* Inner narrow content (reason blocks, final CTA) — keeps reading line length comfortable */
.narrow-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 28px;
}
.site-logo {
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: 'Afacad', sans-serif;
}
.site-logo:hover { text-decoration: none; }
.site-logo strong {
  font-weight: 700;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: 'Afacad', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-cream:hover {
  background: var(--cream-soft);
  color: var(--ink);
  border-color: var(--cream-soft);
}
.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-cream:hover {
  background: var(--cream);
  color: var(--ink);
}
.btn-blue {
  background: #457B9D;
  color: #FFFFFF;
  border-color: #457B9D;
}
.btn-blue:hover {
  background: #3a6d8a;
  color: #FFFFFF;
  border-color: #3a6d8a;
}
.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}
.btn-cta {
  padding: 18px 40px;
  font-size: 1.125rem;
  font-weight: 600;
}

/* ========== HERO ========== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0 64px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.75em);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 26px;
}
.hero-image {
  border-radius: 1.25rem;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 48px; }
  .hero-image img { aspect-ratio: 16 / 10; }
  .hero-copy h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
}

/* ========== ABOUT-WILL CARD (cream block) ========== */
.about-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 1.5rem;
  padding: 48px 44px;
  margin: 16px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-card h1, .about-card h2, .about-card h3, .about-card p { color: var(--ink); }
.about-card p { margin-bottom: 1em; line-height: 1.55; font-size: 1.05rem; }
.about-card .about-text { min-width: 0; }

/* Right column: photo + caption + CTA stacked */
.about-card .about-photo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.about-card .about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}
.about-card .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-caption {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(23, 23, 23, 0.55);
  line-height: 1.45;
  margin: 0 !important;
  max-width: 320px;
}
.about-card .btn-cream {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.about-card .btn-cream:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--cream);
}
@media (max-width: 720px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
    gap: 28px;
  }
  .about-card .about-photo-stack { order: -1; }
}

/* ========== REASON BLOCKS ========== */
.reason {
  padding: 56px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.reason + .reason {
  border-top: 1px solid var(--rule);
}
.reason-label {
  font-weight: 600;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 1rem;
}
.reason h2 { margin-bottom: 24px; }
.reason p { margin-bottom: 1em; }
.reason > .btn {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* ========== VIDEO TESTIMONIALS GRID ========== */
.video-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 36px;
}
.video-testimonial {
  background: var(--navy-deep);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  aspect-ratio: 9 / 12;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.video-testimonial:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
}
.video-testimonial::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231D3567'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: 56% center;
  margin-bottom: 14px;
}
.video-testimonial-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 236, 0.55);
  margin: 0 0 6px;
}
.video-testimonial-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.3;
}
.video-testimonial-name span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(250, 246, 236, 0.6);
  font-style: italic;
  margin-top: 3px;
}
@media (max-width: 600px) {
  .video-testimonials { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ========== TESTIMONIALS SECTION (wider than .reason) ========== */
.testimonials-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 48px;
}
.testimonials-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 32px 0 18px;
  text-align: center;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.testimonial {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 1rem;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
/* Photo placeholder — gray circle at top of each card.
   Swap this rule (or add an <img>) when real headshots arrive. */
.testimonial::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d4d4d4;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.testimonial-quote {
  font-style: italic;
  color: rgba(23, 23, 23, 0.78);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.testimonial-attr {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.testimonial-attr span {
  display: inline;
  font-weight: 400;
  color: rgba(23, 23, 23, 0.65);
  font-size: 0.92rem;
  font-style: italic;
  margin-left: 4px;
}
@media (max-width: 720px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .testimonials { grid-template-columns: 1fr; gap: 14px; }
}
.testimonial {
  background: var(--cream);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 22px 24px;
  font-size: 1rem;
  line-height: 1.5;
}
.testimonial-quote { margin-bottom: 12px; }
.testimonial-attr {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.testimonial-attr span {
  display: block;
  font-weight: 400;
  color: rgba(23, 23, 23, 0.65);
  font-size: 0.85rem;
  font-style: italic;
}

/* ========== FINAL CTA / OPT-IN ========== */
.final-cta {
  padding: 56px 0 72px;
  border-top: 1px solid var(--rule);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { color: var(--muted); margin-bottom: 1em; }

/* BerserkerMail form — navy bg, cream borders/text, blue pill submit */
#form {
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}
#form input[type="text"],
#form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-family: 'Afacad', sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
}
#form input[type="text"]:focus,
#form input[type="email"]:focus {
  border-color: #ffffff;
  background: rgba(250, 246, 236, 0.06);
}
#form ::placeholder { color: rgba(250, 246, 236, 0.55); }
#form input[style] { display: none; }
#form button[type="submit"] {
  align-self: stretch;
  padding: 16px 32px;
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: 'Afacad', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
#form button[type="submit"]:hover {
  background: #3a6d8a;
  transform: translateY(-1px);
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 36px;
  text-align: center;
  color: rgba(250, 246, 236, 0.55);
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }

/* ========== CONFIRMATION / UTILITY PAGE LAYOUT ========== */
.confirmation-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.confirmation-page .page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.confirmation-content {
  padding: 48px 0 56px;
  flex: 1;
}
.confirmation-content h1 {
  margin-bottom: 10px;
}
.confirmation-eyebrow {
  font-weight: 600;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.confirmation-content p { margin-bottom: 1em; }
.confirmation-content ol {
  margin: 0 0 1em;
  padding-left: 22px;
}
.confirmation-content ol li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.confirmation-aside {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 8px 0 1em;
}
.confirmation-content strong em,
.confirmation-content em strong {
  font-weight: 600;
  font-style: italic;
}

/* ================================================================
   CARRD-STYLE OVERRIDE — used on /thank-you/ and /confirmation/
   to match the original Carrd aesthetic exactly:
   bg #1F1F29 / Droid Serif uppercase headings / Exo ultra-light body
   ================================================================ */
body.carrd-look {
  background: #1F1F29;
  color: rgba(255, 255, 255, 0.761);
  font-family: 'Exo', sans-serif;
  font-weight: 100;
  font-size: 1.05rem;
  line-height: 1.675;
  letter-spacing: 0.05rem;
}
body.carrd-look h1,
body.carrd-look h2,
body.carrd-look h3,
body.carrd-look h4 {
  font-family: 'Droid Serif', serif;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.2;
}
body.carrd-look h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-bottom: 28px;
  text-align: center;
}
body.carrd-look h2 {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}
body.carrd-look p {
  color: rgba(255, 255, 255, 0.761);
  margin-bottom: 1.1em;
}
body.carrd-look strong {
  color: #FFFFFF;
  font-weight: 400;
}
body.carrd-look em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}
body.carrd-look a {
  color: #FFFFFF;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
body.carrd-look a:hover { text-decoration-color: #FFFFFF; }

body.carrd-look .confirmation-eyebrow {
  font-family: 'Exo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
body.carrd-look .confirmation-content ol {
  margin-left: 4px;
}
body.carrd-look .confirmation-content ol li {
  color: rgba(255, 255, 255, 0.761);
  margin-bottom: 12px;
  line-height: 1.6;
}
body.carrd-look .confirmation-aside {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05rem;
}
body.carrd-look .site-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Exo', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}


/* ========== TONE-SHIFT IMAGES (confirmation page) ========== */
.tone-image {
  margin: 24px auto 28px;
  max-width: 460px;
}
.tone-image img {
  width: 100%;
  height: auto;
  display: block;
}
