/* ForgedCrew shared layer, loaded after each page's own styles.
   Softer, rounder, easier to read; real photos in the heroes; smooth page
   changes. Pages keep their own layout, this only refines the common parts. */

/* Smooth fade between pages (browsers that support it; others just load). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { line-height: 1.65; }
img { max-width: 100%; }

/* Buttons: rounded, easy to tap, a clear press state. */
.btn, .btn-orange, .btn-primary, .btn-white, .btn-outline, .btn-ghost, .btn-next, .btn-back,
.nav-cta, .nav-login, .mm-cta, .mm-login, .submit-btn, .s-btn, .pay-btn, .new-post-btn, .post-btn, .save-btn {
  border-radius: 8px;
}
.btn, .btn-orange, .btn-primary, .btn-white, .btn-outline, .btn-ghost, .nav-cta, .mm-cta, .submit-btn, .pay-btn {
  min-height: 44px;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active, .btn-orange:active, .btn-primary:active, .nav-cta:active, .submit-btn:active, .pay-btn:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(232,98,26, .45); outline-offset: 2px;
}

/* Cards and panels: rounded corners, a soft lift instead of hard lines. */
[class$="-card"], [class*="-card "], .side-card, .summary, .block, .auth-card, .form-card, .card, .sub-empty {
  border-radius: 12px;
}
[class$="-card"], [class*="-card "] { overflow: hidden; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: 8px; }

/* Menu: white, sticky, rounded dropdowns. */
.nav { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); }
.dropdown { border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 22, 28, .14); }
.dropdown a { border-radius: 6px; }

/* Hero photos: visible, darkened enough for white text to stay readable. */
.hero-img-bg {
  opacity: 1 !important;
  filter: brightness(.42) saturate(1.05);
}

/* Respect people who turn motion off. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* Footer: links and small print readable on the dark background. */
footer a { color: #b3b9c4 !important; font-size: 14px; }
footer a:hover { color: #fff !important; }
footer .foot-copy, footer .foot-bottom, footer .footer-bottom, footer p { color: #9198a5; }

/* Page heroes: heading left, angled photo right (matches the homepage). */
.fc-phero { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: #F7F7F5; min-height: 420px; overflow: hidden; border-bottom: 1px solid #E3E2DF; }
.fc-phero-text { padding: 56px 32px 56px max(32px, calc((100vw - 1200px) / 2 + 32px)); }
.fc-phero-kicker { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 14px; color: var(--orange, #E8621A); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fc-phero-kicker::after { content: ''; width: 40px; height: 2px; background: currentColor; }
.fc-phero-h1 { font-family: 'Barlow Condensed', sans-serif !important; font-weight: 900 !important; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 64px) !important; line-height: .98 !important; color: #18181A !important; margin: 0 0 18px !important; letter-spacing: -.01em; }
.fc-phero-h1 span { color: var(--orange, #E8621A) !important; display: inline !important; }
.fc-phero-sub { font-size: 18px; line-height: 1.6; color: #686868; max-width: 560px; margin: 0 0 28px; }
.fc-phero-photo { align-self: stretch; position: relative; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); min-height: 320px; }
.fc-phero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 8px; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 48px; transition: background-color .2s, color .2s, border-color .2s, transform .1s; }
.fc-btn:active { transform: translateY(1px); }
.fc-btn-primary { background: var(--orange, #E8621A); color: #fff !important; border: 2px solid var(--orange, #E8621A); }
.fc-btn-primary:hover { background: #C9531A; border-color: #C9531A; }
.fc-btn-outline { background: #fff; color: #18181A !important; border: 2px solid #18181A; }
.fc-btn-outline:hover { background: #18181A; color: #fff !important; }
@media (max-width: 820px) {
  .fc-phero { grid-template-columns: 1fr; min-height: 0; }
  .fc-phero-text { padding: 36px 16px; }
  .fc-phero-photo { clip-path: none; min-height: 0; height: 220px; order: -1; }
  .fc-btn { flex: 1 1 auto; justify-content: center; }
}
.fc-phero-h1.fc-long { font-size: clamp(34px, 3.4vw, 50px) !important; }

/* Cards sit on their own: a faint outline and soft shadow, so white cards
   stand out on white sections and grids no longer need a grey backing. */
[class$="-card"], [class*="-card "], .side-card {
  box-shadow: 0 0 0 1px rgba(20, 22, 28, .07), 0 2px 8px rgba(20, 22, 28, .05);
}

/* ── ForgedCrew palette ─────────────────────────────────────────────────── */
:root {
  --bg: #F7F7F5; --surface: #FFFFFF; --white: #FFFFFF; --ink: #18181A; --dark: #18181A;
  --orange: #E8621A; --orange-d: #C9531A; --orange-l: #F07A3A;
  --panel: #EEEDE9; --soft: #EEEDE9; --muted: #686868; --border: #E3E2DF;
  --body: #3A3A3C; --faint: #8A8A8A; --teal: #E8621A;
}
body { background: var(--bg); color: var(--body); }

/* ── Buttons: primary (orange), secondary (charcoal), tertiary (outline) ── */
.btn-orange, .btn-primary, .fc-btn-primary, .nav-cta, .mm-cta, .submit-btn, .pay-btn {
  background: #E8621A !important; border-color: #E8621A !important; color: #FFFFFF !important;
  border-radius: 8px; font-weight: 700;
}
.btn-orange:hover, .btn-primary:hover, .fc-btn-primary:hover, .nav-cta:hover, .mm-cta:hover, .submit-btn:hover, .pay-btn:hover {
  background: #C9531A !important; border-color: #C9531A !important;
}
.btn-dark, .btn-secondary, .fc-btn-secondary, .search-btn, .alert-btn {
  background: #18181A !important; border: 2px solid #18181A !important; color: #FFFFFF !important; border-radius: 8px;
}
.btn-dark:hover, .btn-secondary:hover, .fc-btn-secondary:hover, .search-btn:hover, .alert-btn:hover {
  background: #2E2E31 !important; border-color: #2E2E31 !important;
}
.btn-outline, .fc-btn-outline, .btn-tertiary, .nav-login, .mm-login {
  background: #FFFFFF !important; border: 1.5px solid #18181A !important; color: #18181A !important; border-radius: 8px;
}
.btn-outline:hover, .fc-btn-outline:hover, .btn-tertiary:hover, .nav-login:hover, .mm-login:hover {
  background: #18181A !important; color: #FFFFFF !important;
}
.nav-login { padding: 9px 18px; font-weight: 600; }
/* Outline buttons placed on dark sections stay visible. */
.fc-cta .fc-btn-ghost, .btn-white, .btn-ghost { border-radius: 8px; }

/* ── Links: orange in running text, underline on hover ─────────────────── */
p a:not([class]), li a:not([class]), td a:not([class]), .fc-body a, .fc-link { color: #E8621A; text-decoration: none; }
p a:not([class]):hover, li a:not([class]):hover, td a:not([class]):hover, .fc-body a:hover, .fc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
footer p a:not([class]), footer li a:not([class]) { color: #b3b9c4; }
