/* ===== SHARED STYLES - Edgeline Planners ===== */
:root {
  --ivory:       #FAFAF6;
  --cream:       #F3F0E8;
  --warm-white:  #FEFCF9;
  --white:       #ffffff;
  --off-white:   #F3F0E8;
  --footer-bg:   #1A1814;
  --light-gray:  #EAE7DE;
  --mid-gray:    #DDD8CE;
  --border:      #D5D0C5;
  --border-light:#E4E0D6;
  --text-dark:   #1A1814;
  --text-mid:    #52483E;
  --text-light:  #968D82;
  --accent:      #8B7355;
  --accent-light:#B09A7A;
  --nav-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 72px; margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--ivory);
  overflow-x: hidden; margin: 0; padding: 0; max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
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: 1002;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  background: rgba(250,250,246,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.4s;
}
.ep-nav.scrolled { background: rgba(250,250,246,0.99); }
.ep-logo { display: flex; align-items: center; gap: 10px; }
.ep-logo img { height: 30px; width: auto; }
.ep-nav-links { display: flex; align-items: center; gap: 48px; list-style: none; }
.ep-nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 400; color: var(--text-mid); transition: color 0.25s;
}
.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 */
.ep-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 36px; height: 36px;
  cursor: pointer; position: relative; z-index: 1001;
  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 { background: var(--text-dark); }
.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 ===== */
.ep-mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px 40px 100px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.ep-mobile-menu.is-open { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.ep-mobile-menu-links { list-style: none; margin-bottom: 40px; }
.ep-mobile-menu-links li { border-bottom: 1px solid rgba(26,24,20,0.1); overflow: hidden; }
.ep-mobile-menu-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 10vw, 56px); font-weight: 300; font-style: italic;
  color: var(--text-dark); letter-spacing: -0.01em;
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.25,.46,.45,.94), color .25s ease;
  text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}
.ep-mobile-menu-links a span { font-family: 'Jost', sans-serif; font-style: normal; font-size: 10px; letter-spacing: 0.18em; 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-family: 'Jost', sans-serif;
  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: 80px 56px 40px; }
.ep-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.ep-footer-logo img { height: 28px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.ep-footer-logo p { font-size: 12px; color: rgba(255,255,255,0.38); line-height: 1.8; max-width: 240px; font-weight: 300; }
.ep-footer h4 { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.ep-footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ep-footer ul a, .ep-footer ul li, .ep-footer ul span { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 300; }
.ep-footer ul a:hover { color: rgba(255,255,255,0.9); }
.ep-footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.ep-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ep-footer-bottom p { font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }
.ep-footer-socials { display: flex; gap: 20px; align-items: center; }
.ep-footer-socials a { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.ep-footer-socials a:hover { color: rgba(255,255,255,0.8); }
.ep-footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== COMMON ===== */
.ep-section { padding: 112px 56px; }
.ep-section-sm { padding: 72px 56px; }
.ep-container { max-width: 1200px; margin: 0 auto; }
.ep-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--accent); margin-bottom: 16px;
}
.ep-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3vw, 50px); font-weight: 300;
  color: var(--text-dark); line-height: 1.15; letter-spacing: -0.01em;
}
.ep-h2 em { font-style: italic; }
.ep-link-underline {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--text-mid); border-bottom: 1px solid var(--border);
  padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.ep-link-underline:hover { color: var(--text-dark); border-color: var(--text-dark); }
.ep-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px; font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--text-dark); color: var(--text-dark);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.ep-btn:hover { background: var(--text-dark); color: var(--ivory); }
.ep-btn-fill { background: var(--text-dark); color: var(--ivory); }
.ep-btn-fill:hover { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.ep-btn-white { border-color: rgba(255,255,255,0.6); color: white; }
.ep-btn-white:hover { background: white; color: var(--text-dark); border-color: white; }

/* ===== FAB ===== */
.ep-fab-wrap {
  position: fixed; right: 32px; bottom: 32px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.ep-fab-wrap > * { pointer-events: auto; }
.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.18);
  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(--warm-white); border: 1px solid var(--border-light);
  padding: 28px; width: 296px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.1);
  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-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--text-light); margin-bottom: 20px; }
.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(--border-light);
  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(139,115,85,0.06); }
.ep-fab-opt-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.ep-fab-opt-text { flex: 1; }
.ep-fab-opt-text strong { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0.01em; }
.ep-fab-opt-text small { font-size: 10px; color: var(--text-light); letter-spacing: 0.03em; }
.ep-fab-arrow { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.25; transition: opacity 0.2s, transform 0.2s; stroke: currentColor; fill: none; stroke-width: 1.3; }
.ep-fab-opt:hover .ep-fab-arrow { opacity: 0.7; 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: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ep-nav { padding: 0 20px; }
  .ep-nav-links { display: none; }
  .ep-hamburger { display: flex; }
  .ep-section { padding: 72px 24px; }
  .ep-section-sm { padding: 48px 24px; }
  .ep-footer { padding: 56px 24px 32px; }
  .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; }
}
.ep-trust-logos .ep-trust-award { height: 96px; }
@media (max-width: 768px) {
  .ep-trust-logos .ep-trust-award { height: 80px; }
  .ep-hamburger.is-open span { background: var(--text-dark) !important; }
}
