/* ═══════════════════════════════════════════
   IMA PLANNER — GLOBAL STYLES
   Loaded on every page via header.php
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2FC48D;
  --green-light:  #5DD4A8;
  --green-dark:   #1A8F65;
  --green-deeper: #0A5C40;
  --green-pale:   #E6F9F2;
  --black:        #0A0A0A;
  --charcoal:     #1C1C1C;
  --slate:        #3D3D3D;
  --mid:          #888888;
  --silver:       #C8C8C8;
  --smoke:        #F0F0F0;
  --paper:        #FAFAF7;
  --white:        #FFFFFF;
  --font-main:   'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:   'Space Mono', 'SF Mono', Menlo, monospace;
  --font-serif:  'Crimson Pro', Georgia, 'Times New Roman', serif;
  --header-h:    96px; /* ann-bar(36) + header(60) */
}

html { scroll-behavior: smooth; margin-top: 0 !important; }
body {
  font-family: var(--font-main);
  background: var(--paper);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Page content offset so it clears fixed header */
body.has-ann-bar .page-content-wrap  { padding-top: var(--header-h); }
body.no-ann-bar  .page-content-wrap  { padding-top: 60px; }

/* ── ANNOUNCEMENT BAR ── */
.ima-ann-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  z-index: 200;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}
.ima-ann-bar.hidden { transform: translateY(-100%); }
.ima-ann-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.ima-ann-bar a:hover { opacity: 0.8; }
.ima-ann-bar code { font-family: var(--font-mono); background: rgba(0,0,0,0.15); padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.ima-ann-bar-close { position: absolute; right: 16px; background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; transition: color 0.2s; }
.ima-ann-bar-close:hover { color: var(--white); }

/* ── HEADER ── */
.ima-header {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 60px;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,10,10,0.06);
  transition: all 0.3s ease;
}
.ima-header.scrolled { height: 56px; background: rgba(250,250,247,0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.ima-header.bar-hidden { top: 0; }

/* Logo */
.ima-nav-logo { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--green-dark); text-transform: uppercase; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ima-nav-logo::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 1px; flex-shrink: 0; }

/* Desktop nav */
.ima-header nav { display: flex; gap: 32px; }
.ima-header nav a { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); text-decoration: none; transition: color 0.2s; }
.ima-header nav a:hover,
.ima-header nav a.active { color: var(--green-dark); }

/* CTA */
.ima-nav-cta { background: var(--black); color: var(--white) !important; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 20px; border-radius: 6px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.ima-nav-cta:hover { background: var(--green) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47,196,141,0.3); }

/* Mobile hamburger */
.ima-mob-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.ima-mob-btn span { display: block; width: 22px; height: 2px; background: var(--green-dark); margin: 4px 0; transition: all 0.3s ease; }
.ima-mob-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.ima-mob-btn.active span:nth-child(2) { opacity: 0; }
.ima-mob-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

/* Mobile dropdown */
.ima-mob-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); padding: 20px 24px; border-bottom: 1px solid rgba(10,10,10,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.08); gap: 4px; }
.ima-mob-links.open { display: flex; }
.ima-mob-links a { font-size: 13px; color: var(--slate); font-weight: 500; padding: 10px 0; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(10,10,10,0.04); transition: color 0.2s; }
.ima-mob-links a:last-child { border-bottom: none; }
.ima-mob-links a:hover,
.ima-mob-links a.active { color: var(--green-dark); }
.ima-mob-links .ima-mob-cta { margin-top: 12px; background: var(--black); color: var(--white) !important; text-align: center; padding: 12px !important; border-radius: 6px; border-bottom: none !important; }
.ima-mob-links .ima-mob-cta:hover { background: var(--green) !important; }

@media (max-width: 968px) {
  .ima-header { padding: 0 20px; }
  .ima-header nav { display: none; }
  .ima-nav-cta { display: none; }
  .ima-mob-btn { display: block; }
}

/* ── FOOTER ── */
.ima-footer { border-top: 1px solid rgba(10,10,10,0.06); width: 100%; position: relative; z-index: 1; background: var(--white); }
.ima-footer-inner { max-width: 1400px; margin: 0 auto; padding: 50px 64px 30px; }
.ima-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }

/* Brand col */
.ima-footer .brand h3 { font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ima-footer .brand h3::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 1px; }
.ima-footer .brand .tagline { color: var(--green-dark); font-weight: 600; font-size: 13px; margin-bottom: 12px; letter-spacing: -0.01em; }
.ima-footer .brand p { color: var(--slate); font-size: 12px; line-height: 1.7; max-width: 320px; }

/* Link cols */
.ima-footer .col h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 16px; }
.ima-footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ima-footer .col ul li a { font-size: 12px; color: var(--slate); text-decoration: none; transition: color 0.2s ease; }
.ima-footer .col ul li a:hover,
.ima-footer .col ul li a.active { color: var(--green-dark); }

/* Social */
.ima-footer .social-icons { display: flex; gap: 8px; margin-top: 8px; }
.ima-footer .social-icons a { width: 32px; height: 32px; border-radius: 6px; background: rgba(47,196,141,0.08); border: 1px solid rgba(47,196,141,0.15); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.2s ease; }
.ima-footer .social-icons a:hover { background: var(--green); border-color: var(--green); }
.ima-footer .social-icons a svg { width: 14px; height: 14px; fill: var(--green-dark); transition: fill 0.2s ease; }
.ima-footer .social-icons a:hover svg { fill: var(--white); }

/* Bottom bar */
.ima-footer .bottom { padding-top: 24px; border-top: 1px solid rgba(10,10,10,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--mid); letter-spacing: 0.05em; }
.ima-footer .bottom .brand-mark { font-family: var(--font-mono); color: var(--green-dark); font-weight: 700; letter-spacing: 0.1em; font-size: 10px; }

@media (max-width: 768px) { .ima-footer-inner { padding: 40px 20px; } .ima-footer .grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .ima-footer .grid { grid-template-columns: 1fr; } .ima-footer .bottom { flex-direction: column; gap: 10px; text-align: center; } }
