/* ============================================================
   OliverDeck — COMPONENT · CARDS & DATA DISPLAY
   Unified card surface + content variants (feature / category /
   article / project), image placeholders, table, accordion/FAQ,
   rating, doc-card, review-card, video-card, bento.
   ============================================================ */

/* ---------- BASE CARD ---------- */
.od-card {
  background: var(--od-card-bg);
  border: 1px solid var(--od-card-border);
  border-radius: var(--od-card-radius);
  box-shadow: var(--od-card-shadow);
  overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.od-card[data-interactive]:hover { transform: translateY(-2px); box-shadow: var(--od-card-shadow-hover); border-color: var(--od-color-border-strong); }
.od-card[data-pad] { padding: var(--od-card-pad); }

/* ---------- CARD AS LINK / BUTTON ----------
   Cards rendered as <a>/<button> — no inline reset needed. */
a.od-card, button.od-card, a.od-cat-card, a.od-feature { text-decoration: none; color: inherit; }
button.od-card { text-align: left; cursor: pointer; font: inherit; }

/* ---------- CARD COVER ----------
   Media/placeholder block at the top of a padded card. */
.od-card-cover { aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 14px; }

/* ---------- FEATURE CARD ---------- */
.od-feature { background: var(--od-color-surface); padding: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--od-color-border); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.od-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--od-color-border-strong); }
.od-feature > .material-symbols-outlined { font-size: 32px; color: var(--olive-500); display: block; margin-bottom: var(--s-3); font-variation-settings: 'wght' 300; }
.od-feature h4 { font-family: var(--od-font-body); font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--od-color-text-primary); }
.od-feature p { font-size: 14px; line-height: 1.55; color: var(--od-color-text-secondary); margin: 0; }
.od-on-dark .od-feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.od-on-dark .od-feature > .material-symbols-outlined { color: var(--olive-300); }

/* ---------- CATEGORY CARD ---------- */
.od-cat-card { background: var(--od-color-surface); border-radius: var(--r-lg); border: 1px solid var(--od-color-border); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.od-cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.od-cat-card-img { aspect-ratio: 16/10; background: var(--wood-200); display: flex; align-items: center; justify-content: center; color: var(--wood-700); position: relative; }
.od-cat-card-img .material-symbols-outlined { font-size: 56px; font-variation-settings: 'wght' 200; opacity: 0.55; }
.od-cat-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.od-cat-card-body h3 { font-family: var(--od-font-body); font-weight: 700; font-size: 18px; margin: 0; }
.od-cat-card-body p { font-size: 14px; line-height: 1.5; color: var(--od-color-text-secondary); margin: 0; flex: 1; }

/* ---------- ARTICLE CARD ---------- */
.od-article { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--od-color-surface); border: 1px solid var(--od-color-border); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.od-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.od-article-img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--wood-200), var(--wood-300)); display: flex; align-items: center; justify-content: center; color: var(--wood-700); }
.od-article-img .material-symbols-outlined { font-size: 48px; opacity: 0.55; font-variation-settings: 'wght' 200; }
.od-article-body { padding: var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.od-article h4 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0; }
.od-article p { font-size: 14px; color: var(--od-color-text-secondary); line-height: 1.5; margin: 0; flex: 1; }

/* ---------- IMAGE PLACEHOLDERS (warm, on-brand) ---------- */
.ph-terrace { background: repeating-linear-gradient(92deg, #5c3d22 0 18px, #4a301b 18px 21px, #5c3d22 21px 39px), linear-gradient(135deg, #6b4f30, #2d2015); }
.ph-pool { background: linear-gradient(135deg, rgba(24,16,9,.1), rgba(24,16,9,.55)), radial-gradient(ellipse at 70% 60%, #3a7a72, #1e4844 60%, #0f2523); }
.ph-sunset { background: linear-gradient(180deg, rgba(24,16,9,0) 30%, rgba(24,16,9,.55) 100%), linear-gradient(180deg, #d99468 0%, #a85c2e 45%, #5c3d22 100%); }
.ph-wood { background: repeating-linear-gradient(88deg, #a9895a 0 24px, #9a7a4f 24px 26px, #a9895a 26px 48px); }
.ph-night { background: linear-gradient(180deg, rgba(24,16,9,.3), rgba(24,16,9,.8)), radial-gradient(ellipse at 50% 30%, #3c4a6b, #1a1f2e); }

/* ---------- PROJECT CARDS (the canonical multi-variant set) ---------- */
.od-proj-dark { padding: 22px; border-radius: 16px; background: var(--od-color-surface-dark); color: var(--neutral-50); box-shadow: var(--shadow-md); display: flex; flex-direction: column; transition: transform .2s; }
.od-proj-dark:hover { transform: translateY(-2px); }
.od-proj-dark h4 { font-family: var(--od-font-display); font-weight: 600; font-size: 18px; margin: 0 0 12px; color: #fff; }
.od-proj-dark .stats { display: flex; gap: 18px; margin-bottom: 12px; }
.od-proj-dark .stats div { display: flex; flex-direction: column; }
.od-proj-dark .stats .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--neutral-400); font-weight: 700; }
.od-proj-dark .stats .v { font-family: var(--od-font-display); font-size: 20px; font-weight: 600; color: var(--olive-300); margin-top: 2px; }
.od-proj-dark .rev { font-size: 13px; line-height: 1.55; color: var(--neutral-200); font-style: italic; margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }

.od-proj-hero { position: relative; min-height: 260px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; box-shadow: var(--shadow-md); cursor: pointer; }
.od-proj-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,16,9,0) 40%, rgba(24,16,9,.85) 100%); z-index: 1; }
.od-proj-hero > * { position: relative; z-index: 2; }
.od-proj-hero .ey { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--olive-300); margin-bottom: 8px; }
.od-proj-hero h4 { font-family: var(--od-font-display); font-size: 20px; font-weight: 600; margin: 0 0 6px; color: #fff; line-height: 1.2; }
.od-proj-hero p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.85); margin: 0; }
.od-proj-hero .arrow { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 999px; background: var(--olive-400); display: flex; align-items: center; justify-content: center; color: var(--wood-900); z-index: 2; transition: transform .2s; }
.od-proj-hero:hover .arrow { transform: rotate(-45deg) scale(1.1); }

.od-proj-side { display: grid; grid-template-columns: 280px 1fr; background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s; }
.od-proj-side:hover { box-shadow: var(--shadow-md); border-color: var(--od-color-border-strong); }
.od-proj-side .side-img { min-height: 200px; position: relative; display: flex; align-items: flex-end; padding: 14px; color: #fff; }
.od-proj-side .side-img .tg { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.25); }
.od-proj-side .side-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.od-proj-side .side-body .ey { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-600); font-weight: 700; margin-bottom: 8px; }
.od-proj-side .side-body h4 { font-family: var(--od-font-display); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.od-proj-side .side-body p { font-size: 14px; line-height: 1.55; color: var(--od-color-text-secondary); margin: 0 0 12px; }
@media (max-width: 700px) { .od-proj-side { grid-template-columns: 1fr; } }

/* ---------- TABLE ---------- */
.od-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--od-color-surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.od-table th { text-align: left; padding: 14px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--od-color-text-primary); border-bottom: 2px solid var(--od-table-head-rule); background: var(--od-table-head-bg); }
.od-table td { padding: 14px 18px; border-bottom: 1px solid var(--od-table-row-rule); color: var(--od-color-text-secondary); }
.od-table tr:last-child td { border-bottom: none; }
.od-table td[data-h="gold"] { background: var(--olive-50); color: var(--olive-800); font-weight: 600; }
.od-table td[data-h="success"] { background: var(--od-color-success-surface); color: var(--od-color-success-text); font-weight: 600; }
.od-table td[data-h="error"] { background: var(--od-color-danger-surface); color: var(--od-color-danger-text); font-weight: 600; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--od-color-border); border-radius: var(--r-md); overflow: hidden; }
.spec-table > div { padding: 14px 18px; font-size: 14px; border-top: 1px solid var(--od-color-border); }
.spec-table > div:nth-child(1), .spec-table > div:nth-child(2) { border-top: 0; }
.spec-table .k { color: var(--od-color-text-muted); background: var(--od-color-bg-subtle); }
.spec-table .v { color: var(--od-color-text-primary); font-weight: 600; }

/* ---------- ACCORDION / FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--od-color-border); }
.faq-item summary { list-style: none; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 600; cursor: pointer; color: var(--od-color-text-primary); font-family: var(--od-font-body); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-outlined { font-size: 22px; color: var(--olive-500); transition: transform .2s; flex: none; }
.faq-item[open] summary .material-symbols-outlined { transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--od-color-text-secondary); max-width: 70ch; }

/* ---------- RATING ---------- */
.od-rating { display: inline-flex; align-items: center; gap: 2px; color: var(--olive-400); font-size: 16px; letter-spacing: 1px; }
.od-rating .empty { color: var(--neutral-300); }
.od-rating .count { color: var(--od-color-text-muted); font-size: 13px; margin-left: 8px; letter-spacing: 0; }

/* ---------- DOC / CERT CARD ---------- */
.doc-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--od-color-border); border-radius: var(--r-md); transition: border-color .2s, background .2s; cursor: pointer; background: var(--od-color-surface); }
.doc-card:hover { border-color: var(--olive-400); background: var(--olive-50); }
.doc-card .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--neutral-100); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-card .ico .material-symbols-outlined { color: var(--wood-700); font-size: 22px; }
.doc-card .t { font-size: 15px; font-weight: 600; color: var(--od-color-text-primary); margin-bottom: 2px; }
.doc-card .s { font-size: 12px; color: var(--od-color-text-muted); }

/* ---------- REVIEW CARD ---------- */
.review-card { background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: var(--r-lg); overflow: hidden; }
.review-card .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--od-color-border); }
.review-card .imgs .ph { aspect-ratio: 1; background: linear-gradient(135deg, var(--wood-300), var(--wood-500)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); }
.review-card .body { padding: 20px; }
.review-card .stars { color: var(--olive-400); font-size: 16px; margin-bottom: 8px; letter-spacing: 2px; }
.review-card .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--od-color-text-muted); margin-bottom: 10px; }
.review-card .who strong { color: var(--od-color-text-primary); font-size: 14px; }
.review-card p { font-size: 14px; line-height: 1.55; color: var(--od-color-text-primary); margin: 0; }

/* ---------- VIDEO CARD ---------- */
.video-card { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--wood-800); }
.video-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--wood-500), var(--wood-800)); }
.video-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--neutral-50); font-size: 64px; transition: transform .2s; }
.video-card:hover .play { transform: scale(1.1); }
.video-card .meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: var(--neutral-50); z-index: 1; }
.video-card .duration { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); color: var(--neutral-50); font-size: 12px; padding: 3px 8px; border-radius: 4px; z-index: 1; }
.video-card .ep { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-300); margin-bottom: 6px; }
.video-card .ttl { font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.bento-item { border-radius: var(--r-lg); overflow: hidden; position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; cursor: pointer; transition: transform .2s, box-shadow .2s; border: 1px solid var(--od-color-border); }
.bento-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bento-item[data-v="wide"] { grid-column: span 2; }
.bento-item[data-v="tall"] { grid-row: span 2; }
.bento-item[data-tone="olive"] { background: var(--olive-400); color: var(--wood-900); border-color: var(--olive-400); }
.bento-item[data-tone="dark"] { background: var(--od-color-surface-dark); color: var(--neutral-50); border-color: var(--od-color-surface-dark); }
.bento-item[data-tone="moss"] { background: var(--moss-700); color: var(--neutral-50); border-color: var(--moss-700); }
.bento-item[data-tone="paper"] { background: var(--neutral-50); color: var(--od-color-text-primary); }
.bento-item[data-tone="wood"] { background: var(--wood-500); color: var(--neutral-50); border-color: var(--wood-500); }
.bento-item .kick { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0.8; }
.bento-item h3 { font-family: var(--od-font-display); font-size: clamp(22px, 2.5vw, 32px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 12px 0; }
.bento-item .big-num { font-family: var(--od-font-display); font-size: clamp(48px, 6vw, 96px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.bento-item p { font-size: 14px; line-height: 1.55; opacity: 0.85; margin: 0; }
.bento-item .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: auto; }
