/* Hush TV theme – base styles. Page sections are built with Elementor;
   this file covers the header, footer helpers, blog templates, forms and small details. */

:root {
  --fg-red: #c91a1a;
  --fg-red-hover: #a61414;
  --fg-red-bright: #e12222;
  --fg-ink: #111111;
  --fg-text: #4b4b4b;
  --fg-soft: #f7f4f3;
  --fg-dark: #0a0808;
  --fg-border: #e5e5e5;
  --fg-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --fg-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fg-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fg-display); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fg-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--fg-red); color: #fff;
  padding: 10px 16px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.fg-skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--fg-red); outline-offset: 2px; }

/* ---------- Elementor details ---------- */
.elementor-widget-text-editor p { margin: 0 0 0.9em; }
.elementor-widget-text-editor p:last-child,
.elementor-widget-text-editor ul:last-child,
.elementor-widget-text-editor ol:last-child { margin-bottom: 0; }
.elementor-widget-text-editor a { color: var(--fg-red); }
.elementor-widget-heading .elementor-heading-title a { color: inherit; text-decoration: none; }
.elementor-widget-heading .elementor-heading-title a:hover { color: var(--fg-red); }
.fg-period { font-size: 12px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.fg-period--muted { color: #737373; font-weight: 500; }
.fg-period--light { color: rgba(255, 255, 255, 0.8); font-weight: 400; font-size: 11px; margin-left: 4px; }
.fg-strong-white strong { color: #fff; font-weight: 600; }
.fg-w100 { width: 100% !important; max-width: 100% !important; }
.fg-shadow img, img.fg-shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }

.fg-chips p { margin: 0; line-height: 2.6; }
.fg-chip {
  display: inline-block; margin: 0 3px; padding: 6px 14px; line-height: 1.3; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88); font-size: 12px; font-weight: 600; white-space: nowrap;
}

.fg-list ol, .fg-list ul { margin: 0; padding-left: 1.25em; }
.fg-list ol { list-style: decimal; }
.fg-list ul { list-style: disc; }
.fg-list li { margin-bottom: 0.5em; }
.fg-list li:last-child { margin-bottom: 0; }

.fg-more, .elementor-widget-text-editor a.fg-more {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-red); text-decoration: none;
}
.fg-more:hover { color: var(--fg-red-hover); }
.elementor-widget-text-editor a.fg-more--grey { color: #525252; font-size: 10px; }
.elementor-widget-text-editor a.fg-more--grey:hover { color: var(--fg-red); }
.fg-plain-link a { color: inherit !important; text-decoration: none; }
.fg-plain-link a:hover { color: var(--fg-red) !important; }
.fg-inline-btn {
  display: inline-block; background: var(--fg-red); color: #fff !important; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 12px 22px; border-radius: 2px;
}

.fg-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d61a1a;
  margin-right: 8px; vertical-align: -2px;
}

/* Section patterns */
.fg-grid-bg {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.fg-hatch { position: relative; }
.fg-hatch::before {
  content: ""; position: absolute; top: 0; left: 0; width: 176px; height: 176px; border-top-left-radius: 12px;
  pointer-events: none; opacity: 0.75;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 8px);
}
.fg-hatch > .e-con, .fg-hatch__card { position: relative; z-index: 1; height: 100%; }
.fg-poster { transition: transform 0.3s ease; }
.fg-poster:hover { transform: translateY(-3px); }
.fg-card-link:hover { border-color: var(--fg-red) !important; }
.fg-plan .elementor-button { width: 100%; }

/* Tables (plan comparison) */
.fg-table, .fg-table-wrap { min-width: 0; max-width: 100%; }
.fg-table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--fg-border); border-radius: 12px; }
.fg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; text-align: left; margin: 0; }
.fg-table thead { background: #111; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.fg-table th, .fg-table td { padding: 12px 16px; border: 0; }
.fg-table th { font-weight: 700; }
.fg-table tbody tr { border-top: 1px solid var(--fg-border); }
.fg-table td:first-child { font-weight: 600; color: #111; }
.fg-table td:nth-child(n+2), .fg-table th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.fg-table button, .fg-table a { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--fg-red); background: none; border: 0; text-decoration: none; cursor: pointer; }

/* FAQ accordions (Elementor Accordion widget) */
.fg-faq .elementor-accordion-item { border: 0 !important; border-radius: 6px; overflow: hidden; margin-bottom: 10px; background: #eef2f3; }
.fg-faq .elementor-accordion-item:last-child { margin-bottom: 0; }
.fg-faq .elementor-tab-title { border: 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.fg-faq .elementor-tab-title:hover { background: #e4eaeb !important; }
.fg-faq .elementor-tab-title .elementor-accordion-title { color: inherit; text-decoration: none; }
.fg-faq .elementor-tab-content { border: 0 !important; }
.fg-faq .elementor-accordion-icon { order: 2; }

/* Long text (legal pages) */
.fg-prose h2 { font-family: var(--fg-display); font-weight: 800; font-size: 22px; line-height: 1.3; color: #111; margin: 40px 0 12px; }
.fg-prose h3 { font-family: var(--fg-display); font-weight: 700; font-size: 17px; color: #111; margin: 28px 0 8px; }
.fg-prose p { margin: 0 0 16px; }
.fg-prose ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.fg-prose ol { list-style: decimal; padding-left: 20px; margin: 0 0 16px; }
.fg-prose li { margin-bottom: 6px; }
.fg-prose a { color: var(--fg-red); text-decoration: underline; }
.fg-prose > *:first-child { margin-top: 0; }

/* ---------- Header (Hush TV Header widget) ---------- */
.fg-site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100;
  height: 64px; margin-bottom: -64px; pointer-events: none;
}
.fg-site-header .e-con, .fg-site-header .elementor-section { padding: 0 !important; }
.fg-header { padding: 0 8px; }
@media (min-width: 640px) { .fg-header { padding: 0 24px; } }
@media (min-width: 1024px) { .fg-header { padding: 0 40px; } }
.fg-header__bar {
  pointer-events: auto; max-width: 1280px; margin: 0 auto; height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 0 20px; background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (min-width: 1024px) { .fg-header__bar { padding: 0 32px; } }
.fg-nav { display: none; align-items: center; gap: 20px; }
.fg-nav a {
  font-size: 12px; font-weight: 700; letter-spacing: 0.025em; color: #1a1a1a; text-decoration: none;
  white-space: nowrap; padding: 4px 0; transition: color 0.15s;
}
.fg-nav a:hover, .fg-nav a.is-active { color: #d61a1a; }
.fg-header__right { display: flex; align-items: center; gap: 12px; }
.fg-account {
  background: #0b0b0b; color: #fff !important; text-decoration: none; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; padding: 10px 20px; border-radius: 6px; white-space: nowrap; transition: background 0.15s;
}
.fg-account:hover { background: #242424; }
.fg-burger {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0;
  border-radius: 6px; background: transparent; color: #262626; cursor: pointer; padding: 0;
}
.fg-burger:hover { background: #f5f5f5; }
.fg-burger svg { width: 20px; height: 20px; }
.fg-burger .fg-i-close { display: none; }
.fg-header.is-open .fg-burger .fg-i-menu { display: none; }
.fg-header.is-open .fg-burger .fg-i-close { display: block; }
.fg-mobile {
  pointer-events: auto; display: none; max-width: 1280px; margin: 4px auto 0; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); border: 1px solid rgba(0, 0, 0, 0.1); padding: 16px; flex-direction: column; gap: 4px;
}
.fg-header.is-open .fg-mobile { display: flex; }
.fg-mobile a { padding: 10px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.025em; color: #262626; text-decoration: none; }
.fg-mobile a:hover { background: #f5f5f5; }
.fg-mobile a.is-active { background: #fef2f2; color: #d61a1a; }
@media (min-width: 1280px) {
  .fg-nav { display: flex; }
  .fg-burger, .fg-header.is-open .fg-mobile { display: none; }
}

/* Logo */
.fg-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.fg-logo svg { flex-shrink: 0; }
.fg-logo img { display: block; height: 36px; width: auto; }
.fg-logo__words { display: flex; flex-direction: column; line-height: 1; margin-left: -8px; }
.fg-logo__tag { font-size: 9px; font-weight: 800; letter-spacing: 0.05em; color: #d61a1a; align-self: flex-end; }
.fg-logo__name { font-family: var(--fg-display); font-size: 17px; font-weight: 800; font-style: italic; letter-spacing: -0.025em; color: #111; }
.fg-logo__name span { color: #d61a1a; }
.fg-logo--light .fg-logo__name { color: #fff; }

/* Breadcrumbs ([fg_breadcrumbs]) */
.fg-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.fg-crumbs li { display: flex; align-items: center; gap: 6px; }
.fg-crumbs li + li::before { content: "/"; }
.fg-crumbs a { color: inherit; text-decoration: none; }
.fg-crumbs a:hover { color: #fff; }
.fg-crumbs [aria-current] { color: rgba(255, 255, 255, 0.9); }

/* Footer helpers */
body.fg-no-cta .fg-footer-cta { display: none !important; }
.fg-footer .elementor-icon-list-item a { text-decoration: none; }

/* Floating chat button */
.fg-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--fg-red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); transition: transform 0.15s, background 0.15s; text-decoration: none;
}
.fg-chat:hover { background: var(--fg-red-hover); transform: scale(1.05); }
.fg-chat svg { width: 20px; height: 20px; }

/* ---------- Forms ([hushtv_form]) ---------- */
.fg-form { display: flex; flex-direction: column; gap: 16px; }
.fg-form label { display: block; font-size: 13px; font-weight: 700; color: #111; margin-bottom: 6px; }
.fg-form label .req { color: var(--fg-red); }
.fg-form input[type="text"], .fg-form input[type="email"], .fg-form input[type="tel"], .fg-form select, .fg-form textarea {
  width: 100%; background: #fff; border: 1px solid #d4d4d4; border-radius: 6px; padding: 12px 14px; font: inherit;
  font-size: 15px; color: #111; transition: border-color 0.15s, box-shadow 0.15s;
}
.fg-form input:focus, .fg-form select:focus, .fg-form textarea:focus { outline: none; border-color: var(--fg-red); box-shadow: 0 0 0 3px rgba(201, 26, 26, 0.18); }
.fg-form textarea { min-height: 130px; resize: vertical; }
.fg-form__check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: #525252 !important; }
.fg-form__check input { margin-top: 3px; }
.fg-form__check a { color: var(--fg-red); }
.fg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fg-form__btn {
  align-self: flex-start; background: var(--fg-red); color: #fff; border: 0; border-radius: 2px; padding: 14px 28px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer; transition: background 0.15s;
}
.fg-form__btn:hover { background: var(--fg-red-hover); }
.fg-form__msg { border-radius: 12px; padding: 16px 20px; font-size: 14px; line-height: 1.6; margin: 0; }
.fg-form__msg--ok { background: #eaf5ec; border: 1px solid #b9ddbf; color: #1e5b2a; }
.fg-form__msg--err { background: #fdecec; border: 1px solid #f5c2c2; color: #b42318; }
@media (max-width: 639px) { .fg-form__btn { align-self: stretch; } }

/* ---------- Theme templates: blog, posts, 404, plain pages ---------- */
.fg-band {
  position: relative; overflow: hidden; background: var(--fg-dark); color: #fff; text-align: center;
  padding: 152px 16px 56px;
}
@media (min-width: 640px) { .fg-band { padding: 152px 32px 64px; } }
.fg-band::before {
  content: ""; position: absolute; inset: 0; background-image: var(--fg-band-img); background-size: cover; background-position: center; opacity: 0.3;
}
.fg-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 8, 8, 0.7) 0%, rgba(8, 6, 6, 0.92) 70%, rgba(5, 4, 4, 0.98) 100%);
}
.fg-band__in { position: relative; z-index: 1; max-width: 768px; margin: 0 auto; }
.fg-band .fg-crumbs { margin-bottom: 20px; }
.fg-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-red-bright); margin: 0 0 12px; }
@media (min-width: 640px) { .fg-kicker { font-size: 12px; } }
.fg-band h1 { font-family: var(--fg-display); font-weight: 800; font-size: 30px; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; color: #fff; }
@media (min-width: 640px) { .fg-band h1 { font-size: 48px; } }
.fg-band__intro { font-size: 14px; line-height: 1.625; color: rgba(255, 255, 255, 0.8); max-width: 672px; margin: 0 auto; }
@media (min-width: 640px) { .fg-band__intro { font-size: 16px; } }

.fg-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .fg-wrap { padding: 0 32px; } }
.fg-block { padding: 64px 0; }
@media (min-width: 640px) { .fg-block { padding: 80px 0; } }
.fg-block--soft { background: var(--fg-soft); }
.fg-block__kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #d61a1a; margin: 0 0 8px; }
.fg-block__title { font-family: var(--fg-display); font-weight: 800; font-size: 24px; line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 40px; color: #111; }
@media (min-width: 640px) { .fg-block__title { font-size: 30px; } }

.fg-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .fg-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fg-cards { grid-template-columns: repeat(3, 1fr); } }
.fg-card { background: #fff; border: 1px solid var(--fg-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.fg-card__img { display: block; aspect-ratio: 16 / 9; background: #f5f5f5; overflow: hidden; }
.fg-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.fg-card__meta { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-red); margin: 0 0 8px; }
.fg-card__title { font-family: var(--fg-display); font-weight: 700; font-size: 17px; line-height: 1.375; margin: 0 0 8px; }
.fg-card__title a { color: #111; text-decoration: none; }
.fg-card__title a:hover { color: var(--fg-red); }
.fg-card__text { font-size: 13.5px; line-height: 1.625; color: var(--fg-text); margin: 0; flex: 1; }
.fg-pagination { margin-top: 40px; }
.fg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--fg-border); border-radius: 6px; text-decoration: none; font-size: 14px; color: #111; }
.fg-pagination .current { background: #111; color: #fff; border-color: #111; }

.fg-article { padding: 48px 0 56px; }
@media (min-width: 640px) { .fg-article { padding: 56px 0; } }
.fg-article__in { max-width: 768px; }
.fg-article__meta { font-size: 12.5px; color: #737373; margin: 0 0 24px; }
.fg-answer { background: var(--fg-soft); border-left: 4px solid var(--fg-red); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 0 0 32px; }
.fg-answer__label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-red); margin: 0 0 8px; }
.fg-answer__text { font-size: 15px; line-height: 1.6; color: #111; margin: 0; }
.fg-article__img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #f5f5f5; margin: 0 0 32px; }
.fg-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-article .fg-prose { font-size: 15px; line-height: 1.75; color: #3a3a3a; }
.fg-article__cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--fg-border); display: flex; flex-wrap: wrap; gap: 12px; }
.fg-btn {
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 14px 24px; border-radius: 2px; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.fg-btn--red { background: var(--fg-red); color: #fff; }
.fg-btn--red:hover { background: var(--fg-red-hover); }
.fg-btn--line { border: 1px solid #262626; color: #111; }
.fg-btn--line:hover { background: #111; color: #fff; }

.fg-404__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .fg-404__links { grid-template-columns: repeat(2, 1fr); } }
.fg-404__links a { display: block; border: 1px solid var(--fg-border); border-radius: 12px; padding: 18px 20px; text-decoration: none; font-weight: 700; color: #111; font-family: var(--fg-display); }
.fg-404__links a:hover { border-color: var(--fg-red); color: var(--fg-red); }
.fg-search { display: flex; gap: 8px; margin-top: 24px; max-width: 480px; }
.fg-search input[type="search"] { flex: 1; border: 1px solid #d4d4d4; border-radius: 6px; padding: 12px 14px; font: inherit; }
.fg-search button { background: #111; color: #fff; border: 0; border-radius: 6px; padding: 0 18px; font-weight: 700; font-size: 12px; cursor: pointer; }
.fg-page-plain .fg-prose { max-width: 768px; }

/* ---------- Pricing: device tabs + plan cards ---------- */
.fg-dev-tab .elementor-button { cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.fg-dev-tab.is-active .elementor-button,
.fg-dev-tab.is-active .elementor-button:hover {
  background-color: var(--fg-red) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(201, 26, 26, 0.25);
}
body:not(.elementor-editor-active) .fg-dev-panel:not(.is-active) { display: none !important; }
.elementor-editor-active .fg-dev-panel + .fg-dev-panel { margin-top: 48px; padding-top: 48px; border-top: 2px dashed rgba(201, 26, 26, 0.3); }
.fg-plan { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fg-plan:hover { transform: translateY(-4px); }
.fg-plan .elementor-icon-list-icon i, .fg-plan .elementor-icon-list-icon svg { opacity: 0.85; }
@media (min-width: 1025px) { .fg-plan--popular { transform: scale(1.02); } .fg-plan--popular:hover { transform: scale(1.02) translateY(-4px); } }
