/**
 * Foundation Implants — Reusable Components
 *
 * Shared layout, section, and utility classes.
 * Component-specific styles (buttons, cards) are in templates.
 *
 * @package foundation-implants
 */

/* ========================================================
   WordPress Template Part Wrapper Reset
   ======================================================== */
.wp-block-template-part {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ========================================================
   Section
   ======================================================== */
.fi-section {
  padding: 100px 0;
}

@media (max-width: 767px) {
  .fi-section {
    padding: 60px 0;
  }
}

.fi-section--dark {
  background: var(--fi-gradient, linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%));
  color: var(--white, #ffffff);
}

.fi-section--surface {
  background: var(--surface, #f4f5f7);
  color: var(--text-dark, #1a1a2e);
}

.fi-section--light {
  background: #ffffff;
  color: var(--text-dark, #1a1a2e);
}

.fi-section--light h1,
.fi-section--light h2,
.fi-section--light h3,
.fi-section--light h4 {
  color: var(--navy-deep, #0a1628);
}

.fi-section--light p {
  color: rgba(26, 26, 46, 0.7);
}

/* ========================================================
   Container
   ======================================================== */
.fi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fi-container--wide {
  max-width: 1400px;
}

/* ========================================================
   Overline
   ======================================================== */
.fi-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sapphire, #5a9fd4);
}

.fi-overline::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--sapphire, #5a9fd4);
  flex-shrink: 0;
}

/* ========================================================
   Theme toggle
   ======================================================== */
.fi-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fi-theme-toggle__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: border-color var(--fi-transition, 0.4s ease),
              box-shadow var(--fi-transition, 0.4s ease),
              transform var(--fi-transition, 0.4s ease);
}

.fi-theme-toggle__dot:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.fi-theme-toggle__dot.is-active {
  border-color: var(--sapphire, #5a9fd4);
  box-shadow: 0 0 0 3px rgba(var(--sapphire-rgb, 90, 159, 212), 0.3);
}

.fi-theme-toggle__dot[data-theme="sapphire"] { background: #5a9fd4; }
.fi-theme-toggle__dot[data-theme="arctic"]   { background: #7EB8D8; }
.fi-theme-toggle__dot[data-theme="slate"]    { background: #8896aa; }
