/* ============================================================
   ISLAND RANK — islandrank.ca
   Local SEO for Vancouver Island businesses
   Michael Perks · Duncan BC
============================================================ */

/* ── Self-hosted fonts ──────────────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:         #0C0F18;
  --bg-2:       #111827;
  --bg-card:    #1A2035;
  --accent:     #F59E0B;
  --accent-dim: rgba(245,158,11,0.10);
  --accent-glo: rgba(245,158,11,0.18);
  --accent-bdr: rgba(245,158,11,0.28);
  --success:    #10B981;
  --teal:       #00D4C8;
  --danger:     #EF4444;
  --text-1:     #F9FAFB;
  --text-2:     #9CA3AF;
  --text-3:     #6B7280;
  --bdr:        rgba(255,255,255,0.07);
  --bdr-2:      rgba(255,255,255,0.12);
  --font-d:     'Geist', sans-serif;
  --font-b:     'Geist', sans-serif;
  --font-m:     'Geist Mono', monospace;
  --r:          12px;
  --r-lg:       20px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-b); cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap    { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section  { padding: 88px 0; }
.s-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.s-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -1px; color: var(--text-1); margin-bottom: 16px;
}
.s-sub {
  font-size: 17px; color: var(--text-2);
  line-height: 1.7; max-width: 540px;
}
.s-head { margin-bottom: 52px; }
.s-head.center { text-align: center; }
.s-head.center .s-sub { margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-b); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 10px; border: none;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,158,11,0.30); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-1);
  font-family: var(--font-b); font-weight: 500; font-size: 15px;
  padding: 13px 28px; border-radius: 10px; border: 1px solid var(--bdr-2);
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--accent-bdr); }

/* ── NAVBAR ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 20px 0;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(12,15,24,0.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 13px 0; border-color: var(--bdr);
}
.nav-wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--bg); flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 13px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links > a:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.nav-links > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-dm {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent) !important; color: var(--bg) !important;
  font-weight: 700 !important; font-size: 13.5px !important;
  padding: 8px 16px !important; border-radius: 8px !important;
  margin-left: 6px;
  transition: opacity .2s, transform .15s !important;
}
.nav-dm:hover { opacity: .88 !important; transform: translateY(-1px); }
.nav-dm svg { width: 12px; height: 12px; }

.nav-ham {
  display: none; padding: 6px; color: var(--text-1);
  border-radius: 8px; transition: background .2s;
}
.nav-ham:hover { background: rgba(255,255,255,0.07); }
.nav-ham svg { display: block; width: 22px; height: 22px; }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0;
  background: rgba(12,15,24,0.98); backdrop-filter: blur(20px);
  z-index: 800; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer > a {
  font-family: var(--font-d); font-size: 24px; font-weight: 600;
  color: var(--text-2); padding: 12px 32px; border-radius: 12px;
  transition: color .2s, background .2s; text-align: center; width: 100%; max-width: 320px;
}
.nav-drawer > a:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.drawer-dm {
  margin-top: 16px; background: var(--accent) !important;
  color: var(--bg) !important; font-family: var(--font-d);
  font-size: 18px !important; font-weight: 700 !important;
  padding: 14px 40px !important; border-radius: 12px !important;
}
.drawer-close {
  position: absolute; top: 24px; right: 28px;
  padding: 8px; color: var(--text-2); border-radius: 8px;
  font-size: 22px; transition: color .2s; background: none; border: none; cursor: pointer;
}
.drawer-close:hover { color: var(--text-1); }

/* ── HERO ───────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 130px 28px 80px; text-align: center;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(245,158,11,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-bdr);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  margin-bottom: 28px; position: relative; z-index: 1;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); position: relative; flex-shrink: 0;
}
.pulse::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(16,185,129,0.35); animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hero-h1 {
  font-family: var(--font-d); font-size: clamp(40px, 7vw, 78px);
  font-weight: 800; line-height: 1.04; letter-spacing: -2.5px;
  color: var(--text-1); margin-bottom: 22px; position: relative; z-index: 1;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-p {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-2);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
  position: relative; z-index: 1;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1; margin-bottom: 64px;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: center; }
.about-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.about-avatar {
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--accent-bdr);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 48px; font-weight: 800;
  color: var(--accent); letter-spacing: -2px;
  box-shadow: 0 0 40px rgba(245,158,11,0.12);
}
.about-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.about-location svg { width: 14px; height: 14px; color: var(--accent); }
.about-content blockquote {
  font-family: var(--font-d); font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600; line-height: 1.4; color: var(--text-1);
  margin-bottom: 20px; letter-spacing: -0.3px;
}
.about-content blockquote em { font-style: normal; color: var(--accent); }
.about-content p {
  font-size: 15.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.about-tag {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-dim); border: 1px solid var(--accent-bdr);
  border-radius: 100px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--accent);
}

/* ── FEATURE CARDS ──────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat-card {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s, transform .2s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg,transparent,var(--accent-bdr),transparent);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover { border-color: var(--accent-bdr); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 44px; height: 44px; background: var(--accent-dim);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 18px;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-title { font-family: var(--font-d); font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.feat-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* ── WHY LIST ───────────────────────────────────────────── */
.why-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-check {
  width: 22px; height: 22px; background: var(--accent-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px; color: var(--accent);
}
.why-check svg { width: 10px; height: 10px; }
.why-item-h { font-family: var(--font-d); font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.why-item-p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* ── CROSS-PROMO (Design Menu) ──────────────────────────── */
.promo-card {
  background: var(--bg-card); border: 1px solid rgba(0,212,200,0.25);
  border-radius: var(--r-lg); padding: 40px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  box-shadow: 0 0 40px rgba(0,212,200,0.06);
}
.promo-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.promo-title {
  font-family: var(--font-d); font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; color: var(--text-1); margin-bottom: 10px; letter-spacing: -0.5px;
}
.promo-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.promo-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--teal); color: var(--bg);
  font-family: var(--font-b); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 10px;
  transition: opacity .2s, transform .15s, box-shadow .2s; white-space: nowrap;
}
.promo-btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,212,200,0.25); }
.promo-btn svg { width: 14px; height: 14px; }

/* ── ARTICLES ───────────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.article-card:hover { border-color: var(--accent-bdr); transform: translateY(-3px); }
.article-tag {
  display: inline-flex; align-items: center;
  background: var(--accent-dim); border: 1px solid var(--accent-bdr);
  border-radius: 100px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  margin-bottom: 14px; width: fit-content;
}
.article-title {
  font-family: var(--font-d); font-size: 16px; font-weight: 600;
  color: var(--text-1); line-height: 1.35; margin-bottom: 10px;
}
.article-excerpt { font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex-grow: 1; }
.article-coming {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  margin-top: 16px;
}
.article-coming svg { width: 12px; height: 12px; }
.article-read {
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-top: 16px; letter-spacing: 0.1px;
}

/* ── PAGE HERO (articles page) ──────────────────────────── */
.page-hero {
  padding: 150px 28px 72px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--bdr);
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(245,158,11,0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, black 30%, transparent 80%);
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-section { background: var(--bg-2); padding: 72px 0; border-top: 1px solid var(--bdr); }
.cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.cta-inner .s-title { margin-bottom: 12px; }
.cta-inner .s-sub { margin: 0 auto 32px; text-align: center; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--bdr); padding: 40px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 16px; font-weight: 700;
}
.footer-logo .f-icon {
  width: 26px; height: 26px; background: var(--accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--bg);
}
.footer-logo .f-icon svg { width: 14px; height: 14px; }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-copy { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--text-1); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid  { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar-wrap { flex-direction: row; }
  .feat-grid   { grid-template-columns: repeat(2,1fr); }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .promo-card  { grid-template-columns: 1fr; text-align: center; }
  .promo-btn   { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-ham     { display: block; }
  section      { padding: 64px 0; }
  .hero-btns   { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; max-width: 300px; }
  .feat-grid   { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { justify-content: center; }
  .cta-btns    { flex-direction: column; align-items: center; }
  .promo-card  { padding: 28px 24px; }
  .page-hero   { padding: 120px 28px 56px; }
}
