/* ============================================================
   STRONGHOLD: shared stylesheet
   Light scheme. Inter throughout (display + body), matching
   the Stronghold Coach app. Palette matches the app and logo mark.
   ============================================================ */

:root{
  --bg:      #F5F5F5; /* background, app paper */
  --accent:  #0C6B4E; /* app accent green, buttons, links, highlights */
  --gold:    #D9A441; /* logo-mark gold, brand accents only */
  --pitch:   #1C1C1E; /* near-black, matches logo-mark background */
  --stone:   #3A3A3A; /* body ink */
  --grey:    #8A8A8A; /* muted secondary text */
  --sand:    #E8E8E8; /* borders / hairlines, and text on dark surfaces */
  --white:   #FFFFFF;

  --radius-cta: 999px;
  --radius-input: 10px;
  --radius-card: 20px;

  --container: 1160px;
  --gutter: 32px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body{
  background: var(--bg);
  color: var(--stone);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--pitch);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4,
.display{
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--pitch);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}

h1{ font-size: clamp(44px, 7.2vw, 92px); }
h2{ font-size: clamp(32px, 4.4vw, 54px); }
h3{ font-size: clamp(22px, 2.4vw, 28px); }

p{ margin: 0 0 16px; color: var(--grey); }
p:last-child{ margin-bottom: 0; }

.lede{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--stone);
  max-width: 46ch;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}

.eyebrow.on-dark{ color: var(--sand); }

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius-cta);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pitch);
}
.btn-primary:hover{ background: transparent; border-color: var(--pitch); color: var(--pitch); }
.btn-primary.on-dark:hover{ border-color: var(--sand); color: var(--sand); }

.btn-ghost{
  background: transparent;
  border-color: var(--pitch);
  color: var(--pitch);
}
.btn-ghost:hover{ background: var(--pitch); color: var(--bg); }

.btn-ghost.on-dark{ border-color: var(--sand); color: var(--sand); }
.btn-ghost.on-dark:hover{ background: var(--sand); color: var(--stone); }

.btn-block{ width: 100%; }

/* ---------- Nav ---------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,245,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pitch);
  margin-right: auto;
}

.nav .logo{ font-size: 32px; }

.logo-mark{
  width: 0.9em;
  height: 0.9em;
  border-radius: 22%;
  flex: none;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--pitch);
  border-color: var(--accent);
}

.nav-cta{ padding: 11px 22px; font-size: 12px; flex: none; }
.mobile-cta{ display: none; }

.nav-toggle{
  display: none;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle span{
  position: absolute; left: 5px; right: 5px; height: 2px;
  background: var(--pitch);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle span:nth-child(1){ top: 11px; }
.nav-toggle span:nth-child(2){ top: 17px; }
.nav-toggle span:nth-child(3){ top: 23px; }
.nav.open .nav-toggle span:nth-child(1){ top: 17px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
.nav.open .nav-toggle span:nth-child(3){ top: 17px; transform: rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 65px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 36px var(--gutter);
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links a{ font-size: 20px; font-family:'Inter',sans-serif; font-weight:800; letter-spacing:-0.02em; }
  .nav.open .nav-links{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .nav-cta{ display: none; }
  .nav.open .nav-cta.mobile-cta{
    display: inline-flex; margin-top: 6px;
  }
}

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

.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }

.section-dark{ padding: 96px 0; background: var(--pitch); color: var(--sand); }
.section-dark h1, .section-dark h2, .section-dark h3{ color: var(--bg); }
.section-dark p{ color: var(--sand); }

.section-stone{ padding: 96px 0; background: var(--stone); color: var(--sand); }
.section-stone h1, .section-stone h2, .section-stone h3{ color: var(--bg); }
.section-stone p{ color: var(--sand); }

.grid{ display: grid; gap: var(--gutter); }
.grid-2{ grid-template-columns: 1fr 1fr; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.hairline{ border: none; border-top: 1px solid var(--sand); margin: 0; }
.hairline.on-dark{ border-top-color: rgba(245,245,245,0.18); }

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

.card{
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  padding: 32px;
}

.card-flush{ padding: 0; overflow: hidden; }

.card-dark{
  background: var(--stone);
  border-color: var(--stone);
  color: var(--sand);
}
.card-dark h3{ color: var(--bg); }
.card-dark p{ color: var(--sand); }

.card-rule{
  width: 34px; height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Tags / pills ---------- */

.tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 9px 16px;
}
.tag::before{
  content:'';
  width:5px; height:5px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.tag-row{ display:flex; flex-wrap:wrap; gap:12px; }

.tag.on-dark{ color: var(--sand); border-color: rgba(245,245,245,0.25); }

/* ---------- Hero ---------- */

.hero{
  padding: 88px 0 72px;
}

.hero h1{ margin-bottom: 22px; }
.hero .lede{ margin-bottom: 34px; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap: 16px; }

.hero-media{
  position: relative;
  min-height: 640px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--sand);
}
.hero-media-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-media--no-image{
  background: linear-gradient(135deg, var(--stone) 0%, var(--pitch) 100%);
}
.hero-media::before{
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28,28,30,0.3) 0%, rgba(28,28,30,0.9) 100%);
}
.hero-media-inner{
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 640px;
}
.hero-media-inner h1{ color: var(--bg); }
.hero-media-inner .lede{ color: var(--sand); }
@media (max-width: 600px){
  .hero-media{ min-height: 440px; }
  .hero-media-inner{ padding: 28px; }
}

.hero-panel{
  background: var(--stone);
  border-radius: var(--radius-card);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--sand);
}
.hero-panel::before{
  content: 'S';
  position: absolute;
  top: -0.2em; right: -0.1em;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 340px;
  letter-spacing: -0.03em;
  color: rgba(245,245,245,0.05);
  line-height: 1;
  pointer-events: none;
}
.hero-panel .panel-label{
  font-size: 12px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--sand); opacity:0.75; margin-bottom: 10px;
}
.hero-panel .panel-stat{
  font-family:'Inter',sans-serif; font-weight:800; letter-spacing:-0.03em; font-size: 56px; color: var(--bg); line-height:1;
}

/* ---------- Decorative panels (image-free) ---------- */

.img-placeholder{
  background: linear-gradient(135deg, var(--stone) 0%, var(--pitch) 100%);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.img-placeholder::after{
  content: '';
  position: absolute;
  bottom: 28px; left: 28px;
  width: 34px; height: 3px;
  background: var(--gold);
}

/* ---------- Form ---------- */

.form-card{
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  padding: 40px;
}
@media (max-width:600px){ .form-card{ padding: 28px 22px; } }

.field{ margin-bottom: 22px; }
.field label{
  display:block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 9px;
}
.field input,
.field textarea,
.field select{
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--pitch);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-input);
  padding: 13px 15px;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: var(--pitch);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 110px; }

.form-note{
  font-size: 13px;
  color: var(--grey);
  margin-top: 16px;
}
.form-note a{ color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }

.form-status{
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}
.form-status.visible{ display: block; }

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

.footer{
  background: var(--pitch);
  color: var(--sand);
  padding: 72px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr; gap: 36px; }
}
.footer .logo{ color: var(--bg); margin-bottom: 16px; }
.footer-statement{ max-width: 34ch; color: var(--sand); opacity: 0.85; }

.footer-heading{
  font-size: 12px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--sand); opacity: 0.55; margin-bottom: 18px;
}
.footer-links{ display:flex; flex-direction:column; gap:12px; }
.footer-links a{ color: var(--sand); font-size: 14px; opacity: 0.9; }
.footer-links a:hover{ color: var(--accent); opacity: 1; }

.footer-bottom{
  border-top: 1px solid rgba(245,245,245,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--sand);
  opacity: 0.55;
}

/* ---------- Misc utility ---------- */

.center{ text-align: center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; }
.mt-40{ margin-top: 40px; }
.small{ font-size: 13px; }
