/* ===== FML Shell — shared between / and /blog =====
   Source of truth: frontend/index.html
   Do NOT duplicate these rules in page-specific CSS. */

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

:root {
  --bg: #1a1614;
  --bg-card: #262220;
  --bg-card-hover: #2e2a27;
  --bg-elevated: #2a2523;
  --text-primary: #e8e0d8;
  --text-secondary: #9a918a;
  --text-muted: #6e6560;
  --accent: #c4453c;
  --accent-hover: #d45248;
  --accent-dark: #a33830;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(196,69,60,0.4);
  --green-bg: #1e2e1e;
  --green-text: #6abf69;
  --green-border: rgba(106,191,105,0.2);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --header-height: 68px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #faf7f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f0eb;
  --bg-elevated: #ffffff;
  --text-primary: #2a2420;
  --text-secondary: #6b635c;
  --text-muted: #9a938c;
  --accent: #c4453c;
  --accent-hover: #b33830;
  --accent-dark: #992f28;
  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(196,69,60,0.3);
  --green-bg: #edf7ed;
  --green-text: #2d7a2d;
  --green-border: rgba(45,122,45,0.2);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf7f4; --bg-card: #ffffff; --bg-card-hover: #f5f0eb; --bg-elevated: #ffffff;
    --text-primary: #2a2420; --text-secondary: #6b635c; --text-muted: #9a938c;
    --accent: #c4453c; --accent-hover: #b33830; --accent-dark: #992f28;
    --border: rgba(0,0,0,0.08); --border-accent: rgba(196,69,60,0.3);
    --green-bg: #edf7ed; --green-text: #2d7a2d; --green-border: rgba(45,122,45,0.2);
    --shadow: 0 4px 24px rgba(0,0,0,0.06); --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  }
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg); border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: var(--font-serif); font-size: 26px; line-height: 1; color: var(--text-primary); cursor: pointer; user-select: none; flex-shrink: 0; }
.logo .fire { font-style: italic; }
.logo .my { color: var(--accent); font-style: italic; }
.logo .dot-com { font-size: 16px; color: var(--text-secondary); }
.logo .tm { font-size: 10px; vertical-align: super; color: var(--text-muted); }
.logo .slash-blog { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--text-muted); margin-left: 4px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; font-family: var(--font-sans);
  border-radius: var(--radius-xs); transition: color var(--transition), background var(--transition);
  text-decoration: none; display: block;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-xs);
  transition: color var(--transition);
}
.header-phone:hover { color: var(--text-primary); }
.header-phone i { width: 15px; height: 15px; }
.header-phone svg { width: 15px; height: 15px; }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.btn-icon:hover { color: var(--text-primary); border-color: var(--text-muted); }
.btn-icon i { width: 17px; height: 17px; }
.btn-icon svg { width: 17px; height: 17px; }
.btn-icon.mic-btn { color: var(--accent); border-color: var(--accent); }
.btn-icon .icon-sun { display: none; }
.btn-icon .icon-moon { display: block; }
[data-theme="light"] .btn-icon .icon-sun { display: block; }
[data-theme="light"] .btn-icon .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-icon .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .btn-icon .icon-moon { display: none; }
}

.btn-consult {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-xs); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-consult:hover { background: var(--accent-hover); transform: translateY(-1px); color: #fff; }

.hamburger { display: none; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 48px 24px;
  text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.8;
}
.footer-logo { font-family: var(--font-serif); font-size: 22px; color: var(--text-secondary); margin-bottom: 6px; }
.footer-logo .my { color: var(--accent); font-style: italic; }
.footer-tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.footer-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 500; margin-bottom: 20px; }
.footer-phone i { width: 14px; height: 14px; }
.footer-phone svg { width: 14px; height: 14px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a, .footer-links span { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-divider { color: var(--text-muted); opacity: 0.4; }
.footer-disclaimer { max-width: 560px; margin: 0 auto; font-size: 11px; color: var(--text-muted); line-height: 1.7; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 2000; padding: 80px 24px 24px; flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--text-primary); cursor: pointer; }
.mobile-menu-item {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 18px; font-weight: 500; color: var(--text-secondary);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; cursor: pointer; font-family: var(--font-sans); text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu-item:hover { color: var(--text-primary); }
.mobile-consult-btn {
  margin-top: 24px; padding: 16px 24px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; border: none; border-radius: var(--radius-xs);
  cursor: pointer; text-align: center; text-decoration: none;
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-buttons { display: flex; gap: 8px; }
.btn-sticky {
  flex: 1; padding: 13px 16px; border: none; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans);
}
.btn-sticky-primary { background: var(--accent); color: #fff; }
.btn-sticky-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
@media (max-width: 768px) { .mobile-sticky-cta { display: block; } body { padding-bottom: 68px; } }

/* ===== SHELL RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .header-phone { display: none; }
  .btn-consult { display: none; }
  .hamburger { display: block; }
}
