/* ============================================================
   AEDO Resources — shared stylesheet for /resources/ hub +
   /resources/structural-design/ (and future resource sections)
   Tokens copied 1:1 from the main site's :root in /style.css so
   this stays visually identical to aedoconstruction.com without
   depending on the (huge) homepage stylesheet cascading in.
   ============================================================ */

:root {
  --bg:        #080f18;
  --bg2:       #0b1622;
  --bg3:       #0f1e2e;
  --card:      #132437;
  --border:    rgba(255,255,255,0.08);
  --accent:    #e86100;
  --accent2:   #ff7a30;
  --text:      #dde8f0;
  --text2:     #7a9ab5;
  --text3:     #4a6880;
  --navy:      #1a3a5c;
  --font:      'Inter', sans-serif;
  --font2:     'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius:    3px;
  --radius-lg: 10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.res-body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.res-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ── background texture: soft radial glow + faint grid, matches homepage hero feel ── */
.res-bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 8%, rgba(232,97,0,0.16), transparent 42%),
    radial-gradient(circle at 88% 70%, rgba(26,58,92,0.35), transparent 45%),
    linear-gradient(var(--bg), var(--bg));
}
.res-bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ── NAVBAR (compact, shared) ── */
.res-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8,15,24,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.res-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.res-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font2);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}
.res-nav-logo img { height: 30px; width: auto; }
.res-nav-logo .sub { color: var(--text3); font-weight: 500; font-size: 12px; margin-left: 2px; }
.res-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.res-nav-links a { text-decoration: none; color: var(--text2); transition: color var(--transition); white-space: nowrap; }
.res-nav-links a:hover { color: var(--text); }
.res-nav-links a.res-current { color: var(--accent); }
.res-nav-cta {
  background: var(--accent);
  color: #0d1b2a !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.res-nav-cta:hover { background: var(--accent2); }
.res-hamburger { display: none; }

@media (max-width: 760px) {
  .res-nav-links { position: fixed; top: 62px; left: 0; right: 0; background: var(--bg2); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--transition); }
  .res-nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .res-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .res-nav-links a { display: block; padding: 14px 24px; }
  .res-nav-cta { margin: 10px 24px; text-align: center; }
  .res-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .res-hamburger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
}

/* ── HERO ── */
.res-hero { position: relative; z-index: 1; padding: 76px 0 56px; text-align: center; }
.res-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,97,0,0.1);
  border: 1px solid rgba(232,97,0,0.25);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 22px;
}
.res-hero h1 {
  font-family: var(--font2);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700; line-height: 1.08; letter-spacing: -1px;
  margin: 0 0 18px;
  text-wrap: balance;
}
.res-hero p {
  color: var(--text2); font-size: 17px; max-width: 620px; margin: 0 auto;
}
.res-hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.res-hero-stat { text-align: center; }
.res-hero-stat b { display: block; font-family: var(--font-mono); font-size: 24px; color: var(--accent); }
.res-hero-stat span { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── CATEGORY GRID (hub page) ── */
.res-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 10px 0 90px;
}
@media (max-width: 940px) { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  position: relative;
  background: linear-gradient(160deg, var(--card), var(--bg3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; min-height: 300px;
}
.res-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -10%, var(--card-glow, rgba(232,97,0,0.22)), transparent 55%);
  opacity: 0; transition: opacity 0.4s ease;
}
.res-card:hover { transform: translateY(-8px); border-color: rgba(232,97,0,0.35); box-shadow: var(--shadow-lg); }
.res-card:hover::before { opacity: 1; }
.res-card:hover .res-card-icon { transform: scale(1.08) rotate(-4deg); }
.res-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: rgba(232,97,0,0.14);
  border: 1px solid rgba(232,97,0,0.25);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.res-card-tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text3); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px;
}
.res-card h3 { font-family: var(--font2); font-size: 21px; margin: 0 0 10px; }
.res-card p { color: var(--text2); font-size: 14.5px; margin: 0 0 18px; flex-grow: 1; }
.res-card-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.res-card-chips span { font-size: 11px; font-weight: 600; color: var(--text3); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 3px 10px; border-radius: 99px; }
.res-card-link { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--accent); margin-top: auto; }
.res-card-arrow { transition: transform 0.25s ease; }
.res-card:hover .res-card-arrow { transform: translateX(5px); }

.res-card.res-card-soon { opacity: 0.55; cursor: default; }
.res-card.res-card-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.res-card.res-card-soon:hover .res-card-icon { transform: none; }
.res-card-soon-badge { color: var(--text3); }

/* ── SECTION shared header (used on structural-design page) ── */
.res-section { position: relative; z-index: 1; padding: 60px 0; }
.res-section-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent); background: rgba(232,97,0,0.1); border: 1px solid rgba(232,97,0,0.25);
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
}
.res-section-title { font-family: var(--font2); font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.5px; margin: 0 0 12px; }
.res-section-sub { color: var(--text2); font-size: 15.5px; max-width: 620px; margin: 0 0 40px; }
.res-section-head.center { text-align: center; }
.res-section-head.center .res-section-sub { margin-left: auto; margin-right: auto; }

/* ── breadcrumb ── */
.res-crumb { position: relative; z-index: 1; padding: 20px 0 0; font-size: 13px; color: var(--text3); }
.res-crumb a { color: var(--text2); text-decoration: none; }
.res-crumb a:hover { color: var(--accent); }

/* ── disclaimer strip ── */
.res-disclaimer {
  position: relative; z-index: 1;
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(232,97,0,0.07);
  border: 1px solid rgba(232,97,0,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px; font-size: 13.5px; color: var(--text2); margin: 0 0 48px;
}
.res-disclaimer b { color: var(--text); }

/* ── calculator tool cards ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.tool-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 22px; text-decoration: none; color: var(--text);
  transition: var(--transition); display: flex; flex-direction: column; gap: 12px;
}
.tool-card:hover { border-color: rgba(232,97,0,0.4); transform: translateY(-5px); box-shadow: var(--shadow); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-card-icon { font-size: 26px; }
.tool-card-badge { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #0d1b2a; background: var(--accent); padding: 3px 9px; border-radius: 99px; }
.tool-card h4 { font-family: var(--font2); font-size: 17px; margin: 0; }
.tool-card p { color: var(--text2); font-size: 13.5px; margin: 0; flex-grow: 1; }
.tool-card-cta { font-size: 13.5px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.tool-card:hover .tool-card-cta .arrow { transform: translateX(4px); }
.tool-card-cta .arrow { transition: transform 0.25s ease; }

.tool-card.tool-card-soon { opacity: 0.5; }
.tool-card.tool-card-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ── spreadsheet / product cards ── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.shop-card {
  position: relative;
  background: linear-gradient(160deg, var(--card), var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: var(--transition);
}
.shop-card:hover { border-color: rgba(232,97,0,0.4); transform: translateY(-5px); box-shadow: var(--shadow); }
.shop-card-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,168,107,0.14); border: 1px solid rgba(0,168,107,0.3); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 4px; }
.shop-card h4 { font-family: var(--font2); font-size: 17px; margin: 0; }
.shop-card p { color: var(--text2); font-size: 13.5px; margin: 0; flex-grow: 1; }
.shop-card-price { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); margin-top: 4px; }
.shop-card-price span { font-size: 12px; color: var(--text3); font-weight: 400; font-family: var(--font); margin-left: 4px; }
.shop-buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #0d1b2a; font-weight: 700; font-size: 14px;
  border: none; border-radius: var(--radius); padding: 11px 18px; cursor: pointer;
  text-decoration: none; margin-top: 6px; transition: var(--transition);
}
.shop-buy-btn:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,97,0,0.3); }
.shop-bundle-note { grid-column: 1 / -1; text-align: center; color: var(--text3); font-size: 13px; margin-top: 4px; }

/* ── final CTA banner ── */
.res-final-cta {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--navy), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 52px 40px;
  text-align: center;
  margin: 20px 0 90px;
  overflow: hidden;
}
.res-final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(232,97,0,0.25), transparent 55%);
}
.res-final-cta * { position: relative; z-index: 1; }
.res-final-cta h2 { font-family: var(--font2); font-size: clamp(22px, 3vw, 32px); margin: 0 0 12px; }
.res-final-cta p { color: var(--text2); max-width: 520px; margin: 0 auto 26px; font-size: 15px; }
.res-final-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.res-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition);
}
.res-btn-primary { background: var(--accent); color: #0d1b2a; }
.res-btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,97,0,0.35); }
.res-btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.res-btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── sticky in-page sub-nav (structural-design page) ── */
.res-subnav {
  position: sticky; top: 62px; z-index: 400;
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  background: rgba(8,15,24,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.res-subnav a {
  font-size: 13px; font-weight: 700; color: var(--text2); text-decoration: none;
  padding: 7px 14px; border-radius: 99px; transition: var(--transition);
}
.res-subnav a:hover, .res-subnav a.active { color: var(--accent); background: rgba(232,97,0,0.1); }

/* ── footer (minimal, matches nav) ── */
.res-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--text3); font-size: 13px; }
.res-footer a { color: var(--text2); text-decoration: none; }
.res-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .res-hero { padding: 56px 0 40px; }
  .res-final-cta { padding: 40px 22px; }
}
