/*
Theme Name:  FreeMoviesWebsites
Theme URI:   https://freemovieswebsites.com
Author:      FreeMoviesWebsites
Author URI:  https://freemovieswebsites.com
Description: Dark cinematic streaming discovery theme with CPA monetisation system, affiliate sections, VPN placements, SEO schema and full conversion funnel built in.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fmw
Tags:        dark, one-column, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:         #0C0E13;
  --bg2:        #13161E;
  --bg3:        #1A1E28;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --border3:    rgba(255,255,255,0.22);
  --gold:       #E8A838;
  --gold-dim:   rgba(232,168,56,0.12);
  --gold-dim2:  rgba(232,168,56,0.22);
  --text:       #F0EDE6;
  --text2:      #9A9590;
  --text3:      #6A6560;
  --green:      #22C97A;
  --green-dim:  rgba(34,201,122,0.12);
  --blue:       #4B9FE8;
  --blue-dim:   rgba(75,159,232,0.12);
  --red:        #E85050;
  --red-dim:    rgba(232,80,80,0.1);
  --radius:     10px;
  --radius-lg:  16px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12,14,19,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .logo-accent { color: var(--gold); }

/* WordPress nav menu */
#primary-menu-wrap { margin-left: auto; }

.primary-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu li { position: relative; }
.primary-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--text); }

/* Dropdown */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: .5rem 0;
  min-width: 200px;
  list-style: none;
  z-index: 300;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a {
  display: block;
  padding: .5rem 1rem;
  font-size: 12px;
}
.primary-menu .sub-menu a:hover { background: var(--bg3); }

.nav-cta-btn {
  font-size: 12px;
  font-weight: 500;
  background: var(--gold);
  color: #0C0E13 !important;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta-btn:hover { opacity: .85; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  margin-left: auto;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.25;
}
.section-sub {
  font-size: 14px;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.fmw-hero {
  padding: 5rem 1.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-dim);
  border: 1px solid rgba(232,168,56,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.75rem;
  animation: fadeDown .5s ease both;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse    { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(16px)}  to{opacity:1;transform:translateY(0)} }

.fmw-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fadeUp .5s .1s ease both;
}
.fmw-hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeUp .5s .2s ease both;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  animation: fadeUp .5s .3s ease both;
}
.hstat { text-align: center; }
.hstat-n {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hstat-l { font-size: 12px; color: var(--text3); margin-top: 3px; }

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .5s .35s ease both;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0C0E13;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); opacity: .9; color: #0C0E13; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 30px;
  border: 1px solid var(--border2);
  text-decoration: none;
  transition: all .15s;
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text2);
}
.trust-icon { font-size: 14px; }

/* ============================================================
   PLATFORM CARDS
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.p-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color .15s, transform .15s;
}
.p-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.p-card-icon { font-size: 28px; margin-bottom: .75rem; display: block; }
.p-card-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: .25rem; }
.p-card-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }
.p-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 8px;
}
.tag-free    { background: var(--green-dim); color: var(--green); }
.tag-trial   { background: var(--blue-dim);  color: var(--blue);  }
.tag-library { background: var(--gold-dim2); color: var(--gold);  }
.tag-geo     { background: var(--red-dim);   color: var(--red);   }

/* Category filter pills */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.75rem; }
.cat-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--gold);
  color: #0C0E13;
  border-color: var(--gold);
}

/* ============================================================
   INLINE CTA BOX
   ============================================================ */
.cta-inline {
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(232,168,56,0.06) 100%);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.cta-inline-text h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}
.cta-inline-text p { font-size: 13px; color: var(--text2); }

/* ============================================================
   VPN SECTION
   ============================================================ */
.vpn-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.vpn-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.vpn-badge { background: var(--red-dim); color: var(--red); font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 8px; }
.vpn-title { font-size: 15px; font-weight: 500; color: var(--text); }
.vpn-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.vpn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.vpn-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  text-decoration: none;
  transition: border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vpn-card:hover { border-color: var(--border2); }
.vpn-card-name { font-size: 13px; font-weight: 500; color: var(--text); }
.vpn-card-desc { font-size: 11px; color: var(--text2); }
.vpn-card-cpa  { font-size: 10px; font-weight: 500; color: var(--green); margin-top: 2px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: color .15s;
  user-select: none;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { font-size: 18px; color: var(--text3); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; margin-top: .75rem; }

/* ============================================================
   FINAL CTA BLOCK
   ============================================================ */
.final-cta {
  text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  margin: 0 0 4rem;
}
.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.final-cta p { font-size: 14px; color: var(--text2); margin-bottom: 1.75rem; }

/* ============================================================
   INTERNAL LINK GRID
   ============================================================ */
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 1rem;
}
.int-link {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  text-decoration: none;
  transition: border-color .15s;
  display: block;
}
.int-link:hover { border-color: var(--border3); }
.int-link-title { font-size: 13px; font-weight: 500; color: var(--text); }
.int-link-sub   { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ============================================================
   SINGLE POST / PAGE CONTENT
   ============================================================ */
.post-header { padding: 4rem 0 2rem; }
.post-meta { font-size: 12px; color: var(--text3); margin-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-meta a { color: var(--text2); text-decoration: none; }
.post-meta a:hover { color: var(--gold); }
.post-updated { font-size: 11px; font-weight: 500; color: var(--green); }

.entry-content {
  color: var(--text2);
  line-height: 1.8;
  font-size: 16px;
}
.entry-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 .75rem;
}
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}
.entry-content li { margin-bottom: .4rem; }
.entry-content a { color: var(--gold); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content strong { color: var(--text); font-weight: 500; }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text2);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}
.entry-content th {
  background: var(--bg2);
  color: var(--text);
  font-weight: 500;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}
.entry-content td {
  padding: .65rem 1rem;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.entry-content tr:hover td { background: var(--bg2); }

/* ============================================================
   ARCHIVE / BLOG INDEX
   ============================================================ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 2rem 0;
}
.article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.article-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.article-card-thumb { aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 1.25rem; }
.article-card-cat { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: .5rem; }
.article-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .5rem;
  text-decoration: none;
  display: block;
}
.article-card-title:hover { color: var(--gold); }
.article-card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; }
.article-card-meta { font-size: 11px; color: var(--text3); margin-top: .75rem; }

/* Pagination */
.fmw-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.fmw-pagination a,
.fmw-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
}
.fmw-pagination a:hover { border-color: var(--border2); color: var(--text); }
.fmw-pagination .current { background: var(--gold); color: #0C0E13; border-color: var(--gold); }

/* ============================================================
   CPA LOCKER PAGE
   ============================================================ */
.locker-wrap { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.locker-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.back-link { font-size: 12px; color: var(--text3); text-decoration: none; transition: color .15s; }
.back-link:hover { color: var(--text2); }

.progress-wrap { margin-bottom: 2rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 500;
}
.progress-label span { color: var(--gold); }
.progress-track { height: 4px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 50%;
  background: var(--gold);
  border-radius: 4px;
  animation: grow .6s .3s ease both;
}
@keyframes grow { from{width:0} to{width:50%} }

.locker-headline { text-align: center; margin-bottom: 2.5rem; animation: fadeUp .4s ease both; }
.unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-dim);
  border: 1px solid rgba(232,168,56,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
.locker-headline h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: .75rem;
}
.locker-headline h1 em { font-style: italic; color: var(--gold); }
.locker-headline .sub { font-size: 14px; color: var(--text2); line-height: 1.7; max-width: 520px; margin: 0 auto; }

.social-proof { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.sp-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.sp-divider { color: var(--text3); }

.teaser-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  text-align: center;
  margin-bottom: 1rem;
}
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 1rem; }
.teaser-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.tc-icon { font-size: 20px; margin-bottom: 6px; display: block; }
.tc-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.tc-desc { font-size: 11px; color: var(--text2); line-height: 1.4; }
.tc-tag { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 8px; margin-top: 6px; }

.more-count {
  text-align: center;
  padding: .85rem;
  font-size: 13px;
  color: var(--text2);
  background: var(--bg2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.more-count strong { color: var(--gold); }

.unlock-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.ud-line { flex: 1; height: 1px; background: var(--border); }
.ud-text { font-size: 12px; font-weight: 500; color: var(--text3); text-align: center; white-space: nowrap; }

.offer-zone {
  background: var(--bg2);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.oz-header { text-align: center; margin-bottom: 1.5rem; }
.oz-title { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.oz-sub { font-size: 12px; color: var(--text2); }

.cpa-wall-placeholder {
  background: var(--bg3);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.wyg-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.wyg-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.wyg-title .accent { color: var(--gold); }
.wyg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wyg-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text2); line-height: 1.5; }
.wyg-check { color: var(--green); flex-shrink: 0; margin-top: 1px; font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: .75rem;
}
.footer-logo .logo-accent { color: var(--gold); }
.footer-tagline { font-size: 12px; color: var(--text3); line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: .85rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { font-size: 11px; color: var(--text3); line-height: 1.7; max-width: 700px; }
.footer-legal a { color: var(--text2); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: var(--text3); }

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget-area { padding: 2rem 0; }
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.widget ul a { font-size: 13px; color: var(--text2); text-decoration: none; }
.widget ul a:hover { color: var(--gold); }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 { text-align: center; padding: 6rem 1.5rem; }
.page-404 h1 { font-family: 'Fraunces', serif; font-size: 6rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.page-404 h2 { font-size: 1.5rem; color: var(--text); margin-bottom: .75rem; }
.page-404 p { font-size: 14px; color: var(--text2); margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #primary-menu-wrap { display: none; }
  #primary-menu-wrap.open { display: block; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; }
  #primary-menu-wrap.open .primary-menu { flex-direction: column; gap: .75rem; }
  .nav-mobile-toggle { display: block; }
  .nav-cta-btn { display: none; }
  h1 { font-size: 2rem; }
  .fmw-hero { padding: 3.5rem 1.25rem 3rem; }
  .cta-inline { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
  .trust-bar { gap: 1rem; justify-content: flex-start; }
  .wyg-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.25rem; }
}
@media (max-width: 440px) {
  .footer-inner { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
}
