/* ===================================================================
   GetBackMyTime — Shared Light Theme Styles
   Phase 2: Shared Components
   =================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, .15);
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================================================
   HEADER — transparent over hero, not sticky
   =================================================================== */
.gbmt-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: transparent;
}

.gbmt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gbmt-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.gbmt-logo svg {
  display: block;
  flex-shrink: 0;
}

.gbmt-logo span {
  letter-spacing: -0.01em;
}

/* Nav */
.gbmt-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gbmt-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.gbmt-nav a:hover,
.gbmt-nav a.active {
  color: var(--text-primary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.8em;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-body);
  min-width: 200px;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* CTA button in nav */
.nav-cta {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-primary-hover) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-primary);
}

.header-toggle svg {
  display: block;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.gbmt-footer {
  display: block;
  visibility: visible;
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ===================================================================
   UTILITY
   =================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .gbmt-header {
    padding: 1rem;
  }

  .header-toggle {
    display: block;
  }

  .gbmt-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .gbmt-nav.open {
    display: flex;
  }

  .gbmt-nav a,
  .dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}
