/*
Theme Name: Fiat 500 Club Romania
Theme URI: https://fiat500club.ro
Author: Fiat 500 Club Romania
Description: Community theme for Fiat 500 enthusiasts in Romania.
Version: 3.0.0
License: GPL-2.0-or-later
Text Domain: fiat500ro
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Italian flag */
  --green:   #4a7c3f;   /* slightly muted olive-green from logo */
  --red:     #8b3a2a;   /* warm terracotta-red from logo */
  --white:   #ffffff;

  /* Romanian flag accents */
  --ro-blue:   #002B7F;
  --ro-yellow: #FCD116;
  --ro-red:    #CE1126;

  /* UI palette */
  --primary:  #8b3a2a;   /* terracotta / logo red */
  --secondary:#4a7c3f;   /* olive green / logo green */
  --dark:     #1c1c2e;
  --dark2:    #14142a;
  --mid:      #2d2d4e;
  --warm:     #6b5b45;   /* logo "Club.ro" brown */
  --light:    #f7f5f0;
  --muted:    #6c757d;
  --border:   #ddd8d0;

  /* Typography */
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & shadows */
  --r:   8px;
  --rl: 16px;
  --sh:  0 4px 20px rgba(0,0,0,.09);
  --shl: 0 12px 48px rgba(0,0,0,.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--dark); background: var(--light); line-height: 1.65; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .72rem 1.65rem; border-radius: var(--r);
  font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 2px solid transparent; transition: all .25s;
  text-align: center; line-height: 1;
}
.btn-primary  { background: var(--primary);   color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: #6e2d1f; border-color: #6e2d1f; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139,58,42,.3); }
.btn-secondary{ background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #356130; border-color: #356130; color: #fff; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark     { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: #0d0d1f; color: #fff; }
.btn-white    { background: #fff; color: var(--dark); border-color: #fff; }
.btn-white:hover { background: #f0ebe3; border-color: #f0ebe3; }

/* Section headings */
.sec-title { font-family: var(--fh); font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.15; }
.sec-sub   { color: var(--muted); font-size: 1.05rem; margin-top: .5rem; }
.sec-hdr   { text-align: center; margin-bottom: 3rem; }
.sec-hdr .sec-title::after {
  content: ''; display: block; width: 54px; height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  margin: .75rem auto 0; border-radius: 2px;
}

/* Form elements */
.fg { margin-bottom: 1.2rem; }
.fg label { display: block; font-weight: 600; font-size: .85rem; color: var(--dark); margin-bottom: .4rem; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid var(--border); border-radius: var(--r);
  font-family: var(--fb); font-size: .95rem; color: var(--dark);
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,58,42,.12);
}
.fg textarea { min-height: 100px; resize: vertical; }

.ok-msg { display: none; background: #eaf5ea; border: 1px solid var(--secondary); color: var(--secondary); padding: .75rem 1rem; border-radius: var(--r); font-size: .9rem; font-weight: 600; margin-top: 1rem; align-items: center; gap: .5rem; }
.ok-msg.show { display: flex; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
/* Italian flag stripe */
#site-header::before {
  content: ''; display: block; height: 4px;
  background: linear-gradient(90deg, #4a7c3f 33.3%, #f5f0e8 33.3% 66.6%, #8b3a2a 66.6%);
}
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1.5rem; max-width: 1180px; margin: 0 auto; gap: 1.5rem;
}
.site-logo img {
  height: 52px; width: auto;
  filter: brightness(0) invert(1); /* white version on dark header */
  transition: opacity .2s;
}
.site-logo:hover img { opacity: .85; }

#main-nav ul { list-style: none; display: flex; gap: .15rem; align-items: center; }
#main-nav a {
  color: rgba(255,255,255,.82); padding: .45rem .9rem;
  border-radius: var(--r); font-size: .875rem; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
#main-nav a:hover, #main-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
#main-nav .nav-cta { background: var(--primary) !important; color: #fff !important; }
#main-nav .nav-cta:hover { background: #6e2d1f !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .5rem; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

/* ============================================================
   PAGE HERO (shared across all inner pages)
   ============================================================ */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, var(--mid) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400'%3E%3Ccircle cx='900' cy='80' r='320' fill='%238b3a2a' opacity='0.05'/%3E%3Ccircle cx='50' cy='350' r='220' fill='%234a7c3f' opacity='0.05'/%3E%3C/svg%3E") no-repeat center/cover;
}
.page-hero .container { position: relative; z-index: 1; }
.ph-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--ro-yellow); padding: .35rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.page-hero h1 { font-family: var(--fh); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.1; margin-bottom: .9rem; }
.page-hero h1 em { color: var(--ro-yellow); font-style: normal; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 580px; line-height: 1.72; }

/* ============================================================
   HOME PAGE
   ============================================================ */
#home-hero {
  min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, var(--mid) 100%);
  color: #fff; position: relative; overflow: hidden;
}
#home-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800'%3E%3Ccircle cx='1200' cy='150' r='500' fill='%238b3a2a' opacity='0.05'/%3E%3Ccircle cx='100' cy='700' r='350' fill='%234a7c3f' opacity='0.05'/%3E%3C/svg%3E") no-repeat center/cover;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-text .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--ro-yellow); padding: .4rem 1.1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-family: var(--fh); font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.08; margin-bottom: 1.25rem;
}
.hero-text h1 em { color: var(--ro-yellow); font-style: normal; }
.hero-text p  { color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.stat-n { display: block; font-size: 2.2rem; font-weight: 700; color: var(--ro-yellow); font-family: var(--fh); }
.stat-l { font-size: .74rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .07em; }

/* Hero logo side */
.hero-logo-side {
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-side img {
  width: 100%; max-width: 440px;
  /* on dark bg: invert to white */
  filter: brightness(0) invert(1);
  opacity: .92;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.5)) brightness(1.05);
}

/* Home nav cards */
.home-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.hcard {
  background: #fff; border-radius: var(--rl); box-shadow: var(--sh);
  padding: 2rem 1.5rem; text-align: center; border-top: 4px solid transparent;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  text-decoration: none; color: inherit;
}
.hcard:hover { transform: translateY(-5px); box-shadow: var(--shl); color: inherit; }
.hcard:nth-child(1) { border-top-color: var(--primary); }
.hcard:nth-child(2) { border-top-color: var(--secondary); }
.hcard:nth-child(3) { border-top-color: var(--ro-blue); }
.hcard:nth-child(4) { border-top-color: var(--warm); }
.hcard-icon  { font-size: 2.8rem; line-height: 1; }
.hcard-title { font-family: var(--fh); font-size: 1.18rem; font-weight: 700; color: var(--dark); }
.hcard-desc  { color: var(--muted); font-size: .875rem; line-height: 1.6; flex: 1; }

/* ============================================================
   TIMELINE
   ============================================================ */
#tl-section { padding: 5rem 0 6rem; background: var(--light); }
.tl-wrap { position: relative; }
.tl-wrap::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; transform: translateX(-50%); border-radius: 2px;
  background: linear-gradient(180deg, var(--secondary) 0%, #ccc 50%, var(--primary) 100%);
}
.tl-item {
  display: flex; justify-content: flex-end;
  padding-right: calc(50% + 3rem);
  margin-bottom: 3.5rem; position: relative;
  opacity: 0; transform: translateX(-40px); transition: opacity .6s ease, transform .6s ease;
}
.tl-item.right { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 3rem); transform: translateX(40px); }
.tl-item.visible { opacity: 1; transform: none; }

.tl-dot {
  position: absolute; left: 50%; top: 1.75rem; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--primary); z-index: 2; transition: transform .3s;
}
.tl-item:hover .tl-dot { transform: translateX(-50%) scale(1.4); }

.tl-card {
  background: #fff; border-radius: var(--rl); box-shadow: var(--sh);
  padding: 2rem; max-width: 460px;
  border-left: 4px solid var(--secondary);
  transition: transform .3s, box-shadow .3s; overflow: hidden; position: relative;
}
.tl-item.right .tl-card { border-left: none; border-right: 4px solid var(--primary); }
.tl-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0; transition: opacity .3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shl); }
.tl-card:hover::before { opacity: 1; }

.tl-year { display: inline-block; background: var(--primary); color: #fff; padding: .28rem .85rem; border-radius: 50px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .9rem; }
.tl-card h3 { font-family: var(--fh); font-size: 1.42rem; color: var(--dark); margin-bottom: .25rem; }
.tl-nick  { font-size: .88rem; color: var(--secondary); font-weight: 600; font-style: italic; margin-bottom: .72rem; }
.tl-card p { color: var(--muted); font-size: .92rem; line-height: 1.72; margin-bottom: 1rem; }
.tl-specs  { display: flex; gap: .55rem; flex-wrap: wrap; }
.spec      { background: var(--light); border: 1px solid var(--border); color: var(--dark); padding: .22rem .65rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.spec.g    { background: #eaf5e8; color: var(--secondary); border-color: #c3e0be; }
.spec.r    { background: #faeae7; color: var(--primary);   border-color: #e8bdb5; }

/* ============================================================
   YOUR FIAT + MAP
   ============================================================ */
#yf-section  { padding: 5rem 0; background: #fff; }
#map-section { padding: 5rem 0 6rem; background: var(--dark); color: #fff; }
#map-section .sec-title { color: #fff; }
#map-section .sec-sub   { color: rgba(255,255,255,.6); }
#map-section .sec-hdr .sec-title::after { background: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow)); }

.yf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border-radius: var(--rl); box-shadow: var(--sh); padding: 2.5rem; border-top: 4px solid var(--primary); }
.form-card h3 { font-family: var(--fh); font-size: 1.4rem; margin-bottom: .4rem; }
.form-card .fsub { color: var(--muted); font-size: .875rem; margin-bottom: 1.75rem; }

.upload-zone { border: 2px dashed var(--border); border-radius: var(--r); padding: 1.5rem; text-align: center; cursor: pointer; transition: all .22s; background: var(--light); }
.upload-zone:hover { border-color: var(--primary); background: #fdf5f3; }
.upload-zone input { display: none; }
.upload-zone .uz-icon { font-size: 2.2rem; margin-bottom: .4rem; }

.thumb-row { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .85rem; }
.thumb-img  { width: 82px; height: 82px; object-fit: cover; border-radius: var(--r); border: 2px solid var(--border); }

.gal-panel h3   { font-family: var(--fh); font-size: 1.4rem; margin-bottom: .4rem; }
.gal-panel .gsub { color: var(--muted); font-size: .875rem; margin-bottom: 1.5rem; }
.gal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.gal-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; transition: transform .3s; }
.gal-card:hover { transform: translateY(-3px); }
.gal-thumb { width: 100%; height: 148px; object-fit: cover; background: linear-gradient(135deg,#eaf5e8,#faeae7); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gal-body  { padding: .85rem; }
.gal-city  { display: flex; align-items: center; gap: .3rem; color: var(--primary); font-weight: 700; font-size: .82rem; margin-bottom: .3rem; }
.gal-desc  { color: var(--muted); font-size: .8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Map */
.map-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.map-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rl); padding: 1.5rem; }
#ro-map { width: 100%; height: auto; }
#ro-map .city-grp { cursor: pointer; }
#ro-map .city-grp:hover circle.cdot { r: 11; }

.map-tip { position: fixed; background: var(--dark2); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .7rem 1rem; border-radius: var(--r); font-size: .84rem; pointer-events: none; z-index: 999; opacity: 0; transition: opacity .18s; min-width: 168px; }
.map-tip.show { opacity: 1; }
.tt-city-name { font-weight: 700; color: var(--ro-yellow); margin-bottom: .18rem; }

.map-sidebar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.lb-list { display: flex; flex-direction: column; gap: .45rem; }
.lb-row  { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; background: rgba(255,255,255,.05); border-radius: var(--r); transition: background .2s; }
.lb-row:hover { background: rgba(255,255,255,.1); }
.lb-rank  { font-size: .8rem; font-weight: 700; color: var(--ro-yellow); width: 22px; text-align: center; flex-shrink: 0; }
.lb-city  { flex: 1; font-size: .875rem; color: rgba(255,255,255,.88); }
.lb-bw    { flex: 1; background: rgba(255,255,255,.1); border-radius: 4px; height: 6px; overflow: hidden; }
.lb-bar   { height: 100%; background: linear-gradient(90deg, var(--primary), var(--ro-yellow)); border-radius: 4px; transition: width 1s ease; }
.lb-cnt   { font-size: .82rem; font-weight: 700; color: var(--ro-yellow); min-width: 26px; text-align: right; }

/* ============================================================
   FORUM
   ============================================================ */
#forum-section { padding: 5rem 0; background: var(--light); }
.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.cat-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cbt { padding: .38rem .95rem; border-radius: 50px; border: 2px solid var(--border); background: #fff; color: var(--muted); font-size: .83rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.cbt:hover, .cbt.on { background: var(--primary); color: #fff; border-color: var(--primary); }

.thread-list { display: flex; flex-direction: column; gap: .65rem; }
.thr { background: #fff; border-radius: var(--r); box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 1.15rem 1.4rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border-left: 3px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.thr:hover { border-left-color: var(--primary); transform: translateX(4px); box-shadow: var(--sh); }
.thr.pinned { border-left-color: var(--ro-yellow); }
.tav { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.tt  { font-weight: 700; color: var(--dark); margin-bottom: .2rem; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm  { display: flex; align-items: center; gap: .65rem; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.ttag { background: var(--light); color: var(--secondary); border: 1px solid #c3e0be; padding: .12rem .5rem; border-radius: 4px; font-size: .73rem; font-weight: 600; }
.ts  { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.tr  { font-weight: 700; color: var(--primary); font-size: .95rem; }

.sb-card { background: #fff; border-radius: var(--r); box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 1.4rem; margin-bottom: 1.4rem; }
.sb-card h4 { font-weight: 700; font-size: .95rem; color: var(--dark); margin-bottom: .9rem; padding-bottom: .65rem; border-bottom: 2px solid var(--light); }
.sb-stat { display: flex; justify-content: space-between; font-size: .85rem; padding: .25rem 0; }
.sb-val  { font-weight: 700; color: var(--primary); }
.rpost   { padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.rpost:last-child { border-bottom: none; }
.rp-t { color: var(--dark); font-weight: 600; }
.rp-m { color: var(--muted); font-size: .75rem; }

/* ============================================================
   DIY
   ============================================================ */
#diy-section { padding: 5rem 0; background: #fff; }
.diy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.diy-card { background: #fff; border-radius: var(--rl); box-shadow: var(--sh); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.diy-card:hover { transform: translateY(-5px); box-shadow: var(--shl); }
.diy-img { height: 185px; background: linear-gradient(135deg,var(--dark2),var(--mid)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden; }
.diy-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diff { position: absolute; top: .7rem; right: .7rem; padding: .22rem .65rem; border-radius: 50px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; z-index: 1; }
.diff.easy   { background: var(--secondary); color: #fff; }
.diff.medium { background: var(--ro-yellow); color: var(--dark); }
.diff.hard   { background: var(--primary); color: #fff; }
.diy-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.diy-cat  { font-size: .76rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .45rem; }
.diy-card h3 { font-family: var(--fh); font-size: 1.1rem; color: var(--dark); margin-bottom: .55rem; line-height: 1.4; }
.diy-card p  { color: var(--muted); font-size: .865rem; line-height: 1.65; flex: 1; margin-bottom: 1.15rem; }
.diy-foot { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); padding-top: .9rem; border-top: 1px solid var(--border); margin-top: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
/* Romanian flag stripe */
#site-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--ro-blue) 33.3%, var(--ro-yellow) 33.3% 66.6%, var(--ro-red) 66.6%); margin-bottom: 4rem; }
.ft-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.ft-brand .logo-ft { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.ft-brand p { font-size: .875rem; line-height: 1.7; margin-bottom: 1rem; }
.soc { display: flex; gap: .5rem; }
.soc-a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.72); font-size: .85rem; transition: all .2s; text-decoration: none; }
.soc-a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.ft-col h4 { color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .07em; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: .45rem; }
.ft-col a  { color: rgba(255,255,255,.62); font-size: .85rem; transition: color .2s; }
.ft-col a:hover { color: var(--ro-yellow); }
.ft-bottom { padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: .5rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2000; align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(4px); }
.modal-bg.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--rl); box-shadow: var(--shl); max-width: 540px; width: 100%; padding: 2.5rem; position: relative; animation: mIn .3s ease; }
@keyframes mIn { from { opacity:0; transform: translateY(18px) scale(.97); } to { opacity:1; transform: none; } }
.modal-x { position: absolute; top: .9rem; right: .9rem; background: var(--light); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-x:hover { background: var(--primary); color: #fff; }

/* ============================================================
   SINGLE CONTENT (forum topic / diy article)
   ============================================================ */
.content-prose { line-height: 1.82; font-size: 1.02rem; color: #333; }
.content-prose h2, .content-prose h3 { font-family: var(--fh); margin: 2rem 0 .9rem; color: var(--dark); }
.content-prose h2 { font-size: 1.55rem; }
.content-prose h3 { font-size: 1.2rem; }
.content-prose p  { margin-bottom: 1.2rem; }
.content-prose ul, .content-prose ol { margin: 1rem 0 1.2rem 1.5rem; }
.content-prose li { margin-bottom: .4rem; }
.content-prose img { border-radius: var(--r); margin: 1.5rem 0; max-width: 100%; }
.content-prose blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: var(--light); margin: 1.5rem 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; }
.content-prose code { background: var(--light); padding: .1rem .4rem; border-radius: 3px; font-size: .88em; }
.content-prose strong { color: var(--dark); }

/* ============================================================
   ANIMATIONS & HELPERS
   ============================================================ */
@keyframes fadeUp { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform: none; } }
.fu  { opacity: 0; animation: fadeUp .65s ease forwards; }
.fu1 { animation-delay: .1s; }
.fu2 { animation-delay: .25s; }
.fu3 { animation-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-logo-side { display: none; }
  .home-cards    { grid-template-columns: repeat(2,1fr); }
  .tl-wrap::before { left: 1.5rem; }
  .tl-item, .tl-item.right { padding-left: 4rem; padding-right: 0; justify-content: flex-start; transform: translateY(20px); }
  .tl-item.right .tl-card  { border-right: none; border-left: 4px solid var(--primary); }
  .tl-dot { left: 1.5rem; }
  .yf-grid     { grid-template-columns: 1fr; }
  .map-layout  { grid-template-columns: 1fr; }
  .forum-layout{ grid-template-columns: 1fr; }
  .diy-grid    { grid-template-columns: repeat(2,1fr); }
  .ft-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 1rem; z-index: 800; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: .2rem; }
  .hamburger { display: flex; }
  #site-header { position: relative; }
  .hero-stats  { flex-wrap: wrap; gap: 1.5rem; }
  .diy-grid    { grid-template-columns: 1fr; }
  .gal-grid    { grid-template-columns: 1fr; }
  .home-cards  { grid-template-columns: 1fr; }
  .ft-grid     { grid-template-columns: 1fr; }
}
