/*
Theme Name: Flowadvice
Theme URI: https://flowadvice.nl
Author: Flowadvice
Description: Flowadvice marketing website theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: flowadvice
*/

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

/* ── VARIABLES ── */
:root {
  --indigo:       oklch(40% 0.18 265);
  --indigo-mid:   oklch(52% 0.20 265);
  --indigo-light: oklch(94% 0.04 265);
  --accent:       oklch(62% 0.18 28);
  --accent-hover: oklch(56% 0.20 28);
  --surface:      oklch(99% 0.005 265);
  --muted:        oklch(56% 0.03 265);
  --border:       oklch(91% 0.015 265);
  --text:         oklch(18% 0.02 265);
}

/* ── BASE ── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--indigo); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 4px;
  position: relative;
}
.nav-link:hover, .nav-link.active,
.nav-link.current-menu-item, .nav-link.current-menu-ancestor,
.nav-link.current-menu-parent {
  color: var(--indigo); background: var(--indigo-light);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 8px 32px oklch(0% 0 0 / 10%);
  flex-direction: column; gap: 2px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: var(--indigo-light); color: var(--indigo); }
.nav-dropdown-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-caret { transition: transform 0.2s; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-cta {
  background: var(--indigo);
  color: #fff;
  border: none; cursor: pointer;
  padding: 9px 20px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--indigo-mid); transform: translateY(-1px); }

/* ── SHARED LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo-mid); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em; color: var(--text);
  text-wrap: balance;
}
.section-sub {
  font-size: 1rem; line-height: 1.7; color: var(--muted);
  max-width: 560px; margin-top: 0.75rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── FOOTER ── */
.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--text);
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px oklch(0% 0 0 / 8%);
    z-index: 90;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; justify-content: flex-start; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    border-left: 2px solid var(--indigo-light);
    border-radius: 0; margin-left: 12px;
    padding: 0.25rem 0;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
}
