/* ===== SHARED STYLES - Edgeline Planners ===== */
:root {
  --white: #ffffff;
  --off-white: #fafaf8;
  --footer-bg: #f9fafb;
  --light-gray: #f4f4f2;
  --mid-gray: #e8e6e2;
  --border: #dddbd6;
  --text-dark: #1a1a18;
  --text-mid: #4a4a46;
  --text-light: #8a8a84;
  --accent: #8c7355;
  --accent-light: #b09878;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 72px; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-dark); background: var(--white); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.ep-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}
.ep-nav.scrolled { background: rgba(255,255,255,0.99); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.ep-logo { display: flex; align-items: center; gap: 10px; }
.ep-logo img { height: 32px; width: auto; }
.ep-nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.ep-nav-links a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.ep-nav-links a:hover, .ep-nav-links a.active { color: var(--text-dark); }
.ep-nav-links a.active { border-bottom: 1px solid var(--text-dark); padding-bottom: 2px; }

/* Hamburger — 3 lines of different widths, morphs into X */
.ep-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 36px; height: 36px;
  cursor: pointer; position: relative; z-index: 201;
  background: none; border: none; padding: 0;
}
.ep-hamburger span {
  display: block; height: 1px; background: var(--text-dark);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), opacity .3s ease, width .4s ease;
  transform-origin: center;
}
.ep-hamburger span:nth-child(1) { width: 28px; }
.ep-hamburger span:nth-child(2) { width: 20px; }
.ep-hamburger span:nth-child(3) { width: 24px; }
.ep-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.ep-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ep-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 28px; }

/* ===== FULLSCREEN MOBILE MENU (Redbean-style clip-path wipe) ===== */
.ep-mobile-menu {
  position: fixed; inset: 0; z-index: 199;
  background: var(--off-white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px 40px 56px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s cubic-bezier(.77,0,.18,1);
}
.ep-mobile-menu.is-open { clip-path: inset(0 0 0% 0); }
.ep-mobile-menu-links { list-style: none; margin-bottom: 40px; }
.ep-mobile-menu-links li { border-bottom: 1px solid rgba(26,26,22,0.1); overflow: hidden; }
.ep-mobile-menu-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(32px, 10vw, 52px); font-weight: 300;
  color: var(--text-dark); letter-spacing: -0.01em;
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.25,.46,.45,.94), color .25s ease;
}
.ep-mobile-menu-links a span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); font-weight: 400; }
.ep-mobile-menu.is-open .ep-mobile-menu-links a { transform: translateY(0); }
.ep-mobile-menu-links li:nth-child(1) a { transition-delay: .12s; }
.ep-mobile-menu-links li:nth-child(2) a { transition-delay: .18s; }
.ep-mobile-menu-links li:nth-child(3) a { transition-delay: .24s; }
.ep-mobile-menu-links li:nth-child(4) a { transition-delay: .30s; }
.ep-mobile-menu-footer {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light); display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transition: opacity .4s ease .45s;
}
.ep-mobile-menu.is-open .ep-mobile-menu-footer { opacity: 1; }

/* ===== FOOTER ===== */
.ep-footer { background: var(--footer-bg); padding: 64px 48px 32px; border-top: 1px solid var(--border); }
.ep-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ep-footer-logo img { height: 28px; margin-bottom: 16px; }
.ep-footer-logo p { font-size: 13px; color: var(--text-light); line-height: 1.7; max-width: 240px; }
.ep-footer h4 { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--text-dark); margin-bottom: 16px; }
.ep-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ep-footer ul a { font-size: 13px; color: var(--text-light); transition: color 0.2s; }
.ep-footer ul a:hover { color: var(--text-dark); }
.ep-footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ep-footer-bottom p { font-size: 11px; color: var(--text-light); letter-spacing: 0.04em; }
.ep-footer-socials { display: flex; gap: 20px; }
.ep-footer-socials a { font-size: 11px; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.ep-footer-socials a:hover { color: var(--text-dark); }

/* ===== COMMON ===== */
.ep-section { padding: 96px 48px; }
.ep-section-sm { padding: 64px 48px; }
.ep-container { max-width: 1200px; margin: 0 auto; }
.ep-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.ep-h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 300; color: var(--text-dark); line-height: 1.2; letter-spacing: -0.01em; }
.ep-h2 em { font-style: italic; }
.ep-body { font-size: 15px; color: var(--text-mid); line-height: 1.8; }
.ep-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--text-dark); color: var(--text-dark); background: transparent; cursor: pointer; transition: all 0.25s; }
.ep-btn:hover { background: var(--text-dark); color: var(--white); }
.ep-btn-fill { background: var(--text-dark); color: var(--white); }
.ep-btn-fill:hover { background: var(--accent); border-color: var(--accent); }
.ep-divider { width: 40px; height: 1px; background: var(--accent); margin: 20px 0; }

/* ===== ELEGANT FAB ===== */
.ep-fab-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.ep-fab-btn {
  width: 52px; height: 52px;
  background: var(--text-dark); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  position: relative; flex-shrink: 0;
}
.ep-fab-btn:hover { transform: scale(1.06); background: var(--accent); }
.ep-fab-btn svg { width: 22px; height: 22px; stroke: white; position: absolute; transition: opacity 0.25s, transform 0.25s; }
.ep-fab-icon-close { opacity: 0; transform: rotate(-90deg); }
.ep-fab-wrap.open .ep-fab-icon-chat { opacity: 0; transform: rotate(90deg); }
.ep-fab-wrap.open .ep-fab-icon-close { opacity: 1; transform: rotate(0deg); }
.ep-fab-panel {
  background: var(--white); border: 1px solid var(--border);
  padding: 24px; width: 296px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  opacity: 0; transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; position: relative;
}
.ep-fab-wrap.open .ep-fab-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ep-fab-greeting { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--text-light); margin-bottom: 16px; }
.ep-fab-options { display: flex; flex-direction: column; }
.ep-fab-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--mid-gray);
  text-decoration: none; color: var(--text-dark); transition: color 0.2s;
}
.ep-fab-opt:last-child { border-bottom: none; }
.ep-fab-opt:hover { color: var(--accent); }
.ep-fab-opt-icon {
  width: 36px; height: 36px; border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.ep-fab-opt:hover .ep-fab-opt-icon { border-color: var(--accent); background: rgba(140,115,85,0.06); }
.ep-fab-opt-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ep-fab-opt-text { flex: 1; }
.ep-fab-opt-text strong { display: block; font-size: 13px; font-weight: 500; }
.ep-fab-opt-text small { font-size: 11px; color: var(--text-light); }
.ep-fab-arrow { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.3; transition: opacity 0.2s, transform 0.2s; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ep-fab-opt:hover .ep-fab-arrow { opacity: 0.8; transform: translateX(3px); }
.ep-fab-panel-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--text-light); transition: color 0.2s; line-height: 1;
}
.ep-fab-panel-close:hover { color: var(--text-dark); }
.ep-fab-panel-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ep-nav { padding: 0 20px; }
  .ep-nav-links { display: none; }
  .ep-hamburger { display: flex; }
  .ep-section { padding: 64px 20px; }
  .ep-section-sm { padding: 48px 20px; }
  .ep-footer { padding: 48px 20px 24px; }
  .ep-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ep-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .ep-footer-grid { grid-template-columns: 1fr; }
  .ep-fab-panel { width: calc(100vw - 56px); }
  .ep-fab-wrap { right: 16px; bottom: 20px; }
}
