/* FlexBuilder Frontend Styles - Minimal & Fast */

/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

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

/* ─── Page Builder Layout ──────────────────────────────────────────── */
.fb-page { width: 100%; }

.fb-section {
  width: 100%;
  position: relative;
}

.fb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fb-columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.fb-column {
  padding: 0 12px;
}

/* ─── Widgets ──────────────────────────────────────────────────────── */
.fb-widget { margin-bottom: 16px; }
.fb-widget:last-child { margin-bottom: 0; }

.fb-element { width: 100%; }

/* Heading */
.fb-heading { margin: 0; }

/* Paragraph */
.fb-paragraph { margin: 0; }

/* Image */
.fb-image { display: block; }
.fb-image__img { max-width: 100%; height: auto; }
.fb-image--empty {
  background: #f0f0f0;
  min-height: 100px;
  border: 2px dashed #ccc;
  border-radius: 4px;
}

/* Button */
.fb-button a {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
}

/* Spacer */
.fb-spacer { display: block; }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fb-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .fb-container {
    padding: 0 16px;
  }
}

/* ─── Site Layout ──────────────────────────────────────────────────── */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a1a1a;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
}

.site-nav a:hover { color: #1a1a1a; }

.site-footer {
  padding: 32px 0;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
