/*
  iMobile Shared Styles — shared.css
  Include this in any page instead of copy-pasting nav CSS.
  Pages keep their own page-specific styles.
*/

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --g: #3a7d1e;
  --g2: #2d6118;
  --gl: #4a9a28;
  --gbg: #f0fdf4;
  --gbdr: #bbf7d0;
  --dark: #080d12;
  --dark2: #0d1520;
  --dark3: #152030;
  --text: #0f1923;
  --sub: #374151;
  --muted: #6b7280;
  --light: #f8fafc;
  --bdr: #e2e8f0;
  --white: #fff;
  --font: 'Plus Jakarta Sans', sans-serif;
  --max: 1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Topbar ── */
.topbar {
  background: var(--dark);
  padding: .55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.topbar a {
  color: #64748b;
  font-size: .73rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .15s;
  letter-spacing: .01em;
}
.topbar a:hover { color: #cbd5e1; }
.topbar-sep { color: #1e293b; font-size: .6rem; }

/* ── Nav ── */
#imobile-nav {
  background: rgba(8,13,18,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-logo-fallback {
  height: 36px; width: 36px;
  background: var(--g);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name { font-size: .98rem; font-weight: 800; color: #fff; letter-spacing: -.025em; line-height: 1; }
.nav-brand-loc { font-size: .6rem; color: #475569; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 1px; }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; }
.nav-dir {
  background: rgba(255,255,255,.07);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,.12);
}
.nav-dir:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.nav-cta {
  background: var(--g);
  color: #fff !important;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  margin-left: .35rem;
}
.nav-cta:hover { background: var(--g2) !important; }

/* Mobile */
.nav-mob { display: none; align-items: center; gap: .4rem; }
.nav-mob-dir {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.08);
  color: #cbd5e1;
  text-decoration: none;
  padding: .48rem .85rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.nav-mob-call {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--g);
  color: #fff;
  text-decoration: none;
  padding: .48rem .85rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Hamburger button ── */
.nav-ham {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background .15s, color .15s;
  line-height: 1;
}
.nav-ham:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Mobile slide-down menu ── */
.nav-menu { display: none; overflow: hidden; max-height: 0; border-top: 1px solid transparent; transition: max-height .25s ease, border-color .15s ease; }
.nav-menu.open { max-height: 450px; border-top-color: rgba(255,255,255,.07); }
.nav-menu-inner { max-width: var(--max); margin: 0 auto; padding: .5rem 1.5rem 1rem; }
.nav-menu-link { display: flex; align-items: center; color: #94a3b8; font-size: .9rem; font-weight: 600; text-decoration: none; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .15s; }
.nav-menu-link:last-child { border-bottom: none; }
.nav-menu-link:hover, .nav-menu-link.active { color: #fff; }
.nav-menu-call { color: #4ade80 !important; }

/* ── Responsive ── */
@media(max-width: 640px) {
  .nav-links { display: none; }
  .nav-mob { display: flex; }
  .nav-ham { display: flex; }
  .nav-menu { display: block; }
  .topbar { display: none; }
}

/* ── Footer ── */
footer { background: var(--dark); padding: 3.5rem 1.5rem 1.75rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand img { height: 36px; width: auto; margin-bottom: .75rem; object-fit: contain; }
.footer-brand-fb { height: 36px; width: 36px; background: var(--g); border-radius: 8px; display: none; align-items: center; justify-content: center; font-size: .95rem; font-weight: 900; color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .78rem; color: #334155; line-height: 1.65; max-width: 250px; margin-top: .4rem; }
.footer-social { display: flex; gap: .4rem; margin-top: 1rem; }
.footer-social a { width: 32px; height: 32px; background: #0d1520; border: 1px solid #1e293b; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #475569; font-size: .76rem; text-decoration: none; transition: all .15s; }
.footer-social a:hover { background: var(--g); border-color: var(--g); color: #fff; }
.footer-col h4 { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #334155; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .78rem; color: #475569; text-decoration: none; margin-bottom: .45rem; transition: color .15s; }
.footer-col a:hover { color: #94a3b8; }
.footer-bottom { padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .72rem; color: #1e293b; }
@media(max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width: 500px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }
