/*
Theme Name: SwiftForge Leads
Theme URI: https://swiftforgeleads.com
Description: Child theme of GeneratePress for swiftforgeleads.com. Applies the SwiftForgeWeb design system (colors, Syne/DM Sans typography, button + section styles) extracted from swiftforgeweb.com source. All page copy lives in the editor, not here.
Author: SwiftForge Web LLC
Template: generatepress
Version: 1.1.3
*/

/* =========================================================
   Design tokens — extracted from swiftforgeweb.com source
   (GeneratePress global colors + typography)
   ========================================================= */
:root {
  --sf-accent:        #80a9af;   /* GP --accent : primary CTA / links   */
  --sf-accent-hover:  #6a9298;   /* darker accent for hover             */
  --sf-gold:          #bfa44b;   /* GP --global-color-8 : gold accent   */
  --sf-dark:          #101319;   /* dark section background             */
  --sf-dark-2:        #11151b;   /* GP --contrast-2 : deep navy         */
  --sf-ink:           #11151b;   /* body text on light                  */
  --sf-muted:         #55555e;   /* GP muted text                       */
  --sf-muted-dark:    #b2b2be;   /* GP --contrast-3 : muted on dark     */
  --sf-base:          #f0f0f0;   /* GP --base                           */
  --sf-base-2:        #f7f8f9;   /* GP --base-2 : light section bg      */
  --sf-white:         #ffffff;
  --sf-border:        #e4e6ea;
  --sf-container:     1280px;
}

/* =========================================================
   Typography — Syne (headings) / DM Sans (body)
   ========================================================= */
body,
button,
input,
select,
textarea {
  font-family: "DM Sans", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sf-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Syne", "DM Sans", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem);  font-weight: 700; margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 600; margin-bottom: 14px; }

a { color: var(--sf-accent); }
a:hover, a:focus { color: var(--sf-accent-hover); }

/* Layout container width to match swiftforgeweb.com (1280px) */
.grid-container { max-width: var(--sf-container); }

/* Full-width site shell so section bands bleed edge-to-edge, while the
   header and footer inner content stay centered at the container width. */
#page.grid-container { max-width: 100%; }
.inside-header.grid-container { max-width: var(--sf-container); margin-left: auto; margin-right: auto; }

/* Home: strip GeneratePress's article padding/box so full-width sections
   reach the viewport edges (the .no-sidebar layout disables GP's own
   alignfull breakout, so we own the full-bleed here). */
.home .separate-containers .inside-article,
.sf-fullbleed .separate-containers .inside-article {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.home #primary.content-area, .home #main.site-main,
.sf-fullbleed #primary.content-area, .sf-fullbleed #main.site-main { margin: 0 !important; padding: 0 !important; }
.home .entry-content, .sf-fullbleed .entry-content { margin: 0 !important; }
.home .entry-content .alignfull,
.sf-fullbleed .entry-content .alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* Hide the default page title on full-bleed pages (title lives in a section). */
.home .entry-header, .home .page .entry-title,
.sf-fullbleed .entry-header, .sf-fullbleed .page .entry-title { display: none; }

/* =========================================================
   Header / navigation — white bar, dark links, accent hover, nav CTA button
   (flexbox structure, matching swiftforgeweb.com's header)
   ========================================================= */
.site-header {
  background-color: var(--sf-white);
  border-bottom: 1px solid var(--sf-border);
  position: sticky;   /* stay visible while scrolling — constant height */
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 14px rgba(16, 19, 25, .06);
}
.inside-header { padding-top: 20px; padding-bottom: 20px; }

/* When logged in, keep the sticky header below the WP admin bar so it is
   never covered/clipped on scroll (this was making it look like it shrank). */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* SVG logo only — hide the redundant text title + tagline (logo carries the name) */
.site-header .site-branding { display: none; }
.site-logo { display: flex; align-items: center; }
.site-logo img,
.header-image.is-logo-image { height: 58px; width: auto; max-width: none; }

/* Nav links — dark, regular weight, 60px-tall items (matches swiftforgeweb.com) */
.main-navigation,
.main-navigation ul ul { background-color: var(--sf-white); }
.main-navigation .main-nav ul li a {
  color: var(--sf-ink);
  font-weight: 400;
  padding-left: 20px;
  padding-right: 20px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation .main-nav ul li.current-menu-item a { color: var(--sf-accent); }
.main-navigation .inside-navigation { align-items: center; }

/* CTA pill button (btn_menu) — the <li> is the pill, exactly like swiftforgeweb.com */
.main-navigation .main-nav ul li.btn_menu {
  background: var(--sf-accent);
  border-radius: 36px;
  margin-left: 16px;
  transition: background-color .18s ease;
}
.main-navigation .main-nav ul li.btn_menu:hover,
.main-navigation .main-nav ul li.btn_menu:focus-within { background: var(--sf-accent-hover); }
.main-navigation .main-nav ul li.btn_menu > a,
.main-navigation .main-nav ul li.btn_menu > a:hover,
.main-navigation .main-nav ul li.btn_menu > a:focus { color: #fff; padding-left: 26px; padding-right: 26px; }

/* Desktop: tall, airy nav bar (60px items) like the main site */
@media (min-width: 769px) {
  .main-navigation .main-nav ul li a { line-height: 60px; }
}

/* Mobile hamburger toggle */
.main-navigation .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle { color: var(--sf-ink); font-weight: 600; }
.menu-toggle .gp-icon svg { fill: currentColor; }
@media (max-width: 768px) {
  /* Mobile CTA: centered pill inside the dropdown */
  .main-navigation .main-nav ul li.btn_menu { margin: 12px 20px; border-radius: 36px; }
  .main-navigation .main-nav ul li.btn_menu > a { display: block; text-align: center; }
  /* Compact one-line wordmark + centered hamburger on mobile */
  .site-branding .main-title a { font-size: 1.2rem; }
  .inside-header { padding-top: 14px; padding-bottom: 14px; align-items: center; }
  .has-inline-mobile-toggle .inside-header { align-items: center; }
}

/* =========================================================
   Buttons — accent fill, white text, 12px radius (matches sfweb CTA)
   ========================================================= */
.entry-content a.wp-block-button__link,
a.wp-block-button__link.wp-element-button,
.button,
input[type="submit"],
.wpcf7-submit {
  background-color: var(--sf-accent);
  color: var(--sf-white);
  border: 0;
  border-radius: 12px;
  padding: 14px 30px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.entry-content a.wp-block-button__link:hover,
.entry-content a.wp-block-button__link:focus,
a.wp-block-button__link.wp-element-button:hover,
.button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
  background-color: var(--sf-accent-hover);
  color: var(--sf-white);
  transform: translateY(-1px);
}

/* Outline / secondary button variant */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--sf-accent);
  border: 2px solid var(--sf-accent);
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--sf-accent);
  color: var(--sf-white);
}

/* =========================================================
   Section rhythm + dark-section helper
   ========================================================= */
.sf-section { padding-top: 72px; padding-bottom: 72px; }
.sf-section-tight { padding-top: 48px; padding-bottom: 48px; }
.sf-light { background-color: var(--sf-base-2); }

.sf-dark {
  background-color: var(--sf-dark);
  color: var(--sf-white);
}
.sf-dark h1, .sf-dark h2, .sf-dark h3, .sf-dark h4 { color: var(--sf-white); }
.sf-dark p, .sf-dark li { color: var(--sf-muted-dark); }
.sf-dark a:not(.wp-block-button__link) { color: var(--sf-accent); }

/* Hero */
.sf-hero {
  background: linear-gradient(160deg, #11151b 0%, #101319 55%, #182029 100%);
  color: var(--sf-white);
  padding-top: 96px;
  padding-bottom: 96px;
}
.sf-hero h1 { color: var(--sf-white); max-width: 900px; margin-left:auto; margin-right:auto; }
.sf-hero p { color: var(--sf-muted-dark); font-size: 1.22rem; max-width: 760px; margin-left:auto; margin-right:auto; }
p.sf-eyebrow,
.sf-hero p.sf-eyebrow,
.sf-dark p.sf-eyebrow {
  color: var(--sf-gold);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 14px;
}

/* =========================================================
   Cards / boxes — subtle border + shadow
   ========================================================= */
.sf-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 1px 2px rgba(16,19,25,.04), 0 6px 24px rgba(16,19,25,.05);
  height: 100%;
}
.sf-dark .sf-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}
.sf-card h3 { overflow-wrap: break-word; word-break: normal; hyphens: none; }
.sf-num {
  display:inline-flex; align-items:center; justify-content:center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sf-accent); color: var(--sf-white);
  font-family:"Syne",sans-serif; font-weight:700; margin-bottom: 12px;
}

/* =========================================================
   Pricing table
   ========================================================= */
.sf-pricing table,
.wp-block-table.sf-pricing table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16,19,25,.05);
}
.sf-pricing thead th {
  background: var(--sf-dark);
  color: var(--sf-white);
  font-family: "Syne", sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  font-size: 1rem;
}
.sf-pricing td {
  padding: 16px 20px;
  border-top: 1px solid var(--sf-border);
  vertical-align: top;
}
.sf-pricing tbody tr:nth-child(even) td { background: var(--sf-base-2); }
.sf-pricing td:nth-child(1) { font-weight: 600; color: var(--sf-ink); }
.sf-pricing td:nth-child(2) { font-weight: 700; color: var(--sf-accent); white-space: nowrap; }

/* =========================================================
   FAQ (native details/accordion + heading fallback)
   ========================================================= */
.sf-faq details {
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 14px;
  background: var(--sf-white);
}
.sf-faq summary {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
}
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: "+"; float: right; color: var(--sf-accent); font-size: 1.4rem; line-height: 1; }
.sf-faq details[open] summary::after { content: "\2013"; }
.sf-faq details[open] summary { border-bottom: 1px solid var(--sf-border); }
.sf-faq details > p { padding: 14px 0 18px; color: var(--sf-muted); margin: 0; }

/* Emphasis helpers */
.sf-lead { font-size: 1.3rem; font-weight: 600; color: var(--sf-white); margin-bottom: 18px; }
.sf-hero .sf-lead { color: var(--sf-white); }
.sf-kicker { font-size: 1.22rem; line-height: 1.4; margin-top: 8px; }
.sf-dark .sf-kicker { color: var(--sf-white); }
.sf-narrow-center { max-width: 640px; margin-left: auto; margin-right: auto; }
.sf-placeholder-note { color: var(--sf-muted); font-size: .95rem; }

/* Back-to-top button — accent circle, matches the SwiftForge button style */
.generate-back-to-top {
  background-color: var(--sf-accent) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  box-shadow: 0 6px 20px rgba(16,19,25,.25) !important;
}
.generate-back-to-top:hover,
.generate-back-to-top:focus { background-color: var(--sf-accent-hover) !important; color: #fff !important; }

/* Section inner width + plain FAQ cards */
.sf-inner { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.sf-narrow { max-width: 820px; }

.sf-faq-item {
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 4px 26px;
  margin-bottom: 14px;
  background: var(--sf-white);
}
.sf-faq-item h3 { margin: 20px 0 8px; font-size: 1.16rem; }
.sf-faq-item p  { margin: 0 0 20px; color: var(--sf-muted); }

/* Included-feature lists */
.sf-list ul { list-style: none; padding-left: 0; margin: 0; }
.sf-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.sf-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--sf-accent); font-weight: 700;
}

/* Hide default page title + full-bleed content on the front page */
.home .entry-header,
.home .page .entry-title { display: none; }
.home .entry-content { margin-top: 0; }
.home .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }

/* =========================================================
   Contact Form 7
   ========================================================= */
.wpcf7-form { max-width: 620px; margin: 0 auto; text-align: left; }
.wpcf7-form p { margin-bottom: 14px; }
.wpcf7-form label { display:block; font-weight:600; margin-bottom:6px; color: inherit; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 3px rgba(128,169,175,.25);
}
.wpcf7-form .wpcf7-submit { width: 100%; margin-top: 6px; }
.wpcf7 .wpcf7-response-output { border-radius: 10px; margin: 14px 0 0; }

/* =========================================================
   Anchor scroll offset for sticky/normal header
   ========================================================= */
html { scroll-behavior: smooth; }
/* Offset anchor targets so sections aren't hidden under the sticky header */
:target,
.sf-anchor,
.wp-block-group[id] { scroll-margin-top: 112px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer,
.sf-footer {
  background: var(--sf-dark);
  color: var(--sf-muted-dark);
}
.sf-footer a { color: var(--sf-accent); }
.sf-footer .sf-placeholder {
  display: inline-block;
  border: 1px dashed var(--sf-gold);
  color: var(--sf-gold);
  padding: 2px 8px;
  border-radius: 6px;
}

/* =========================================================
   Responsive
   ========================================================= */
/* GeneratePress adds 30px padding to EVERY .wp-block-group__inner-container
   inside .site-main. Our sections nest groups 3 deep (section > inner > card),
   so that padding compounds and crushes content — especially on mobile.
   We control all spacing via .sf-section / .sf-inner / .sf-card instead. */
.site-main .wp-block-group__inner-container { padding: 0 !important; }

/* Keep the constrained wrapper from capping the card rows to content-size. */
.sf-inner .wp-block-columns {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 781px) {
  /* Stack columns as full-width blocks on mobile (GeneratePress forces
     flex-wrap:nowrap, which otherwise keeps them squeezed side-by-side). */
  .wp-block-columns { display: block !important; }
  .wp-block-columns > .wp-block-column {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 0 16px !important;
  }
  .wp-block-columns > .wp-block-column:last-child { margin-bottom: 0 !important; }
  .sf-card p, .sf-card li, .sf-card h3 { overflow-wrap: normal; word-break: normal; }
}

@media (max-width: 768px) {
  .sf-section { padding-top: 52px; padding-bottom: 52px; }
  .sf-hero { padding-top: 68px; padding-bottom: 68px; }
  .sf-hero p { font-size: 1.08rem; }
  .sf-pricing thead { display: none; }
  .sf-pricing td { display: block; border-top: 0; padding: 6px 18px; }
  .sf-pricing tbody tr { display:block; border-top:1px solid var(--sf-border); padding: 12px 0; }
  .sf-pricing td:nth-child(1) { padding-top: 14px; font-size: 1.05rem; }
  .sf-pricing td:nth-child(2)::before { content: "Price: "; color: var(--sf-muted); font-weight:600; }
  .sf-pricing td:nth-child(3)::before { content: "Covers: "; color: var(--sf-muted); font-weight:600; }
}
