/*
Theme Name: FGP Child
Theme URI: https://focusgrouppanel.com
Description: Focus Group Panel child theme for GeneratePress. Brand-aligned homepage, header/footer, and blog templates. First-pass draft — refine in the Customizer / here.
Author: Ikan Media
Author URI: https://focusgrouppanel.com
Template: generatepress
Version: 0.1.0
Text Domain: fgp-child
Tags: custom-logo, custom-menu, featured-images
*/

/* ============================================================
   FGP BRAND TOKENS
   ============================================================ */
:root {
  --fgp-brand: #F07228;        /* primary orange */
  --fgp-brand-d: #d9601a;      /* orange hover */
  --fgp-brand-tint: #fdefe6;   /* soft orange wash */
  --fgp-brand-tint-bd: #f7cdad;
  --fgp-rgb: 240,114,40;
  --fgp-bg: #f9f9f9;           /* grayish-white page bg */
  --fgp-card: #ffffff;
  --fgp-ink: #1f2733;          /* dark text */
  --fgp-slate: #566070;        /* gray text */
  --fgp-mute: #9aa3b0;
  --fgp-line: #e7e3db;         /* hairline */
  --fgp-money: #15803d;        /* money green */
  --fgp-money-bg: #dcfce7;
  --fgp-remote: #0e7490;
  --fgp-remote-bg: #cffafe;
  --fgp-inperson: #7c3aed;
  --fgp-inperson-bg: #ede9fe;
  --fgp-rad: 14px;
  --fgp-rad-sm: 11px;
  --fgp-shadow: 0 1px 3px rgba(31,39,51,.06), 0 8px 24px rgba(31,39,51,.05);
  --fgp-font: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fgp-maxw: 1180px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--fgp-font);
  color: var(--fgp-ink);
  background: var(--fgp-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fgp-brand); }
a:hover { color: var(--fgp-brand-d); }
img { max-width: 100%; height: auto; }
.fgp-wrap { max-width: var(--fgp-maxw); margin: 0 auto; padding: 0 20px; }

/* Shared button styles */
.fgp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--fgp-rad-sm); border: none;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .05s;
  white-space: nowrap;
}
.fgp-btn-primary { background: var(--fgp-brand); color: #fff; }
.fgp-btn-primary:hover { background: var(--fgp-brand-d); color: #fff; }
.fgp-btn-ghost {
  background: #fff; color: var(--fgp-ink);
  border: 1.5px solid var(--fgp-line);
}
.fgp-btn-ghost:hover { border-color: var(--fgp-brand); color: var(--fgp-brand); }
.fgp-btn:active { transform: translateY(1px); }

/* ============================================================
   HEADER
   ============================================================ */
.fgp-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--fgp-line);
}
.fgp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.fgp-logo img { display: block; height: 38px; width: auto; }
.fgp-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.fgp-nav a {
  display: block; color: var(--fgp-ink); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 9px 14px; border-radius: 9px;
}
.fgp-nav a:hover { background: var(--fgp-brand-tint); color: var(--fgp-brand-d); }
.fgp-nav .current-menu-item > a { color: var(--fgp-brand); }
.fgp-nav-cta a {
  background: var(--fgp-brand); color: #fff !important;
}
.fgp-nav-cta a:hover { background: var(--fgp-brand-d); }

/* mobile hamburger (CSS-only checkbox) */
.fgp-nav-toggle, .fgp-nav-toggle-label { display: none; }

@media (max-width: 900px) {
  .fgp-nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; padding: 10px;
  }
  .fgp-nav-toggle-label span {
    display: block; height: 2.5px; width: 100%; background: var(--fgp-ink);
    border-radius: 2px; transition: .2s;
  }
  .fgp-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--fgp-line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    box-shadow: var(--fgp-shadow);
  }
  .fgp-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px; }
  .fgp-nav a { padding: 13px 12px; border-radius: 9px; }
  .fgp-nav-cta a { text-align: center; margin-top: 6px; }
  .fgp-nav-toggle:checked ~ .fgp-nav { max-height: 1400px; overflow-y: auto; }
}

/* ---- Dropdown / mega-menu (Articles > categories > study types) ---- */
.fgp-nav li { position: relative; }
.fgp-nav .menu-item-has-children > a::after {
  content: "\25BE"; font-size: 10px; margin-left: 5px; opacity: .55; vertical-align: middle;
}
.fgp-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 216px;
  background: #fff; border: 1px solid var(--fgp-line); border-radius: 10px;
  box-shadow: var(--fgp-shadow); padding: 6px; margin-top: 4px;
  display: none; flex-direction: column; align-items: stretch; gap: 2px; z-index: 200;
}
.fgp-nav li:hover > .sub-menu, .fgp-nav li:focus-within > .sub-menu { display: flex; }
.fgp-nav .sub-menu a { white-space: nowrap; font-size: 14.5px; font-weight: 500; padding: 8px 12px; }
.fgp-nav .sub-menu .menu-item-has-children > a::after { content: "\203A"; float: right; opacity: .55; }
/* second level (study types) flies out to the side */
.fgp-nav .sub-menu .sub-menu { top: -7px; left: 100%; margin: 0 0 0 4px; }

@media (max-width: 900px) {
  /* on mobile the whole tree is stacked + indented inside the hamburger panel */
  .fgp-nav .sub-menu {
    position: static; display: flex; min-width: 0; margin: 0 0 4px 12px;
    border: none; border-left: 2px solid var(--fgp-line); border-radius: 0;
    box-shadow: none; padding: 2px 0 2px 8px;
  }
  .fgp-nav .sub-menu .sub-menu { margin-left: 10px; }
  .fgp-nav .menu-item-has-children > a::after { content: ""; }
}

/* ---- Articles page: category sections ---- */
.fgp-cat-section { margin: 0 0 42px; }
.fgp-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--fgp-brand-tint); }
.fgp-cat-head h2 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.fgp-cat-head h2 a { color: var(--fgp-ink); text-decoration: none; }
.fgp-cat-head h2 a:hover { color: var(--fgp-brand); }
.fgp-cat-all { font-size: 13.5px; font-weight: 700; color: var(--fgp-brand); text-decoration: none; white-space: nowrap; }
.fgp-cat-all:hover { text-decoration: underline; }
@media (max-width: 560px) { .fgp-cat-all { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.fgp-footer {
  background: #fff; border-top: 1px solid var(--fgp-line);
  margin-top: 60px; padding: 42px 0 30px;
}
.fgp-footer-top {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  align-items: center; justify-content: space-between;
}
.fgp-footer-logo img { height: 34px; width: auto; }
.fgp-footer-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.fgp-footer-nav a { color: var(--fgp-slate); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.fgp-footer-nav a:hover { color: var(--fgp-brand); }
.fgp-footer-bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--fgp-line);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between;
  color: var(--fgp-mute); font-size: 13px;
}
.fgp-footer-bottom a { color: var(--fgp-slate); text-decoration: none; }
.fgp-footer-bottom a:hover { color: var(--fgp-brand); }

/* ============================================================
   BLOG / SINGLE
   ============================================================ */
.fgp-single { padding: 40px 0 20px; }
.fgp-single .fgp-post-header { max-width: 760px; margin: 0 auto 24px; }
.fgp-single h1.fgp-post-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; margin: 0 0 12px;
}
.fgp-post-meta { color: var(--fgp-mute); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.fgp-post-featured { max-width: 900px; margin: 0 auto 30px; }
.fgp-post-featured img { width: 100%; border-radius: var(--fgp-rad); display: block; }
.fgp-post-content {
  max-width: 760px; margin: 0 auto; font-size: 17.5px; color: var(--fgp-ink);
}
.fgp-post-content p { margin: 0 0 1.15em; }
.fgp-post-content h2 { font-size: 26px; font-weight: 800; margin: 1.6em 0 .5em; letter-spacing: -.02em; }
.fgp-post-content h3 { font-size: 21px; font-weight: 700; margin: 1.4em 0 .4em; }
.fgp-post-content img { border-radius: var(--fgp-rad); }
.fgp-post-content a { text-decoration: underline; }
.fgp-post-footer { max-width: 760px; margin: 34px auto 0; }

/* ---------- Blog index (Articles) + archives ---------- */
.fgp-blog { padding: 44px 0 72px; }
.fgp-blog-head { text-align: center; margin-bottom: 30px; }
.fgp-blog-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.fgp-blog-head p { color: var(--fgp-slate); margin-top: 8px; }
.fgp-blog-empty { text-align: center; color: var(--fgp-slate); padding: 40px 0; }
.fgp-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.fgp-post-card { background: var(--fgp-card); border: 1px solid var(--fgp-line); border-radius: var(--fgp-rad); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.fgp-post-card:hover { box-shadow: var(--fgp-shadow); transform: translateY(-2px); }
.fgp-post-thumb { display: block; aspect-ratio: 16/9; background: var(--fgp-brand-tint); overflow: hidden; }
.fgp-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fgp-post-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; color: var(--fgp-brand); font-size: 26px; letter-spacing: .12em; }
.fgp-post-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.fgp-post-cat { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fgp-brand); background: var(--fgp-brand-tint); padding: 3px 9px; border-radius: 6px; }
.fgp-post-card .fgp-post-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.fgp-post-card .fgp-post-title a { color: var(--fgp-ink); text-decoration: none; }
.fgp-post-card .fgp-post-title a:hover { color: var(--fgp-brand); }
.fgp-post-excerpt { font-size: 14px; color: var(--fgp-slate); margin: 0; flex: 1; }
.fgp-post-card .fgp-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fgp-mute); margin-top: 4px; }
.fgp-post-more { color: var(--fgp-brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.fgp-pagination { margin-top: 36px; text-align: center; }
.fgp-pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fgp-pagination .page-numbers { display: inline-block; padding: 8px 13px; border: 1px solid var(--fgp-line); border-radius: var(--fgp-rad-sm); color: var(--fgp-ink); text-decoration: none; font-weight: 600; }
.fgp-pagination .page-numbers.current { background: var(--fgp-brand); color: #fff; border-color: var(--fgp-brand); }
.fgp-pagination .page-numbers:hover:not(.current) { border-color: var(--fgp-brand); color: var(--fgp-brand); }
@media (max-width: 900px) { .fgp-post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .fgp-post-grid { grid-template-columns: 1fr; } }

/* ---- Hero critical CSS in <head> (2026-07-24) ----
   The homepage hero's rules live in an inline <style> inside <main>, so the H1 briefly paints
   at GeneratePress's default size before re-wrapping. Measured impact is small (0.001 CLS) but
   the flash is visible, and critical above-fold CSS belongs in the head regardless.
   NOT the main CLS fix — that is AdSense auto-ads injecting into .fgp-hero-inner (0.236).
   Values are duplicated from the homepage block; keep them in sync if that block changes. */
.fgp-hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 auto; max-width: 780px; }
.fgp-hero p.fgp-sub { font-size: clamp(16px, 2.2vw, 19px); margin: 16px auto 0; max-width: 620px; }
