/**
 * FluxTheme Starter — Compiled Theme Styles
 *
 * Provides all CSS needed for front-page.php (direct block includes)
 * and theme chrome (header, footer). Blockstudio's TailwindPHP handles
 * blocks rendered through the editor pipeline.
 *
 * Color system matches Blockstudio Plus template conventions.
 */

/* ── Design Tokens ─────────────────────────────────────────── */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --color-bg: #ffffff;
  --color-elevated: #ffffff;
  --color-subtle: rgb(0 0 0 / 0.05);
  --color-muted: #6b7280;
  --color-accent: #0f3460;
  --color-accent-hover: #0a2647;
  --color-accent-tint: #eef2f8;
  --color-body: #374151;
  --color-heading: #111827;
  --color-border: #e5e7eb;
  --color-btn-bg: var(--color-accent);
  --color-btn-text: #ffffff;
  --color-btn-radius: 0.5rem;
  --color-link: var(--color-accent);
}

/* ── Base Reset ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-bg); color: var(--color-body); font-family: var(--font-sans); margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.025em; margin: 0; color: var(--color-heading); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--color-link); text-decoration: none; transition: color 0.2s; }
section { position: relative; overflow: hidden; }
header { background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ── Layout ────────────────────────────────────────────────── */

.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Flexbox ───────────────────────────────────────────────── */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ── Grid ──────────────────────────────────────────────────── */

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ── Gap ───────────────────────────────────────────────────── */

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-px { gap: 1px; }

/* ── Spacing (Margin) ──────────────────────────────────────── */

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 0.6rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-4 { margin-left: 1rem; }

/* ── Spacing (Padding) ─────────────────────────────────────── */

.p-1 { padding: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.py-40 { padding-top: 10rem; padding-bottom: 10rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.pb-0 { padding-bottom: 0; }

/* ── Typography ────────────────────────────────────────────── */

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.text-wrap\:balance { text-wrap: balance; }
.text-wrap\:pretty { text-wrap: pretty; }
.word-break-all { word-break: break-all; }

/* ── Colors ────────────────────────────────────────────────── */

.bg-bg { background-color: var(--color-bg); }
.bg-elevated { background-color: var(--color-elevated); }
.bg-accent { background-color: var(--color-accent); }
.bg-accent-hover { background-color: var(--color-accent-hover); }
.bg-accent-tint { background-color: var(--color-accent-tint); }
.bg-white { background-color: #fff; }
.text-heading { color: var(--color-heading); }
.text-body { color: var(--color-body); }
.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-white { color: #fff; }
.border-border { border-color: var(--color-border); }

/* ── Borders & Radius ──────────────────────────────────────── */

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color, currentColor); }
.overflow-hidden { overflow: hidden; }

/* ── Sizing ────────────────────────────────────────────────── */

.h-1\.5 { height: 0.375rem; }
.w-1\.5 { width: 0.375rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.w-max { width: max-content; }

/* ── Positioning ───────────────────────────────────────────── */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

/* ── Display ───────────────────────────────────────────────── */

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.pointer-events-none { pointer-events: none; }

/* ── Transitions & Animations ──────────────────────────────── */

.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ── Opacity ───────────────────────────────────────────────── */

.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-75 { opacity: 0.75; }

/* ── Cursor ────────────────────────────────────────────────── */

.cursor-pointer { cursor: pointer; }

/* ── Component: Buttons ────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--color-btn-radius);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background-color: var(--color-accent-hover); color: var(--color-btn-text); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: var(--color-btn-bg);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--color-btn-radius);
  border: 1px solid var(--color-btn-bg);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background-color: var(--color-accent-tint); }

/* ── Component: Card ───────────────────────────────────────── */

.card {
  background-color: var(--color-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgb(15 52 96 / 0.1);
}

/* ── Component: Badge ──────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background-color: var(--color-accent-tint);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Component: Label Text ─────────────────────────────────── */

.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

/* ── Custom Utilities: container ───────────────────────────── */

.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.container-px {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-no-pb {
  padding-bottom: 0;
}

/* ── Details/Summary (FAQ pattern) ─────────────────────────── */

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.first\:border-t:first-child { border-top-width: 1px; border-top-style: solid; }

/* ── Hover States ──────────────────────────────────────────── */

.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:opacity-75:hover { opacity: 0.75; }

/* ── Group States (for details/summary) ────────────────────── */

.group-open\:rotate-180:is(details[open] *) { transform: rotate(180deg); }
.group-open\:text-accent:is(details[open] *) { color: var(--color-accent); }

/* ── Responsive: sm (640px+) ───────────────────────────────── */

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .sm\:py-40 { padding-top: 10rem; padding-bottom: 10rem; }
  .sm\:pb-0 { padding-bottom: 0; }
  .sm\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:rounded-xl { border-radius: 0.75rem; }
  .container { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ── Responsive: md (768px+) ───────────────────────────────── */

@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Responsive: lg (1024px+) ──────────────────────────────── */

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:py-40 { padding-top: 10rem; padding-bottom: 10rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
