/*
Theme Name: EIB3D Community
Theme URI: https://eib3d.ca/
Author: EIB3D
Author URI: https://eib3d.ca/
Description: A modern block theme for a community 3D printing, household repair, and local maker marketplace. Includes native styling and page patterns for Print Quote Studio.
Requires at least: 6.4
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eib3d-community
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --eib-ink: #0b1020;
  --eib-ink-2: #151b33;
  --eib-paper: #f7f7fb;
  --eib-white: #ffffff;
  --eib-muted: #667085;
  --eib-line: #e5e7ef;
  --eib-cyan: #08c8ef;
  --eib-blue: #438ff0;
  --eib-violet: #7b61e8;
  --eib-purple: #8848b0;
  --eib-magenta: #ee0bd0;
  --eib-green: #19a974;
  --eib-radius-sm: 14px;
  --eib-radius: 24px;
  --eib-radius-lg: 36px;
  --eib-shadow-sm: 0 8px 22px rgba(11, 16, 32, .08);
  --eib-shadow: 0 24px 70px rgba(11, 16, 32, .13);
  --eib-gradient: linear-gradient(110deg, var(--eib-cyan) 0%, var(--eib-violet) 52%, var(--eib-magenta) 100%);
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background: var(--eib-paper);
  color: var(--eib-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(123, 97, 232, .24); color: var(--eib-ink); }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }

/* Header */
.eib3d-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 251, .88);
  border-bottom: 1px solid rgba(11, 16, 32, .08);
  backdrop-filter: blur(18px) saturate(145%);
}
.admin-bar .eib3d-site-header { top: 32px; }
.eib3d-header-shell { min-height: 78px; width: min(calc(100% - clamp(32px, 5vw, 88px)), 1440px); max-width: 1440px !important; margin-inline: auto; }
.eib3d-site-header .wp-block-site-logo img { width: min(210px, 42vw); height: auto; }
.eib3d-primary-nav { font-size: .93rem; font-weight: 650; }
.eib3d-primary-nav .wp-block-navigation-item__content { color: var(--eib-ink); }
.eib3d-primary-nav .wp-block-navigation-item__content:hover,
.eib3d-primary-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--eib-violet); }
.eib3d-primary-nav .wp-block-navigation__submenu-container {
  min-width: 235px !important;
  padding: 10px !important;
  border: 1px solid var(--eib-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--eib-shadow-sm) !important;
}
.eib3d-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 10px 12px !important;
  border-radius: 10px;
}
.eib3d-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #f1f0fc; }
.eib3d-header-account { white-space: nowrap; }

/* Shared layout */
.eib3d-section { padding-block: clamp(64px, 8vw, 112px); }
.eib3d-section-tight { padding-block: clamp(42px, 6vw, 76px); }
.eib3d-section-dark { position: relative; overflow: hidden; background: var(--eib-ink); color: var(--eib-white); }
.eib3d-section-soft { background: #efeff7; }
.eib3d-section-white { background: var(--eib-white); }
.eib3d-content-shell { position: relative; z-index: 2; }

/* Homepage width correction (v1.0.1) */
.eib3d-home-shell {
  width: min(calc(100% - clamp(32px, 5vw, 88px)), 1440px);
  max-width: 1440px !important;
  margin-inline: auto;
}
.eib3d-final-cta-shell > .wp-block-heading,
.eib3d-final-cta-shell > .wp-block-paragraph,
.eib3d-final-cta-shell > p,
.eib3d-final-cta-shell > .wp-block-buttons {
  max-width: 980px;
  margin-inline: auto;
}
.eib3d-final-cta-shell > .wp-block-buttons { justify-content: center; }

.eib3d-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(123, 97, 232, .25);
  border-radius: 999px;
  background: rgba(123, 97, 232, .08);
  color: #6751cc;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eib3d-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eib-gradient);
  box-shadow: 0 0 0 5px rgba(123, 97, 232, .10);
}
.eib3d-section-dark .eib3d-eyebrow {
  color: #cfc6ff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255,255,255,.16);
}
.eib3d-display {
  max-width: 980px;
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6.1vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.eib3d-gradient-text {
  background: var(--eib-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eib3d-section-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 780;
}
.eib3d-lead { max-width: 760px; font-size: clamp(1.08rem, 1.9vw, 1.35rem); line-height: 1.66; color: var(--eib-muted); }
.eib3d-section-dark .eib3d-lead { color: #b8c0d8; }
.eib3d-kicker { color: var(--eib-muted); font-weight: 650; }

/* Buttons */
.wp-block-button .wp-block-button__link {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 760;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.eib3d-btn-primary .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
  border: 0;
  background: var(--eib-gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(123, 97, 232, .28);
}
.eib3d-btn-primary .wp-block-button__link:hover { box-shadow: 0 18px 38px rgba(123, 97, 232, .38); }
.eib3d-btn-light .wp-block-button__link { background: #fff; color: var(--eib-ink); }
.eib3d-btn-ghost .wp-block-button__link {
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.04);
  color: #fff;
}
.eib3d-btn-outline .wp-block-button__link {
  border: 1px solid rgba(11,16,32,.16);
  background: transparent;
  color: var(--eib-ink);
}

/* Hero */
.eib3d-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 22%, rgba(8,200,239,.22), transparent 29%),
    radial-gradient(circle at 77% 18%, rgba(238,11,208,.20), transparent 31%),
    radial-gradient(circle at 68% 91%, rgba(123,97,232,.28), transparent 32%),
    var(--eib-ink);
  color: #fff;
}
.eib3d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}
.eib3d-hero-copy { max-width: 760px; }
.eib3d-hero .eib3d-lead { max-width: 675px; }
.eib3d-hero-note { margin-top: 24px; color: #aeb7d0; font-size: .92rem; }
.eib3d-hero-note strong { color: #fff; }
.eib3d-hero-visual { position: relative; min-height: 530px; }
.eib3d-orbit {
  position: absolute;
  inset: 5% 4%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  transform: rotate(-13deg);
}
.eib3d-orbit::before,
.eib3d-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.eib3d-orbit::before { inset: 12%; transform: rotate(28deg); }
.eib3d-orbit::after { inset: 27%; }
.eib3d-request-card {
  position: absolute;
  inset: 11% 2% auto 9%;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: 0 36px 90px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  transform: rotate(1.5deg);
}
.eib3d-request-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--eib-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .52;
  pointer-events: none;
}
.eib3d-request-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.eib3d-request-title { margin: 0; font-size: 1.22rem; font-weight: 760; }
.eib3d-status-pill { padding: 7px 10px; border-radius: 999px; background: rgba(25,169,116,.15); color: #83edc2; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.eib3d-upload-zone { padding: 26px; border: 1px dashed rgba(255,255,255,.25); border-radius: 20px; text-align: center; background: rgba(7,12,26,.25); }
.eib3d-upload-icon { width: 66px; height: 66px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; background: var(--eib-gradient); box-shadow: 0 18px 38px rgba(123,97,232,.28); }
.eib3d-upload-icon img { width: 34px; filter: brightness(0) invert(1); }
.eib3d-flow-line { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 18px; }
.eib3d-flow-step { padding: 13px 8px; border-radius: 14px; background: rgba(255,255,255,.065); text-align: center; color: #c7cee1; font-size: .78rem; }
.eib3d-flow-step strong { display: block; margin-bottom: 2px; color: #fff; font-size: .85rem; }
.eib3d-float-chip { position: absolute; z-index: 3; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(17,23,44,.76); box-shadow: 0 14px 34px rgba(0,0,0,.28); backdrop-filter: blur(14px); color: #fff; font-size: .76rem; font-weight: 720; }
.eib3d-float-chip-a { top: 2%; right: 2%; }
.eib3d-float-chip-b { bottom: 8%; left: 0; }
.eib3d-float-chip-c { right: -2%; bottom: 20%; }

/* Cards */
.eib3d-card {
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--eib-line);
  border-radius: var(--eib-radius);
  background: var(--eib-white);
  box-shadow: 0 1px 0 rgba(11,16,32,.02);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.eib3d-card:hover { transform: translateY(-5px); border-color: rgba(123,97,232,.30); box-shadow: var(--eib-shadow); }
.eib3d-card-dark { border-color: rgba(255,255,255,.12); background: linear-gradient(155deg, #1a2140, #10162c); color: #fff; }
.eib3d-card-gradient { border: 0; background: var(--eib-gradient); color: #fff; box-shadow: 0 28px 65px rgba(123,97,232,.30); }
.eib3d-card .wp-block-heading { margin-top: 18px; margin-bottom: 10px; }
.eib3d-card p:last-child { margin-bottom: 0; }
.eib3d-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f0effc;
}
.eib3d-card-icon img { width: 30px; height: 30px; }
.eib3d-card-gradient .eib3d-card-icon,
.eib3d-card-dark .eib3d-card-icon { background: rgba(255,255,255,.13); }
.eib3d-card-gradient .eib3d-card-icon img,
.eib3d-card-dark .eib3d-card-icon img { filter: brightness(0) invert(1); }
.eib3d-card-link { margin-top: 24px; font-weight: 780; }
.eib3d-card-link a { text-decoration: none; }

/* Trust strip */
.eib3d-trust-strip { background: #fff; border-bottom: 1px solid var(--eib-line); }
.eib3d-trust-item { display: flex; align-items: center; gap: 11px; font-size: .9rem; font-weight: 740; color: #323a50; }
.eib3d-trust-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--eib-gradient); }

/* Journey */
.eib3d-journey-card { position: relative; min-height: 470px; overflow: hidden; }
.eib3d-journey-card::after { content:""; position:absolute; width:270px; height:270px; right:-90px; bottom:-110px; border:1px solid currentColor; border-radius:50%; opacity:.16; box-shadow: 0 0 0 38px transparent, 0 0 0 39px currentColor, 0 0 0 78px transparent, 0 0 0 79px currentColor; }
.eib3d-journey-number { font-size: 4.8rem; line-height: 1; font-weight: 860; letter-spacing: -.08em; opacity: .16; }
.eib3d-check-list { list-style: none; padding-left: 0; }
.eib3d-check-list li { position: relative; padding-left: 30px; margin-bottom: 13px; }
.eib3d-check-list li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 20px; height: 20px; display: grid; place-items:center; border-radius:50%; background: rgba(123,97,232,.12); color: var(--eib-violet); font-size: .72rem; font-weight: 900; }
.eib3d-card-gradient .eib3d-check-list li::before,
.eib3d-card-dark .eib3d-check-list li::before { background: rgba(255,255,255,.16); color: #fff; }

/* Steps */
.eib3d-step { position: relative; padding-top: 26px; }
.eib3d-step-number { position: absolute; top: 0; right: 0; color: #e9e7f8; font-size: 4.7rem; line-height: .8; font-weight: 900; letter-spacing: -.08em; }
.eib3d-step .wp-block-heading { position: relative; z-index: 1; }

/* Quote studio integration */
.eib3d-quote-intro { padding-bottom: 28px; }
.eib3d-printquote-shell { margin-block: 28px 80px; }
.eib3d-printquote-shell .pqs-app {
  --pqs-bg: #f5f5fb;
  --pqs-fg: #0b1020;
  --pqs-muted-fg: #667085;
  --pqs-card: #ffffff;
  --pqs-border: #e2e3ed;
  --pqs-input: #d8dbea;
  --pqs-primary: #7b61e8;
  --pqs-primary-fg: #ffffff;
  --pqs-accent: #ee0bd0;
  --pqs-accent-fg: #ffffff;
  --pqs-soft: #eeedf7;
  --pqs-radius: 1.15rem;
  border: 1px solid #e4e3f0;
  border-radius: 30px;
  box-shadow: var(--eib-shadow);
}
.eib3d-printquote-shell .pqs-hero-title,
.eib3d-printquote-shell .pqs-card h2,
.eib3d-printquote-shell .pqs-summary-total { font-family: inherit; letter-spacing: -.035em; }
.eib3d-printquote-shell .pqs-btn-primary { background: var(--eib-gradient); }
.eib3d-printquote-shell .pqs-btn-primary:hover { background: linear-gradient(110deg,#06b8df,#7058dc 52%,#d80dbd); }
.eib3d-plugin-missing { padding: 34px; border: 1px solid #f2c6ea; border-radius: 24px; background: #fff3fd; color: #56214e; }

/* Queries, projects, jobs */
.eib3d-project-grid .wp-block-post,
.eib3d-post-grid .wp-block-post { overflow: hidden; border: 1px solid var(--eib-line); border-radius: var(--eib-radius); background: #fff; box-shadow: 0 8px 28px rgba(11,16,32,.06); }
.eib3d-project-grid .wp-block-post-featured-image,
.eib3d-post-grid .wp-block-post-featured-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #e9eaf3; }
.eib3d-project-grid .wp-block-post-featured-image img,
.eib3d-post-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.eib3d-project-grid .wp-block-post:hover .wp-block-post-featured-image img,
.eib3d-post-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.035); }
.eib3d-project-grid .wp-block-post-title,
.eib3d-project-grid .wp-block-post-excerpt,
.eib3d-project-grid .wp-block-post-date,
.eib3d-post-grid .wp-block-post-title,
.eib3d-post-grid .wp-block-post-excerpt,
.eib3d-post-grid .wp-block-post-date { padding-inline: 24px; }
.eib3d-project-grid .wp-block-post-title,
.eib3d-post-grid .wp-block-post-title { margin-top: 22px; }
.eib3d-project-grid .wp-block-post-excerpt,
.eib3d-post-grid .wp-block-post-excerpt { padding-bottom: 24px; }
.eib3d-maker-jobs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.eib3d-maker-job { display:flex; flex-direction:column; min-height:100%; padding: 25px; border:1px solid var(--eib-line); border-radius:22px; background:#fff; box-shadow:0 8px 24px rgba(11,16,32,.06); }
.eib3d-maker-job__meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; color:var(--eib-muted); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.eib3d-maker-job h3 { margin:0 0 10px; font-size:1.25rem; }
.eib3d-maker-job h3 a { color:var(--eib-ink); text-decoration:none; }
.eib3d-maker-job__excerpt { flex:1; color:var(--eib-muted); }
.eib3d-maker-job__actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.eib3d-maker-job__actions a { display:inline-flex; padding:10px 14px; border-radius:999px; background:#eeedf8; color:#5f49c8; font-size:.84rem; font-weight:750; text-decoration:none; }
.eib3d-maker-job__actions a:first-child { background:var(--eib-gradient); color:#fff; }
.eib3d-empty-state { padding:40px; border:1px dashed #cfd1df; border-radius:24px; background:#fff; text-align:center; }

/* Account panel */
.eib3d-account-panel { padding: clamp(26px,5vw,48px); border:1px solid var(--eib-line); border-radius:28px; background:#fff; box-shadow:var(--eib-shadow-sm); }
.eib3d-account-panel__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.eib3d-account-panel__actions a { display:inline-flex; padding:12px 18px; border:1px solid #d9dbe8; border-radius:999px; color:var(--eib-ink); font-weight:750; text-decoration:none; }
.eib3d-account-panel__actions a:first-child { border:0; background:var(--eib-gradient); color:#fff; }

/* Testimonial */
.eib3d-quote-card { position: relative; }
.eib3d-quote-card::before { content:"“"; display:block; height:52px; color:var(--eib-violet); font-size:5.4rem; line-height:.9; font-weight:900; opacity:.25; }
.eib3d-stars { color:#f4aa12; letter-spacing:.08em; }

/* Forms */
.eib3d-contact-card { padding: clamp(26px,5vw,44px); border:1px solid var(--eib-line); border-radius:30px; background:#fff; box-shadow:var(--eib-shadow-sm); }
.eib3d-contact-list { list-style:none; padding:0; }
.eib3d-contact-list li { padding:13px 0; border-bottom:1px solid var(--eib-line); }
.eib3d-contact-list li:last-child { border-bottom:0; }

/* Footer */
.eib3d-site-footer { background:#080c18; color:#b9c0d5; }
.eib3d-site-footer a { color:#dce1ef; text-decoration:none; }
.eib3d-site-footer a:hover { color:#fff; }
.eib3d-site-footer .wp-block-site-logo img { width:220px; filter:none; }
.eib3d-footer-title { color:#fff; font-weight:790; }
.eib3d-footer-rule { border-color:rgba(255,255,255,.12); }
.eib3d-footer-bottom { font-size:.84rem; color:#858da7; }

/* Article templates */
.eib3d-article-shell { padding-block: clamp(54px,8vw,100px); }
.eib3d-article-header { max-width:860px; margin-inline:auto; text-align:center; }
.eib3d-article-header .wp-block-post-title { font-size:clamp(2.35rem,5.5vw,5rem); line-height:1; letter-spacing:-.055em; }
.eib3d-article-content { max-width:800px; margin-inline:auto; font-size:1.08rem; line-height:1.8; }
.eib3d-article-content > * + * { margin-block-start:1.4em; }
.eib3d-article-featured { max-width:1180px; margin:44px auto; overflow:hidden; border-radius:30px; box-shadow:var(--eib-shadow); }

/* WordPress defaults */
.wp-block-post-content > :where(h2,h3,h4) { letter-spacing:-.025em; }
.wp-block-post-content blockquote { border-left:4px solid var(--eib-violet); }
.wp-block-separator { border-top:1px solid var(--eib-line); }
.wp-element-caption { color:var(--eib-muted); font-size:.84rem; }

@media (max-width: 1080px) {
  .eib3d-header-account { display:none; }
  .eib3d-maker-jobs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eib3d-hero-visual { min-height:470px; }
}
@media (max-width: 781px) {
  .admin-bar .eib3d-site-header { top:46px; }
  .eib3d-hero { min-height:auto; padding-block:72px; }
  .eib3d-hero-visual { min-height:450px; margin-top:20px; }
  .eib3d-request-card { inset:8% 4% auto 4%; }
  .eib3d-float-chip-a { right:0; }
  .eib3d-float-chip-c { right:0; }
  .eib3d-trust-row { row-gap:18px; }
  .eib3d-maker-jobs { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .eib3d-display { font-size:clamp(2.55rem,14vw,4.15rem); }
  .eib3d-hero-visual { min-height:405px; }
  .eib3d-request-card { padding:20px; }
  .eib3d-flow-line { grid-template-columns:1fr; }
  .eib3d-float-chip { display:none; }
  .eib3d-upload-zone { padding:20px 12px; }
  .eib3d-section { padding-block:60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* Wider site shells for large desktop displays. */
.eib3d-site-footer > .alignwide { width:min(calc(100% - clamp(32px, 5vw, 88px)), 1440px); max-width:1440px !important; margin-inline:auto; }
