/* ==========================================================
   Farm & Trail – Inline Pages (frame-safe + scoped)
   For use inside extrapage.html template
   ========================================================== */

/* ----------------------------------------------------------
   0) Extra Page STRUCTURE
----------------------------------------------------------- */

#extrapage {
  display: block;
}

/* Spacer clears fixed header overlap. Default: 0 height.
   CSS increases height only when navbar has .tcdfixed. */
#extrapage .ep-top-offset {
  height: 0;
  width: 100%;
  display: block;
}

/* Adjust height when header is fixed */
.navbar.navbar-inverse.tcdfixed ~ #extrapage .ep-top-offset {
  height: 56px; /* tune to your header height */
}
@media (max-width: 768px) {
  .navbar.navbar-inverse.tcdfixed ~ #extrapage .ep-top-offset {
    height: 64px;
  }
}

/* Content container centers inner content and adds padding */
#extrapage .ep-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 40px; /* top padding fixes H1 spacing */
  position: relative;
}
#extrapage .ep-container.is-fullwidth {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
#extrapage .ep-container.no-top-pad { padding-top: 0; }

/* Sub-pages list reset (if used) */
#extrapage .sub_pages { list-style: none; padding: 0; margin: 0 0 16px; }
#extrapage .sub_pages li { display: inline-block; margin: 0 12px 8px 0; }

/* Ensure builder content is visible */
#extrapage #content.content.tc-pagebuilder { display: block; }

/* ----------------------------------------------------------
   1) Returns PAGE (SCOPED)
----------------------------------------------------------- */
#extrapage .ft-returns-scope { all: initial; display: block; }
#extrapage .ft-returns-scope, 
#extrapage .ft-returns-scope * { box-sizing: border-box; }

#extrapage .ft-returns-scope {
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}
#extrapage .ft-returns-scope h1 { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; }
#extrapage .ft-returns-scope h2 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; color: #f8a81a; }
#extrapage .ft-returns-scope p { margin: 0 0 1rem; }
#extrapage .ft-returns-scope ul { padding-left: 1.2rem; margin: 0 0 1rem; }
#extrapage .ft-returns-scope li { margin-bottom: 0.5rem; }

/* ----------------------------------------------------------
   2) Affirm PAGE (SCOPED)
----------------------------------------------------------- */
#extrapage .ft-affirm-scope { all: initial; display: block; }
#extrapage .ft-affirm-scope, 
#extrapage .ft-affirm-scope * { box-sizing: border-box; }

#extrapage .ft-affirm-scope {
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}
#extrapage .ft-affirm-scope h1 { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; }
#extrapage .ft-affirm-scope h2 { font-size: 1.5rem; margin: 1.5rem 0 1rem; color: #f8a81a; }
#extrapage .ft-affirm-scope p { margin: 0 0 1rem; }
#extrapage .ft-affirm-scope .ft-value { background:#f8a81a; color:#fff; border-radius:8px; padding:1rem; margin:1rem 0; }
#extrapage .ft-affirm-scope .ft-faq h4 { cursor:pointer; margin:1rem 0 0.5rem; }
#extrapage .ft-affirm-scope .ft-faq p { display:none; }
#extrapage .ft-affirm-scope .ft-faq.open p { display:block; }

/* ----------------------------------------------------------
   3) Warranty PAGE (SCOPED)
----------------------------------------------------------- */
#extrapage .ft-warranty-scope { all: initial; display: block; }
#extrapage .ft-warranty-scope, 
#extrapage .ft-warranty-scope * { box-sizing: border-box; }
#extrapage .ft-warranty-scope section { float: none !important; width: auto !important; display: block; }

#extrapage .ft-warranty-scope {
  --ft-ink:#222;
  --ft-muted:#666;
  --ft-brand:#f8a81a;
  --ft-bg:#fafafa;
  --ft-card:#fff;
  --ft-border:#e6e6e6;
  --ft-shadow:0 2px 10px rgba(0,0,0,.06);
  font-family: Arial, sans-serif;
  color: var(--ft-ink);
  background: transparent;
  isolation: isolate;
}

#extrapage .ft-warranty-scope .ft-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
#extrapage .ft-warranty-scope .ft-header { margin: 0 0 18px 0; }
#extrapage .ft-warranty-scope .ft-header h1 {
  all:unset; display:block;
  font-size:1.9rem; font-weight:800; color:var(--ft-ink);
  margin:0 0 6px 0;
}
#extrapage .ft-warranty-scope .ft-header p { all:unset; display:block; color:var(--ft-muted); line-height:1.55; }

/* notice card */
#extrapage .ft-warranty-scope .ft-card {
  background:var(--ft-card);
  border:1px solid var(--ft-border);
  border-radius:10px;
  box-shadow:var(--ft-shadow);
  padding:18px 18px 6px;
  margin:18px 0 26px;
}
#extrapage .ft-warranty-scope .ft-card p { all:unset; display:block; margin:0 0 12px; line-height:1.55; }
#extrapage .ft-warranty-scope .ft-card ol { all:unset; display:block; counter-reset:ftol; margin:6px 0 8px; }
#extrapage .ft-warranty-scope .ft-card ol li {
  all:unset; display:list-item; list-style:none; counter-increment:ftol;
  margin:8px 0; line-height:1.55; color:var(--ft-ink);
}
#extrapage .ft-warranty-scope .ft-card ol li::marker { content:counters(ftol,".") ". "; }
#extrapage .ft-warranty-scope .ft-card strong { font-weight:700; }
#extrapage .ft-warranty-scope .ft-lead { display:block; color:var(--ft-ink); font-weight:700; margin:0 0 10px; }

/* table */
#extrapage .ft-warranty-scope .ft-table-wrap {
  background:var(--ft-card);
  border:1px solid var(--ft-border);
  border-radius:10px;
  box-shadow:var(--ft-shadow);
  overflow:hidden;
}
#extrapage .ft-warranty-scope .ft-table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }

#extrapage .ft-warranty-scope table { all:unset; display:table; width:100%; border-collapse:collapse; font:400 .98rem Arial, sans-serif; }
#extrapage .ft-warranty-scope thead th {
  all:unset; display:table-cell; background:#111; color:#fff;
  text-align:left; padding:12px 14px; font-weight:700; white-space:nowrap;
}
#extrapage .ft-warranty-scope tbody td {
  all:unset; display:table-cell; vertical-align:top;
  padding:12px 14px; border-top:1px solid var(--ft-border);
}
#extrapage .ft-warranty-scope tbody tr:nth-child(even) td { background:#fafafa; }

#extrapage .ft-warranty-scope a { all:unset; color:#0a58ca; text-decoration:underline; cursor:pointer; }
#extrapage .ft-warranty-scope .ft-note { color:var(--ft-muted); }
/* ========== AFFIRM: make the hero full-bleed inside the centered container ========== */
/* This expands the hero to 100vw while your .ep-container stays centered with side padding */
#extrapage #content .ft-scope .ft-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;   /* pull to viewport left */
  margin-right: -50vw;  /* pull to viewport right */
  width: 100vw;         /* span full viewport width */
}

/* ========== AFFIRM: pull the hero up to hug the header ========== */
/* Your ep-container has top padding (e.g., 24px). This negates it just for this page’s hero. */
#extrapage .ep-container > #content .ft-scope .ft-hero {
  margin-top: -24px;    /* match your .ep-container { padding-top: 24px } */
}

/* If your ep-container top padding differs on mobile, mirror it here */
@media (max-width: 768px) {
  #extrapage .ep-container > #content .ft-scope .ft-hero {
    margin-top: -24px;  /* adjust if you change container padding on mobile */
  }
}
/* ======================================================================
   == FT INLINEPAGES: PRO ACCOUNTS ======================================
   Scope: #extrapage .ft-pro-scope
   Notes:
     - Full-bleed hero uses 100vw + -50vw margins (safe inside ep-container)
     - Negative top margin cancels ep-container's top padding so hero hugs header
     - Uses Font Awesome (assumes FA is already loaded globally)
     - If you want Poppins here only, add the Google Fonts <link> to the template
       or set font-family to inherit to use site font.
   ====================================================================== */

#extrapage .ft-pro-scope { all: initial; display:block; }
#extrapage .ft-pro-scope, 
#extrapage .ft-pro-scope * { box-sizing: border-box; }

/* Optional design tokens (override per page if desired) */
#extrapage .ft-pro-scope {
  --ft-pro-primary: #f8a81a;
  --ft-pro-primary-dark: #d98d18;
  --ft-pro-bg: #f9f9f9;
  --ft-pro-text: #333;
  --ft-pro-note-bg: #fff8e0;
  --ft-pro-radius: 8px;
  --ft-pro-gap-sm: 12px;
  --ft-pro-gap-md: 24px;
  --ft-pro-gap-lg: 40px;
  /* Set one of these depending on how you load fonts sitewide */
  /* font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
  font-family: inherit;
  color: var(--ft-pro-text);
  background: transparent;
  isolation: isolate;
}

/* Inner wrap (used for centered sections below the hero) */
#extrapage .ft-pro-scope .ft-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ft-pro-gap-md);
}

/* ---------- FULL-BLEED HERO ---------- */
#extrapage #content .ft-pro-scope .ft-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;                /* full viewport width */
  min-height: 340px;
  padding: 72px 0 60px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: var(--ft-pro-primary); /* fallback color if no image */
}

/* Pull hero up to hug header (cancel ep-container’s top padding) */
#extrapage .ep-container > #content .ft-pro-scope .ft-hero {
  margin-top: -24px;           /* match ep-container { padding-top } */
}

#extrapage .ft-pro-scope .ft-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ft-pro-hero, none);    /* set via inline style or CSS */
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
#extrapage .ft-pro-scope .ft-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); /* dark overlay */
}
#extrapage .ft-pro-scope .ft-hero .ft-wrap { position: relative; z-index: 1; }

#extrapage .ft-pro-scope .ft-hero h1 {
  all: unset; display:block;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 56px);
  margin: 0 0 12px;
  color: #fff;
}
#extrapage .ft-pro-scope .ft-hero p {
  all: unset; display:block;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.55;
  color: #f0f0f0;
  font-size: clamp(16px, 2vw, 20px);
}
#extrapage .ft-pro-scope .ft-cta {
  all: unset;
  display: inline-flex; align-items:center; gap:10px;
  background: var(--ft-pro-primary);
  color: #111;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}
#extrapage .ft-pro-scope .ft-cta:hover { background: var(--ft-pro-primary-dark); }

/* ---------- MAIN CONTENT ---------- */
#extrapage .ft-pro-scope .ft-section-title {
  text-align: center;
  margin: var(--ft-pro-gap-lg) 0 var(--ft-pro-gap-md);
}
#extrapage .ft-pro-scope .ft-section-title h2 {
  all: unset; display:block; color: var(--ft-pro-primary);
  font-size: clamp(24px, 3.5vw, 42px); font-weight: 800;
}
#extrapage .ft-pro-scope .ft-section-title p {
  all: unset; display:block; color: var(--ft-pro-text); margin-top: 8px;
  font-size: clamp(16px, 1.8vw, 20px);
}

/* Cards grid */
#extrapage .ft-pro-scope .ft-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: var(--ft-pro-gap-lg);
  margin-bottom: var(--ft-pro-gap-lg);
}
@media (min-width: 1200px) {
  #extrapage .ft-pro-scope .ft-cards { grid-template-columns: repeat(3, 1fr); }
}
#extrapage .ft-pro-scope .ft-card {
  background: #fff;
  border-radius: var(--ft-pro-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: var(--ft-pro-gap-md);
  display: flex; gap: var(--ft-pro-gap-md);
  align-items: flex-start;
  transition: transform .3s, box-shadow .3s;
}
#extrapage .ft-pro-scope .ft-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
#extrapage .ft-pro-scope .ft-card .ft-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ft-pro-primary); color:#000;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.05rem; flex-shrink:0; margin-top: 2px;
}
#extrapage .ft-pro-scope .ft-card h3 {
  all: unset; display:block; margin: 0 0 6px;
  font-size: 1.25rem; font-weight: 700; color:#222;
}
#extrapage .ft-pro-scope .ft-card p {
  all: unset; display:block; color:#666; line-height:1.55;
}

/* Notes / terms */
#extrapage .ft-pro-scope .ft-note {
  background: var(--ft-pro-note-bg);
  border-left: 4px solid var(--ft-pro-primary);
  border-radius: var(--ft-pro-radius);
  padding: var(--ft-pro-gap-md);
  margin: var(--ft-pro-gap-lg) 0;
}
#extrapage .ft-pro-scope .ft-note strong {
  all: unset; display:block; font-weight:700; margin-bottom:8px; font-size:1.1rem; color:#222;
}
#extrapage .ft-pro-scope .ft-note p { all: unset; display:block; color:#555; line-height:1.55; }

/* CTA + embedded form */
#extrapage .ft-pro-scope .ft-cta-row { text-align:center; margin: var(--ft-pro-gap-lg) 0; }
#extrapage .ft-pro-scope .ft-form {
  width: 100%; height: 0; overflow: hidden;
  border: none; border-radius: var(--ft-pro-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: height .3s;
}
#extrapage .ft-pro-scope .ft-form.open { height: 100vh; }

/* Footer */
#extrapage .ft-pro-scope .ft-footer {
  text-align:center; color:#666; font-size:.95rem;
  padding: var(--ft-pro-gap-md) 0;
}
#extrapage .ft-pro-scope .ft-footer a { color: var(--ft-pro-primary); text-decoration: underline; }

/* Mobile tweaks */
@media (max-width: 768px) {
  #extrapage .ft-pro-scope .ft-hero { padding: 56px 0 46px; }
}
/* ======================================================================
   FT INLINEPAGES: SUB-PAGES (below content)
   ====================================================================== */
#extrapage .ep-subpages {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
}

#extrapage .ep-subpages__title {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
}

#extrapage .ep-subpages .sub_pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 10px 12px;
}

#extrapage .ep-subpages .sub_pages li { margin: 0; }

#extrapage .ep-subpages .sub_pages a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s, border-color .2s, transform .15s;
}
#extrapage .ep-subpages .sub_pages a:hover {
  background: #fafafa;
  border-color: #dcdcdc;
  transform: translateY(-1px);
}

/* Optional utility to hide subpages on specific pages */
#extrapage .ep-container.ep-hide-subpages .ep-subpages { display: none; }
