/* ══════════════════════════════════════
   Purewire — Main Stylesheet
   style.css — shared across all pages
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f1f3d;
  --blue:   #1a3f7a;
  --mid:    #2563b8;
  --accent: #3b82f6;
  --sky:    #93c5fd;
  --silver: #cbd5e1;
  --fog:    #f1f5f9;
  --white:  #ffffff;
  --text:   #1e293b;
  --muted:  #64748b;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(15,31,61,0.10);
}

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

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  background: rgba(15,31,61,0.97); backdrop-filter: blur(8px);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: 64px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo img { height: 30px; display: block; }
.nav-logo {
      font-family: 'DM Serif Display', serif;
      color: var(--white);
      font-size: 1.25rem;
      text-decoration: none;
      letter-spacing: -0.02em;
    }
    .nav-logo span { color: #7eb3ff; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--silver); text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; transition: color .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { background: var(--accent); color: var(--white); padding: 8px 20px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--mid); }

/* ══ HAMBURGER ══ */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ MOBILE DRAWER ══ */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; width: 100%; z-index: 190;
  background: rgba(10,18,35,0.98); backdrop-filter: blur(10px);
  flex-direction: column; padding: 24px 6% 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--silver); text-decoration: none; font-size: 1.05rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color .2s; }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-cta { margin-top: 20px !important; background: var(--accent); color: var(--white) !important; padding: 14px !important; border-radius: var(--radius); text-align: center; font-weight: 600 !important; font-size: 1rem !important; border-bottom: none !important; }

/* ══ HERO ══ */
#hero {
  min-height: 80vh;
  background: url('hero.png') center center / cover no-repeat;
  display: flex; align-items: center;
  padding: 120px 5% 80px; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,20,50,0.90) 0%, rgba(15,31,61,0.72) 55%, rgba(10,20,50,0.45) 100%);
}
.hero-inner {
  max-width: 800px; margin: 0 auto; width: 100%;
  text-align: center;
  position: relative; z-index: 1;
}
.hero-title { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--white); line-height: 1.12; margin-bottom: 24px; }
.hero-title em { color: var(--sky); font-style: italic; }
.hero-sub { color: var(--silver); font-size: 1.1rem; line-height: 1.7; font-weight: 300; margin: 0 auto 40px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ══ BUTTONS ══ */
.btn-primary { background: var(--accent); color: var(--white); padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: #2563b0; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: var(--white); padding: 14px 32px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: border-color .2s, background .2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--sky); background: rgba(147,197,253,0.08); }

/* ══ SECTION DEFAULTS ══ */
section { padding: 100px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); line-height: 1.18; margin-bottom: 20px; }
.section-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 580px; margin-bottom: 60px; }

/* ══ WHAT I DO ══ */
#what { background: var(--fog); }
.what-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 60px; }
.what-card { background: var(--white); border-radius: 10px; padding: 36px 32px; border: 1px solid #e2e8f0; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.what-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,31,61,0.13); }
.what-num { font-family: var(--serif); font-size: 2.4rem; color: var(--sky); margin-bottom: 16px; line-height: 1; }
.what-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.what-card p { color: var(--muted); font-size: 0.925rem; line-height: 1.65; }

/* ══ SERVICES ══ */
#services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-item { padding: 36px 32px; border-radius: 10px; border: 1px solid #e2e8f0; display: flex; gap: 20px; align-items: flex-start; transition: border-color .2s, box-shadow .2s; }
.service-item:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(59,130,246,0.1); }
.service-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-icon svg { width: 22px; height: 22px; color: var(--accent); stroke-width: 1.75; }
.service-item h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.service-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ══ WHO I HELP ══ */
#who { background: var(--navy); }
#who .section-title { color: var(--white); }
#who .section-sub { color: var(--silver); }
#who .section-label { color: var(--sky); }
.who-tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.who-tag {
  display: inline-block; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  color: var(--white); font-weight: 500; font-size: 0.95rem;
  padding: 11px 24px; border-radius: 30px; transition: border-color .2s, background .2s;
}
.who-tag:hover { border-color: rgba(59,130,246,0.6); background: rgba(59,130,246,0.1); }
.who-bottom { margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.1); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.who-tagline { font-family: var(--serif); font-size: 1.8rem; color: var(--white); line-height: 1.3; }
.who-tagline em { color: var(--sky); font-style: italic; }
.who-body { color: var(--silver); font-size: 0.95rem; line-height: 1.7; }

/* ══ HOW IT WORKS ══ */
#ownership { background: var(--fog); }
.own-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 60px; }
.own-card { background: var(--white); border-radius: 10px; padding: 40px 36px; border: 2px solid #e2e8f0; position: relative; overflow: hidden; }
.own-card.featured { border-color: var(--accent); }
.own-card.featured::before { content: 'POPULAR'; position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 20px; }
.own-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.own-card .own-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.own-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.own-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.9rem; line-height: 1.5; }
.own-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ══ CONTACT ══ */
#contact { background: var(--white); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-left h2 { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.contact-left p { color: var(--muted); font-size: 0.97rem; line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 0.95rem; margin-bottom: 14px; }
.contact-detail-icon { width: 40px; height: 40px; background: var(--fog); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-form { background: var(--fog); border-radius: 12px; padding: 44px 40px; border: 1px solid #e2e8f0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; background: var(--white); border: 1.5px solid #cbd5e1; border-radius: var(--radius); padding: 12px 16px; font-family: var(--sans); font-size: 0.95rem; color: var(--text); transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; background: var(--accent); color: var(--white); border: none; border-radius: var(--radius); padding: 15px; font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; }
.btn-submit:hover { background: var(--mid); transform: translateY(-1px); }
.form-note { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* ══ BLOG HERO ══ */
.blog-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%); padding: 130px 5% 80px; }
.blog-hero-inner { max-width: 760px; margin: 0 auto; }
.blog-badge { display: inline-block; background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: var(--sky); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
.blog-hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.blog-hero p { color: var(--silver); font-size: 1.05rem; line-height: 1.7; }

/* ══ BLOG BODY ══ */
.blog-body { max-width: 1100px; margin: 0 auto; padding: 72px 5%; display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.articles-list { display: flex; flex-direction: column; gap: 36px; }
.article-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,31,61,0.13); }
.article-thumb { height: 200px; background: linear-gradient(135deg, var(--navy), var(--mid)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.article-body { padding: 30px 32px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article-tag { background: rgba(59,130,246,0.1); color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.article-date { color: var(--muted); font-size: 0.82rem; }
.article-card h2 { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); line-height: 1.25; margin-bottom: 12px; }
.article-card h2 a { text-decoration: none; color: inherit; transition: color .2s; }
.article-card h2 a:hover { color: var(--accent); }
.article-excerpt { color: var(--muted); font-size: 0.93rem; line-height: 1.65; flex: 1; margin-bottom: 24px; }
.read-more { color: var(--accent); font-size: 0.9rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.read-more:hover { gap: 10px; }
.article-card.featured { border-color: var(--accent); }
.article-card.featured .article-thumb { background: linear-gradient(135deg, #1a3f7a, #2563b8, #3b82f6); }

/* ══ SIDEBAR ══ */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget { background: var(--fog); border-radius: 10px; padding: 28px 24px; border: 1px solid #e2e8f0; }
.sidebar-widget h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.category-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.category-list li a { display: flex; justify-content: space-between; align-items: center; color: var(--text); text-decoration: none; font-size: 0.9rem; padding: 8px 0; border-bottom: 1px solid #e2e8f0; transition: color .2s; }
.category-list li:last-child a { border-bottom: none; }
.category-list li a:hover { color: var(--accent); }
.cat-count { background: var(--accent); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recent-list li a { color: var(--text); text-decoration: none; font-size: 0.88rem; line-height: 1.4; font-weight: 500; transition: color .2s; }
.recent-list li a:hover { color: var(--accent); }
.recent-list li .rdate { color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.cta-widget { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 10px; padding: 32px 24px; text-align: center; }
.cta-widget h3 { font-family: var(--serif); color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.cta-widget p { color: var(--silver); font-size: 0.875rem; line-height: 1.6; margin-bottom: 20px; }
.cta-widget a { display: block; background: var(--accent); color: var(--white); padding: 12px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background .2s; }
.cta-widget a:hover { background: var(--mid); }

/* ══ FOOTER ══ */
footer { background: var(--navy); padding: 40px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo img { height: 21px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--silver); font-size: 0.85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ══ ANIMATIONS ══ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .own-cards { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .who-bottom { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .blog-body { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 4%; }
  nav { padding: 0 4%; }
  .contact-form { padding: 28px 20px; }
  .blog-hero { padding: 100px 4% 60px; }
  .blog-body { padding: 48px 4%; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
/* ══ SMS OPT-IN CHECKBOX ══ */
.sms-optin { margin-bottom: 24px; }
.checkbox-label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  margin-top: 2px; accent-color: var(--accent);
  cursor: pointer; border: 1.5px solid #cbd5e1; border-radius: 3px;
}
.checkbox-text {
  font-size: 0.8rem; color: var(--muted); line-height: 1.55;
}
 
/* ══════════════════════════════════════
   ARTICLE PAGES
   Used by blog/[article].html
   ══════════════════════════════════════ */

.article-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%);
  padding: 130px 5% 72px;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }

.article-category {
  display: inline-block;
  background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4);
  color: var(--sky); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  text-decoration: none; transition: background .2s;
}
.article-category:hover { background: rgba(59,130,246,0.35); }

.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--silver); font-size: 0.875rem;
}
.article-meta-bar span { display: flex; align-items: center; gap: 6px; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }

.article-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 72px 5%;
  display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start;
}

.article-content { min-width: 0; }
.article-content p { color: var(--text); font-size: 1.05rem; line-height: 1.85; margin-bottom: 24px; }
.article-content h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); line-height: 1.2; margin: 52px 0 18px; }
.article-content h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 36px 0 14px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.article-content a:hover { color: var(--mid); }
.article-content em { font-style: italic; }

.pullquote {
  border-left: 4px solid var(--accent);
  padding: 20px 28px; margin: 40px 0;
  background: var(--fog); border-radius: 0 8px 8px 0;
}
.pullquote p {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--navy); line-height: 1.5;
  margin-bottom: 0; font-style: italic;
}

.callout {
  background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.25);
  border-radius: 10px; padding: 24px 28px; margin: 36px 0;
}
.callout-title { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout p { margin-bottom: 0; font-size: 0.97rem; }

.article-footer {
  margin-top: 64px; padding-top: 40px;
  border-top: 2px solid #e2e8f0;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.author-info h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.author-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.article-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px; padding: 48px 40px; text-align: center;
}
.article-cta h3 { font-family: var(--serif); color: var(--white); font-size: 1.8rem; margin-bottom: 14px; }
.article-cta p { color: var(--silver); font-size: 0.97rem; line-height: 1.7; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.article-cta .btn-primary { display: inline-block; width: auto; color: #ffffff; }
.article-cta .btn-primary:hover { color: #ffffff; }

.article-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 28px; }

.toc { background: var(--fog); border-radius: 10px; padding: 24px; border: 1px solid #e2e8f0; }
.toc h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.toc ol { list-style: none; counter-reset: toc-counter; display: flex; flex-direction: column; gap: 2px; }
.toc ol li { counter-increment: toc-counter; }
.toc ol li a {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text); text-decoration: none; font-size: 0.88rem;
  line-height: 1.5; padding: 6px 8px; border-radius: 6px;
  transition: background .2s, color .2s;
}
.toc ol li a::before { content: counter(toc-counter); font-size: 0.75rem; font-weight: 700; color: var(--accent); min-width: 18px; flex-shrink: 0; }
.toc ol li a:hover { background: rgba(59,130,246,0.08); color: var(--accent); }
.toc ol li a.active { background: rgba(59,130,246,0.1); color: var(--accent); font-weight: 600; }

.related { background: var(--fog); border-radius: 10px; padding: 24px; border: 1px solid #e2e8f0; }
.related h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.related-list li a { color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500; line-height: 1.4; transition: color .2s; display: block; }
.related-list li a:hover { color: var(--accent); }
.related-list li .rdate { color: var(--muted); font-size: 0.78rem; margin-top: 3px; }

/* ══════════════════════════════════════
   LEGAL PAGES
   Used by privacy-policy.html, terms-of-service.html
   ══════════════════════════════════════ */

.legal-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%);
  padding: 120px 5% 60px;
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; }
.legal-tag {
  display: inline-block;
  background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4);
  color: var(--sky); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.legal-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); line-height: 1.15; margin-bottom: 14px; }
.legal-hero-meta { color: var(--silver); font-size: 0.875rem; line-height: 1.6; }

.legal-layout {
  max-width: 1100px; margin: 0 auto; padding: 72px 5%;
  display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start;
}
.legal-toc { position: sticky; top: 84px; }
.legal-toc-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.legal-toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc-list a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.86rem; padding: 6px 10px; border-radius: 6px;
  transition: background .2s, color .2s; line-height: 1.4;
}
.legal-toc-list a:hover { background: var(--fog); color: var(--navy); }
.legal-toc-list a.active { background: rgba(59,130,246,0.08); color: var(--accent); font-weight: 600; }

.legal-content h2 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy);
  margin: 48px 0 16px; padding-top: 48px;
  border-top: 1px solid #e2e8f0;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 24px 0 10px; }
.legal-content p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content ul li { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-highlight {
  background: rgba(59,130,246,0.07); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 20px; margin: 20px 0;
}
.legal-highlight p { color: var(--navy); font-weight: 500; margin: 0; font-size: 0.9rem; }

/* ══ ARTICLE + LEGAL RESPONSIVE ══ */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
@media (max-width: 600px) {
  .article-hero { padding: 100px 4% 52px; }
  .article-layout { padding: 48px 4%; }
  .article-cta { padding: 36px 24px; }
  .legal-hero { padding: 100px 4% 48px; }
  .legal-layout { padding: 48px 4%; }
}

/* ══════════════════════════════════════
   WORK PAGE
   Used by work.html + homepage teaser
   ══════════════════════════════════════ */

#work-intro { background: var(--white); padding-top: 150px; }

/* ══ FEATURED CASE STUDY ══ */
#work-featured { background: var(--fog); }
.work-featured-card {
  background: var(--white); border: 2px solid var(--accent); border-radius: 12px;
  padding: 56px 48px; box-shadow: var(--shadow); position: relative;
}
.work-featured-tag {
  display: inline-block; background: rgba(59,130,246,0.12); color: var(--accent);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.work-featured-title { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.work-featured-blurb { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 40px; max-width: 720px; }

.work-detail-block { margin-bottom: 36px; }
.work-detail-block:last-of-type { margin-bottom: 32px; }
.work-detail-block h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.work-detail-block p { color: var(--text); font-size: 0.98rem; line-height: 1.75; }
.work-detail-block p strong { color: var(--navy); }

.work-detail-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.work-detail-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text); font-size: 0.95rem; line-height: 1.6;
}
.work-detail-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.work-detail-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.work-quote {
  border-left: 4px solid var(--accent); padding: 20px 28px; margin: 8px 0 0;
  background: var(--fog); border-radius: 0 8px 8px 0;
  font-family: var(--serif); font-size: 1.2rem; color: var(--navy);
  line-height: 1.5; font-style: italic;
}

/* ══ LIGHTER PROJECT GRID ══ */
#work-grid { background: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 60px; }
.work-card {
  background: var(--white); border-radius: 10px; padding: 36px 32px;
  border: 1px solid #e2e8f0; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,31,61,0.13); }
.work-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.work-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.work-card-tools { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 18px; }
.work-card-tools strong { color: var(--navy); }
.work-card-link { color: var(--accent); font-size: 0.9rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.work-card-link:hover { gap: 10px; }

/* ══ HOMEPAGE WORK TEASER ══ */
#work-teaser, #about-teaser, #about-cta { background: linear-gradient(135deg, var(--navy), var(--blue)); padding: 80px 5%; }
.work-teaser-card { display: flex; justify-content: center; }
.work-teaser-text { max-width: 840px; text-align: center; }
#work-teaser .section-label, #about-teaser .section-label, #about-cta .section-label { color: var(--sky); }
#work-teaser .section-title, #about-teaser .section-title, #about-cta .section-title { color: var(--white); margin-bottom: 16px; }
#work-teaser .section-sub, #about-teaser .section-sub, #about-cta .section-sub { color: var(--silver); margin: 0 auto 32px; max-width: 560px; }
#work-teaser .btn-primary, #about-teaser .btn-primary, #about-cta .btn-primary { color: #ffffff; }
#work-teaser .btn-primary:hover, #about-teaser .btn-primary:hover, #about-cta .btn-primary:hover { color: #ffffff; }

/* ══════════════════════════════════════
   ABOUT PAGE
   Used by about.html
   ══════════════════════════════════════ */
#about-intro { background: var(--white); padding-top: 150px; }
#about-story { background: var(--fog); }
#about-credentials { background: var(--white); }

/* ══ WORK RESPONSIVE ══ */
@media (max-width: 700px) {
  .work-featured-card { padding: 36px 24px; }
  .work-grid { grid-template-columns: 1fr; }
}

/* ══ BEFORE/AFTER COMPARISON ══ */
.work-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: center; margin: 8px 0 48px;
}
.work-compare-col { display: flex; flex-direction: column; gap: 12px; }
.work-compare-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; align-self: flex-start;
}
.work-compare-before { background: rgba(100,116,139,0.12); color: var(--muted); }
.work-compare-after { background: rgba(59,130,246,0.12); color: var(--accent); }
.work-compare-frame {
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--fog);
}
.work-compare-frame img { display: block; width: 100%; height: auto; }
.work-compare-arrow {
  font-size: 1.6rem; color: var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  .work-compare { grid-template-columns: 1fr; }
  .work-compare-arrow { transform: rotate(90deg); margin: -4px 0; }
}
