/* ============================================================
   RIGID CONCEPTS — multi-page components
   Layered on top of styles.css. Powers inner pages, dropdown
   nav, breadcrumbs, prose, FAQ accordions, related links, CTA.
   ============================================================ */

/* ---------- Dropdown navigation ---------- */
.nav__links .has-menu { position: relative; }
.nav__links .has-menu > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav__links .has-menu > a .caret { width: 11px; height: 11px; transition: transform 0.3s var(--ease); opacity: 0.7; }
.nav__links .has-menu:hover > a .caret,
.nav__links .has-menu:focus-within > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: rgba(20,18,16,0.92); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r); padding: 0.6rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.dropdown::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.7rem; border-radius: var(--r-sm);
  font-size: 0.9rem; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--gold-soft); color: var(--text); }
.dropdown a .dd-ico { width: 18px; height: 18px; color: var(--gold-2); flex-shrink: 0; }
.dropdown__all { margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.dropdown__all a { color: var(--gold-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }

/* Mobile accordion menu */
.mobile-menu nav { width: 100%; max-width: 420px; padding: 5.5rem 1.5rem 2rem; align-items: stretch; overflow-y: auto; max-height: 100vh; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group__head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; padding: 1rem 0; text-align: left; }
.m-group__head .caret { width: 16px; height: 16px; color: var(--gold-2); transition: transform 0.3s var(--ease); }
.m-group.open .m-group__head .caret { transform: rotate(180deg); }
.m-group__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.m-group.open .m-group__panel { max-height: 480px; }
.m-group__panel a { font-size: 1rem !important; color: var(--muted); padding: 0.55rem 0 0.55rem 1rem; }
.mobile-menu nav > a.m-link { font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(9.5rem, 18vw, 15rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, #15110d, #0c0a09 60%); }
.page-hero__grid { position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(202,138,4,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(202,138,4,0.06) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(100% 80% at 80% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(100% 80% at 80% 0%, #000 20%, transparent 75%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 1.1rem; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #fff3d4); -webkit-background-clip: text; background-clip: text; }
.page-hero__lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin-top: 1.4rem; max-width: 60ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span.sep { color: var(--line-2); }

/* ---------- Prose content ---------- */
.prose-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin: 2.6rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 1.8rem 0 0.6rem; }
.prose p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.04rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232,180,61,0.4); transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--gold-2); }
.prose .lead { font-size: 1.2rem; color: var(--text); }

/* Checklist bullets */
.ticklist { display: grid; gap: 0.7rem; margin: 1.2rem 0 1.6rem; }
.ticklist li { display: grid; grid-template-columns: 24px 1fr; gap: 0.7rem; color: var(--muted); font-size: 1.01rem; }
.ticklist li::before { content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23E8B43D' stroke-width='2.5'%3E%3Cpath d='M2 7l3.5 3.5L12 3'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted-2); text-transform: uppercase; width: 40%; vertical-align: top; }
.spec-table td { color: var(--text); }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(202,138,4,0.04); }

/* ---------- Sidebar (sticky) ---------- */
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.side-card--cta { background: linear-gradient(160deg, rgba(202,138,4,0.14), var(--surface)); border-color: rgba(202,138,4,0.3); }
.side-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.side-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.side-card__links { display: grid; gap: 0.1rem; }
.side-card__links a { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; transition: color 0.2s, padding 0.2s; }
.side-card__links a:last-child { border-bottom: 0; }
.side-card__links a:hover { color: var(--gold-2); padding-left: 0.3rem; }
.side-card__phone { font-family: var(--font-mono); color: var(--gold-2); font-size: 1.05rem; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.25rem); text-align: left; padding: 1.4rem 0; }
.faq__q .icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__q .icon::before, .faq__q .icon::after { content: ''; position: absolute; background: var(--gold-2); transition: transform 0.3s var(--ease); }
.faq__q .icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item.open .faq__q .icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__item.open .faq__a { max-height: 360px; }
.faq__a p { color: var(--muted); padding-bottom: 1.4rem; max-width: 70ch; }

/* ---------- Related cards grid ---------- */
.related { background: var(--bg-2); border-top: 1px solid var(--line); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.rel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; transition: transform 0.35s var(--ease), border-color 0.35s; display: block; }
.rel-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.rel-card__ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(202,138,4,0.22); color: var(--gold-2); margin-bottom: 1rem; }
.rel-card__ico svg { width: 22px; height: 22px; }
.rel-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.4rem; }
.rel-card p { color: var(--muted); font-size: 0.9rem; }
.rel-card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding-block: clamp(4rem, 9vw, 7rem); text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band__grid { position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(202,138,4,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(202,138,4,0.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent 75%); }
.cta-band .container { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--muted); font-size: 1.1rem; margin: 1.1rem auto 2rem; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Overview / hub grids ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.hub-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.7rem; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.hub-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, var(--gold-soft), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.hub-card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.hub-card:hover::before { opacity: 1; }
.hub-card__ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(202,138,4,0.22); color: var(--gold-2); margin-bottom: 1.3rem; }
.hub-card__ico svg { width: 25px; height: 25px; }
.hub-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.6rem; }
.hub-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; }
.hub-card__more { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold-2); display: inline-flex; align-items: center; gap: 0.35rem; }
.hub-card__sym { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--surface-2); -webkit-text-stroke: 1px var(--line-2); }

/* ---------- Trust strip on inner pages ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1.4rem 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); }
.trust-item svg { width: 17px; height: 17px; color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .rel-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sidebar { grid-template-columns: 1fr; }
  .rel-grid, .hub-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WP1 — MISSING COMPONENTS (media-card, proj/blog grids+cards,
   chip, footer__* helpers). Layered on the existing tokens and
   matches the .hub-card / .rel-card / .mat-card__tag patterns.
   ============================================================ */

/* ---------- Media card (image box for the [data-img-slot] art) ----------
   images.css only paints background-image/size/position onto the slot and
   sets NO dimensions, so this box must supply the height/aspect + clip. */
.media-card {
  position: relative;
  aspect-ratio: 3 / 2;            /* real height; matches landscape blog/proj art */
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #0d0b09;      /* dark placeholder until photo loads */
}

/* ---------- Projects gallery ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.proj-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.proj-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.proj-card .media-card { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.proj-card__body { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.proj-card__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.6rem; }
.proj-card__body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.proj-card__body p strong { color: var(--text); }
.proj-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.proj-card__links { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.8rem; }
.proj-card__links a { color: var(--gold-2); }

/* ---------- Blog index ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.blog-card {
  display: flex; flex-direction: column;       /* fixes inline run-on of the <a> card */
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.blog-card .media-card { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.blog-card__body { padding: 1.5rem 1.4rem; display: flex; flex-direction: column; }
.blog-card__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 0.5rem; }
.blog-card__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.5rem; }
.blog-card__body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.blog-card__more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--gold-2); }

/* ---------- Tag pill (industry/material/process) ---------- */
.chip {
  display: inline-block; padding: 0.28rem 0.6rem; border-radius: 100px;
  background: var(--gold-soft); border: 1px solid rgba(202,138,4,0.25); color: var(--gold-2);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
}

/* ---------- Footer helpers ---------- */
.footer__brand { max-width: 38ch; }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.footer__legal a { color: var(--muted-2); transition: color 0.2s; }
.footer__legal a:hover { color: var(--gold-2); }
.footer__legal .sep { color: var(--line-2); }
.footer__loc { color: var(--muted-2); }

/* ---------- Responsive (matches .rel-grid/.hub-grid breakpoints) ---------- */
@media (max-width: 980px) {
  .proj-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .proj-grid, .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- HTML sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2.5rem; margin-top: 2rem; }
.sitemap-col h2 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; color: var(--text); margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.sitemap-col a { color: var(--muted-2); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.sitemap-col a:hover, .sitemap-col a:focus-visible { color: var(--gold-2); }
@media (max-width: 900px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sitemap-grid { grid-template-columns: 1fr; } }
