/* ============================================================
   Beyond the Leash with Sandra — shared stylesheet
   This file controls colors, fonts, buttons, cards, and animations
   for every page on the site. Edit here once and it updates everywhere.
   ============================================================ */

:root {
  --navy:  #0F2647;
  --deep:  #1B3A6B;
  --ocean: #2E5C9A;
  --sky:   #7FAEDD;
  --baby:  #BFDBFE;
  --mist:  #F4F7FB;
  --ink:   #334155;
  --slate: #64748B;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Manrope', sans-serif;
}

::selection {
  background: var(--baby);
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.btn-primary:hover { background: var(--deep); }

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { border-color: var(--deep); color: var(--deep); }

.btn-disabled {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #E2E8F0;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: not-allowed;
}

/* ---------- Text helpers ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #F1F5F9;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 12px 30px -12px rgba(15, 38, 71, 0.18);
  transform: translateY(-4px);
}

/* ---------- Divider ---------- */
.grain-line {
  height: 1px;
  background-image: repeating-linear-gradient(90deg, #E2E8F0 0px, #E2E8F0 1px, transparent 1px, transparent 8px);
}

/* ---------- Navigation ---------- */
.nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--deep); }

.nav-link.nav-active {
  color: var(--navy);
  font-weight: 700;
}
.nav-link.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ocean);
  border-radius: 2px;
}

.mobile-nav-link.nav-active {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus states (accessibility) ---------- */
.focus-ring:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Newsletter signup ---------- */
.newsletter-section {
  background: #ffffff;
}

.newsletter-card {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--mist);
  border: 1px solid #E2E8F0;
  text-align: center;
}

.newsletter-copy {
  max-width: 42rem;
  margin: 0 auto;
}

.newsletter-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-title {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.newsletter-description {
  color: var(--slate);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  margin: 1.75rem auto 0;
}

.newsletter-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input::placeholder {
  color: #94A3B8;
}

.newsletter-input:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.75);
}

.newsletter-button {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--navy);
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.newsletter-button:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

.newsletter-privacy {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .newsletter-card {
    padding: 3rem;
  }

  .newsletter-form {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-input {
    flex: 1;
  }

  .newsletter-button {
    flex: 0 0 auto;
  }
}

/* ============================================================
   Refined visual accents
   Adds depth and energy while preserving the original blue-and-white style.
   ============================================================ */
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, rgba(127, 174, 221, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 42%, rgba(191, 219, 254, 0.18), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(46, 92, 154, 0.07), transparent 32rem);
}

header {
  box-shadow: 0 8px 30px -26px rgba(15, 38, 71, 0.85);
}

header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 92, 154, 0.45), transparent);
}

body > section:first-of-type {
  position: relative;
  overflow: hidden;
}

body > section:first-of-type::before,
body > section:first-of-type::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(1px);
  z-index: -1;
}

body > section:first-of-type::before {
  width: 15rem;
  height: 15rem;
  top: 5.5rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(127, 174, 221, 0.2), rgba(191, 219, 254, 0.03) 68%, transparent 70%);
}

body > section:first-of-type::after {
  width: 11rem;
  height: 11rem;
  bottom: -4rem;
  left: -4rem;
  border: 1px solid rgba(46, 92, 154, 0.15);
  box-shadow: 0 0 0 2rem rgba(191, 219, 254, 0.055), 0 0 0 4rem rgba(127, 174, 221, 0.035);
}

h1 {
  text-shadow: 0 12px 34px rgba(46, 92, 154, 0.1);
}

.eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 1.1rem;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--ocean), var(--sky));
  box-shadow: 0 0 0 0.3rem rgba(191, 219, 254, 0.35);
  transform: translateY(-50%);
}

.card {
  position: relative;
  overflow: hidden;
  border-color: rgba(191, 219, 254, 0.72);
  box-shadow: 0 16px 40px -34px rgba(15, 38, 71, 0.72);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.62;
  background: linear-gradient(90deg, var(--deep), var(--sky), var(--baby));
  transition: opacity 0.3s ease, height 0.3s ease;
}

.card:hover {
  box-shadow: 0 22px 44px -26px rgba(15, 38, 71, 0.34);
}

.card:hover::before {
  height: 4px;
  opacity: 1;
}

.btn-primary,
.newsletter-button {
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  box-shadow: 0 12px 24px -14px rgba(15, 38, 71, 0.78);
}

.btn-primary:hover,
.newsletter-button:hover {
  background: linear-gradient(135deg, var(--deep), var(--sky));
  box-shadow: 0 16px 28px -15px rgba(15, 38, 71, 0.72);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(127, 174, 221, 0.5);
  box-shadow: 0 10px 24px -22px rgba(15, 38, 71, 0.8);
}

.btn-secondary:hover {
  background: var(--mist);
  border-color: var(--ocean);
  box-shadow: 0 14px 26px -20px rgba(15, 38, 71, 0.72);
}

.bg-mist {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(127, 174, 221, 0.12), transparent 20rem);
}

.newsletter-card {
  isolation: isolate;
  border-color: rgba(127, 174, 221, 0.45);
  background: linear-gradient(135deg, #F9FCFF 0%, #EDF6FF 54%, #DDEEFF 100%);
  box-shadow: 0 28px 70px -42px rgba(15, 38, 71, 0.62);
}

.newsletter-card::before,
.newsletter-card::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: -1;
}

.newsletter-card::before {
  width: 18rem;
  height: 18rem;
  top: -10rem;
  right: -5rem;
  background: radial-gradient(circle, rgba(127, 174, 221, 0.34), transparent 68%);
}

.newsletter-card::after {
  width: 12rem;
  height: 12rem;
  bottom: -7rem;
  left: -3rem;
  border: 1px solid rgba(46, 92, 154, 0.14);
  box-shadow: 0 0 0 2rem rgba(191, 219, 254, 0.11);
}

.newsletter-input {
  border-color: rgba(127, 174, 221, 0.65);
  box-shadow: 0 10px 24px -20px rgba(15, 38, 71, 0.68);
}

footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72rem, calc(100% - 3rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(46, 92, 154, 0.42), transparent);
}


/* ---------- Shared footer newsletter placement ---------- */
.site-footer {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0) 0%, rgba(244, 247, 251, 0.78) 38%, rgba(237, 246, 255, 0.95) 100%);
  border-radius: 2rem 2rem 0 0;
  padding-top: 3rem;
}

.site-footer .newsletter-section {
  background: transparent;
}

.site-footer .newsletter-card {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .site-footer {
    border-radius: 1.5rem 1.5rem 0 0;
    padding-top: 2rem;
  }
}


/* ============================================================
   Homepage mission, lighter contact CTA, and nav hover details
   ============================================================ */

/* Give fixed-header anchor jumps comfortable breathing room. */
#mission {
  scroll-margin-top: 5.5rem;
}

/* Desktop navigation: a subtle animated underline on hover and active page. */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--ocean), var(--sky));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.nav-active::after {
  transform: scaleX(1);
}

.header-contact-link {
  position: relative;
  overflow: hidden;
}

.header-contact-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 1.5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.header-contact-link:hover::after {
  transform: scaleX(1);
}

/* One simple hero button that scrolls to the mission statement. */
.mission-scroll-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(127, 174, 221, 0.62);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 12px 28px -22px rgba(15, 38, 71, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mission-scroll-button:hover {
  transform: translateY(-2px);
  border-color: var(--ocean);
  background: var(--mist);
  box-shadow: 0 16px 30px -22px rgba(15, 38, 71, 0.72);
}

/* Horizontal mission statement directly above the About preview. */
.mission-section {
  position: relative;
}

.mission-panel {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(127, 174, 221, 0.42);
  border-radius: 1.5rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.94) 58%, rgba(221, 238, 255, 0.86)),
    radial-gradient(circle at 92% 20%, rgba(127, 174, 221, 0.2), transparent 15rem);
  box-shadow: 0 24px 60px -44px rgba(15, 38, 71, 0.62);
}

.mission-label-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mission-kicker {
  flex: 0 0 auto;
  color: var(--ocean);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(46, 92, 154, 0.55), transparent);
}

.mission-heading {
  margin-bottom: 0.85rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
}

.mission-copy p {
  max-width: 48rem;
  color: var(--slate);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .mission-panel {
    grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 2.3fr);
    gap: 3rem;
    padding: 2.5rem 3rem;
  }

  .mission-label-wrap {
    align-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
  }

  .mission-line {
    width: 4.5rem;
  }
}

/* Lighter home-page contact panel that still feels special. */
.contact-cta-card {
  isolation: isolate;
  border: 1px solid rgba(127, 174, 221, 0.46);
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FC 52%, #E4F1FF 100%);
  box-shadow: 0 28px 68px -46px rgba(15, 38, 71, 0.7);
}

.contact-cta-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: -1;
}

.contact-cta-orb-one {
  width: 17rem;
  height: 17rem;
  top: -10rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(127, 174, 221, 0.28), transparent 68%);
}

.contact-cta-orb-two {
  width: 14rem;
  height: 14rem;
  right: -4rem;
  bottom: -8rem;
  border: 1px solid rgba(46, 92, 154, 0.13);
  box-shadow: 0 0 0 2rem rgba(191, 219, 254, 0.11);
}

.contact-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(127, 174, 221, 0.58);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 12px 26px -21px rgba(15, 38, 71, 0.78);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-cta-button:hover {
  transform: translateY(-2px);
  border-color: var(--ocean);
  background: var(--baby);
  box-shadow: 0 16px 28px -21px rgba(15, 38, 71, 0.68);
}
