/* =====================================================
   Alberta Solar Advisors — Shared Stylesheet v2
   Tokens, reset, nav, footer — matches homepage exactly
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --blue:       #3455A5;
  --blue-dark:  #2a4490;
  --nav-text:   #313E5C;
  --dark:       #01214a;
  --text:       #1f2937;
  --muted:      #6b7280;
  --border:     #E5E6EA;
  --white:      #ffffff;
  --hero-bg:    #EEF2FF;
  --light-bg:   #f8f9fb;
  --teal:       #16bdca;
  --font-body:  'Inter', sans-serif;
  --font-head:  'Montserrat', sans-serif;
  --nav-h:      72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Nav ── */
.gnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  height: var(--nav-h);
  box-shadow: 0 1px 0 var(--border);
}
.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.gnav-logo img { height: 44px; width: auto; }
.gnav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.gnav-item { position: relative; }
.gnav-link, .gnav-btn {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--nav-text);
  padding: 8px 10px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
.gnav-link:hover, .gnav-btn:hover { color: var(--blue); text-decoration: none; }
.gnav-link.active { color: var(--blue); }
.gnav-btn svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.gnav-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.gnav-item.open .gnav-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.gnav-drop a {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 9px 14px;
  border-radius: 6px;
  transition: background .12s;
}
.gnav-drop a:hover { background: #f3f4f6; text-decoration: none; color: var(--blue); }
.gnav-cta {
  margin-left: 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 50px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.gnav-cta:hover { background: #fff; color: var(--blue); }
.gnav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}
.gnav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.gnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gnav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gnav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 16px 24px 32px;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 999;
}
.gnav-mobile.open { transform: translateX(0); }
.gnav-mobile ul { display: flex; flex-direction: column; gap: 0; }
.gnav-mobile a {
  display: block;
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 600;
  color: var(--nav-text);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.gnav-mobile a:hover { color: var(--blue); text-decoration: none; }
.gnav-mobile .mob-divider { height: 1px; background: var(--border); margin: 4px 0; }
.gnav-mobile .mob-cta { margin-top: 20px; }
.gnav-mobile .mob-cta button {
  width: 100%;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 50px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gnav-mobile .mob-cta button:hover { background: #fff; color: var(--blue); }
@media (max-width: 860px) {
  .gnav-list, .gnav-cta { display: none; }
  .gnav-burger { display: flex; }
}
@media (max-width: 860px) {
  .gnav-inner { padding: 0 20px; }
}

/* ── Footer ── */
.gfooter {
  background: #fff;
  padding: 60px 40px 0;
}
.gf-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.gf-brand { display: flex; flex-direction: column; gap: 14px; }
.gf-brand img { height: 44px; width: auto; }
.gf-nap {
  font-style: normal;
  font-family: var(--font-head);
  font-size: .85rem;
  color: rgba(1,33,74,.65);
  line-height: 1.9;
}
.gf-nap a { color: rgba(1,33,74,.65); transition: color .15s; }
.gf-nap a:hover { color: var(--blue); text-decoration: none; }
.gf-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.gf-social a {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(1,33,74,.5);
  transition: color .15s;
}
.gf-social a:hover { color: var(--blue); text-decoration: none; }
.gf-col h3 {
  font-family: var(--font-head);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(1,33,74,.4);
  margin-bottom: 14px;
  font-weight: 700;
}
.gf-col ul { display: flex; flex-direction: column; gap: 8px; }
.gf-col a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: rgba(1,33,74,.6);
  transition: color .15s;
}
.gf-col a:hover { color: var(--blue); text-decoration: none; }
.gf-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.gf-bottom p {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: #4A4A4A;
  margin: 0;
}
@media (max-width: 900px) {
  .gf-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gfooter { padding: 48px 24px 0; }
}
@media (max-width: 560px) {
  .gf-top { grid-template-columns: 1fr; }
}
