/* ============================================================
   FLOWHAUS DIGITAL — SHARED DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:         #0A0A0A;
  --bg2:        #111111;
  --bg3:        #181818;
  --coral:      #E8604A;
  --coral-dim:  #c44e3a;
  --purple:     #7C3AED;
  --white:      #FFFFFF;
  --gray:       #9CA3AF;
  --gray-light: #D1D5DB;
  --border:     rgba(255,255,255,0.08);
  --grad:       linear-gradient(135deg, #E8604A, #7C3AED);
  --grad-rev:   linear-gradient(135deg, #7C3AED, #E8604A);
  --font-disp:  'Fraunces', Georgia, serif;
  --font-body:  'DM Sans', sans-serif;
  --nav-h:      72px;
  --max-w:      1200px;
  --radius:     12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- TYPOGRAPHY ---- */
.disp { font-family: var(--font-disp); }

h1, h2, h3, h4 { font-family: var(--font-disp); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 96px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral-dim); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

.btn-outline-coral {
  background: transparent;
  color: var(--coral);
  border: 1px solid var(--coral);
}
.btn-outline-coral:hover { background: var(--coral); color: var(--white); }

/* ---- GRADIENT BORDER CARD ---- */
.gcard {
  position: relative;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 32px;
}
.gcard::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.gcard:hover::before { opacity: 1; }

/* ---- NAV ---- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img {
  height: 28px; width: auto;
  mix-blend-mode: screen;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 12px; }

/* ---- NAV DROPDOWN ---- */
.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex !important; align-items: center; gap: 5px; cursor: pointer;
}
.dropdown-arrow {
  font-size: 10px; line-height: 1;
  transition: transform 0.2s ease;
  display: inline-block; margin-top: 1px;
}
.nav-item-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
/* Hidden by default — display:none beats any flex/list-style inheritance */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: -16px;
  /* Use padding-top for the visual gap — keeps hover zone continuous, no gap to fall through */
  padding-top: 12px;
  min-width: 210px;
  list-style: none !important;
  flex-direction: column !important;
  z-index: 9999;
}
/* Inner wrapper gets the visual styling */
.nav-dropdown::before {
  content: '';
  display: block;
  position: absolute; top: 12px; left: 0; right: 0; bottom: 0;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: -1;
}
/* Show on hover with a fade via animation */
.nav-item-dropdown:hover .nav-dropdown {
  display: block;
  animation: dropdownFadeIn 0.15s ease forwards;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown li {
  display: block !important;
  list-style: none !important;
}
.nav-dropdown li a {
  display: block !important;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.nav-dropdown li:first-child a { border-radius: 10px 10px 0 0; }
.nav-dropdown li:last-child  a { border-radius: 0 0 10px 10px; }
/* small coral dot before each dropdown item */
.nav-dropdown li a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ---- FOOTER ---- */
footer.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--gray-light);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: var(--gray); }
.footer-bottom a { color: var(--coral); }

/* ---- SECTION DIVIDER ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 0;
}

.footer-brand img, footer img {
  mix-blend-mode: screen;
  opacity: 0.92;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation: fadeUp 0.7s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.2s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.35s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.5s ease both; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
