/*
Theme Name: Tideneo Research Catalog
Theme URI: https://www.tideneo.com/
Author: Tideneo
Description: Documentation-first research materials catalog theme.
Version: 0.3.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: tideneo-theme
*/

:root {
  --td-ink: #0b1c39;
  --td-ink-soft: #263b59;
  --td-muted: #637288;
  --td-teal: #087b80;
  --td-teal-dark: #075e54;
  --td-bg: #f5f8fa;
  --td-panel: #edf3f6;
  --td-line: #d8e1e8;
  --td-white: #fff;
  --td-radius: 4px;
  --td-shell: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--td-ink); background: var(--td-white); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--td-teal); }
img { max-width: 100%; height: auto; }
.td-shell { width: var(--td-shell); margin: 0 auto; }
.td-skip { position: absolute; left: -9999px; }
.td-skip:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 12px; background: #fff; }
.td-topbar { background: var(--td-ink); color: #dce8f0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.td-topbar .td-shell { display: flex; justify-content: space-between; gap: 20px; min-height: 34px; align-items: center; }
.td-topbar span { opacity: .9; }
.td-header { border-bottom: 1px solid var(--td-line); background: rgba(255,255,255,.96); }
.td-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 28px; }
.td-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--td-ink); font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.td-brand-logo { display: block; width: 108px; height: 52px; object-fit: contain; object-position: left center; }
.td-logo-mark { width: 25px; height: 25px; border: 2px solid var(--td-teal); border-radius: 50%; display: inline-grid; place-items: center; color: var(--td-teal); font-size: 12px; }
.td-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; color: var(--td-ink-soft); font-size: 13px; }
.td-nav a { padding: 8px 0; }
.td-nav-cta { padding: 9px 14px !important; color: #fff !important; background: var(--td-teal); border-radius: 3px; }
.td-menu { display: none; border: 1px solid var(--td-line); background: #fff; padding: 8px 11px; }
.td-hero { background: linear-gradient(110deg, #f4f8fa 0%, #fff 53%, #e9f6f6 100%); border-bottom: 1px solid var(--td-line); }
.td-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 590px; align-items: center; gap: 50px; }
.td-eyebrow { color: var(--td-teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.td-hero h1 { margin: 12px 0 18px; max-width: 620px; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.td-hero-copy p { max-width: 540px; color: var(--td-muted); font-size: 17px; }
.td-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; }
.td-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--td-teal); border-radius: 3px; color: #fff; background: var(--td-teal); font-size: 13px; font-weight: 700; }
.td-button.alt { color: var(--td-ink); background: transparent; border-color: #a9b7c8; }
.td-hero-art { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.td-hero-art::before { content: ""; position: absolute; width: min(92%, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(216,233,243,.55) 0 20%, transparent 21%), linear-gradient(135deg, rgba(216,232,238,.75), rgba(255,255,255,.2)); box-shadow: 0 28px 65px rgba(11,28,57,.08); }
.td-hero-orbit { position: relative; z-index: 1; width: min(94%, 520px); aspect-ratio: 1; display: grid; place-items: center; }
.td-hero-cutout { position: relative; z-index: 2; width: min(54%, 250px); max-height: 330px; object-fit: contain; filter: drop-shadow(16px 22px 18px rgba(11,28,57,.18)); transform: rotate(7deg); }
.td-orbit-line { position: absolute; width: 84%; aspect-ratio: 1; border: 1px solid rgba(8,123,128,.42); border-radius: 50%; transform: rotate(-18deg); }
.td-orbit-dot { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%; background: var(--td-teal); box-shadow: 0 0 0 8px rgba(8,123,128,.12); }
.td-orbit-dot.dot-one { top: 17%; right: 10%; }
.td-orbit-dot.dot-two { bottom: 17%; left: 12%; background: #0b1c39; box-shadow: 0 0 0 8px rgba(11,28,57,.1); }
.td-vial { position: relative; width: 180px; height: 255px; border: 2px solid #b9c8d4; border-radius: 28px 28px 12px 12px; background: linear-gradient(90deg, #edf3f6, #fff 45%, #d8e1e8); box-shadow: 16px 20px 24px rgba(11,28,57,.14); transform: rotate(7deg); display: grid; place-items: center; }
.td-vial::before { content: ""; position: absolute; top: -68px; width: 118px; height: 72px; border-radius: 12px 12px 6px 6px; background: linear-gradient(90deg, #b9c8d4, #f5f8fa 45%, #8393a5); border: 2px solid #8393a5; }
.td-vial-label { width: 132px; padding: 18px 10px; border-top: 3px solid var(--td-teal); background: rgba(255,255,255,.86); font-size: 10px; line-height: 1.3; text-align: center; }
.td-vial-label strong { display: block; color: var(--td-teal); font-size: 18px; }
.td-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.td-stat { padding: 13px 14px; border-top: 1px solid var(--td-line); color: var(--td-muted); font-size: 12px; }
.td-stat strong { display: block; color: var(--td-ink); font-size: 15px; }
.td-section { padding: 92px 0; }
.td-section.alt { background: var(--td-bg); }
.td-section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.td-section h2 { margin: 7px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.td-section-intro { max-width: 520px; color: var(--td-muted); }
.td-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line); }
.td-trust-item { padding: 26px; border-right: 1px solid var(--td-line); }
.td-trust-item:last-child { border-right: 0; }
.td-trust-item h3 { margin: 0 0 8px; font-size: 18px; }
.td-trust-item p { margin: 0; color: var(--td-muted); font-size: 13px; }
.td-category-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.td-chip { padding: 6px 10px; border: 1px solid var(--td-line); border-radius: 3px; background: #fff; color: var(--td-muted); font-size: 12px; }
.td-chip.active { color: #fff; border-color: var(--td-teal); background: var(--td-teal); }
.td-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.td-card { display: flex; flex-direction: column; min-height: 360px; padding: 17px; border: 1px solid var(--td-line); background: #fff; box-shadow: 0 4px 15px rgba(11,28,57,.04); }
.td-card-code { color: var(--td-teal); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.td-card-art { display: grid; place-items: center; height: 140px; margin: 8px 0 13px; background: var(--td-panel); }
.td-mini-vial { width: 45px; height: 72px; border: 1px solid #a9b7c8; border-radius: 8px 8px 4px 4px; background: linear-gradient(90deg,#edf3f6,#fff,#d8e1e8); position: relative; }
.td-mini-vial::before { content: ""; position: absolute; left: 7px; right: 7px; top: -18px; height: 18px; border-radius: 4px 4px 1px 1px; background: #9aa9b9; }
.td-card h3 { margin: 0 0 2px; font-size: 17px; }
.td-card-meta { margin: 0 0 13px; color: var(--td-muted); font-size: 12px; }
.td-card-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.td-card-specs span { padding: 4px 6px; background: var(--td-bg); color: var(--td-ink-soft); font-size: 10px; }
.td-card-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--td-line); }
.td-price { color: var(--td-teal-dark); font-weight: 800; font-size: 14px; }
.td-small-button { padding: 7px 9px; border: 1px solid var(--td-teal); color: var(--td-teal-dark); font-size: 11px; font-weight: 700; }
.td-process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line); }
.td-step { padding: 25px 22px; border-right: 1px solid var(--td-line); }
.td-step:last-child { border-right: 0; }
.td-step-number { color: var(--td-teal); font-size: 12px; font-weight: 800; }
.td-step h3 { margin: 8px 0; font-size: 17px; }
.td-step p { margin: 0; color: var(--td-muted); font-size: 13px; }
.td-logistics { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.td-map { min-height: 310px; border: 1px solid var(--td-line); background: linear-gradient(145deg, #eef8f7, #fff); position: relative; overflow: hidden; display: grid; place-items: center; }
.td-map::before { content: none; }
.td-section-image { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: contain; filter: drop-shadow(14px 18px 16px rgba(11,28,57,.13)); }
.td-documentation-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.td-documentation-art { min-height: 280px; display: grid; place-items: center; padding: 20px; border: 1px solid var(--td-line); background: linear-gradient(145deg, #f7fbfc, #fff); }
.td-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.td-faq details { border: 1px solid var(--td-line); padding: 15px 17px; background: #fff; }
.td-faq summary { cursor: pointer; color: var(--td-ink); font-weight: 700; }
.td-faq p { margin: 12px 0 0; color: var(--td-muted); font-size: 13px; }
.td-contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.td-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px; border: 1px solid var(--td-line); background: #fff; }
.td-form label { display: grid; gap: 5px; color: var(--td-muted); font-size: 12px; }
.td-form input,.td-form select,.td-form textarea { width: 100%; border: 1px solid var(--td-line); padding: 10px 11px; font: inherit; }
.td-form textarea,.td-form .full { grid-column: 1 / -1; }
.td-form button { grid-column: 1 / -1; }
.td-footer { padding: 50px 0 20px; background: var(--td-ink); color: #dce8f0; }
.td-footer .td-brand-logo { width: 132px; height: 58px; padding: 6px; background: #fff; border-radius: 3px; }
.td-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.td-footer h3 { margin: 0 0 12px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.td-footer a,.td-footer p { display: block; margin: 5px 0; color: #b9c8d4; font-size: 12px; }
.td-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 45px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); color: #8fa2b4; font-size: 11px; }
.td-page { padding: 70px 0; background: var(--td-bg); min-height: 70vh; }
.td-page-head { max-width: 820px; margin-bottom: 35px; }
.td-page-head h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.td-directory-search { display: grid; grid-template-columns: minmax(220px, 1fr) 220px auto auto; gap: 10px; align-items: end; margin: 0 0 28px; padding: 16px; border: 1px solid var(--td-line); background: #fff; }
.td-card-image { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 2px; }
.td-directory-search input,.td-directory-search select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; color: var(--td-ink); }
.td-result-count { margin: 0 0 14px; color: var(--td-muted); font-size: 12px; }
.td-directory { display: grid; grid-template-columns: 230px 1fr; gap: 30px; }
.td-filter { align-self: start; padding: 18px; border: 1px solid var(--td-line); background: #fff; }
.td-filter h3 { margin-top: 0; font-size: 14px; }
.td-filter a { display: block; padding: 6px 0; color: var(--td-muted); font-size: 12px; }
.td-spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.td-spec-table th,.td-spec-table td { padding: 12px 13px; border: 1px solid var(--td-line); text-align: left; font-size: 13px; }
.td-spec-table th { color: var(--td-muted); background: var(--td-panel); font-weight: 700; }
.td-quote-list { display: grid; gap: 12px; }
.td-quote-item { display: grid; grid-template-columns: 1fr 120px 90px; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--td-line); background: #fff; }
.td-quote-form { max-width: 760px; }
@media (max-width: 900px) {
  :root { --td-shell: min(100% - 30px, 680px); }
  .td-nav { display: none; position: absolute; left: 15px; right: 15px; top: 69px; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 15px; border: 1px solid var(--td-line); background: #fff; box-shadow: 0 12px 30px rgba(11,28,57,.12); }
  .td-nav.is-open { display: flex; }
  .td-nav a { border-bottom: 1px solid var(--td-line); }
  .td-menu { display: block; }
  .td-header-inner { min-height: 69px; }
  .td-hero-grid,.td-logistics,.td-contact { grid-template-columns: 1fr; gap: 25px; }
  .td-documentation-grid { grid-template-columns: 1fr; }
  .td-hero-grid { padding: 65px 0 50px; }
  .td-hero-art { min-height: 330px; }
  .td-hero-cutout { width: 48%; }
  .td-stats { grid-template-columns: repeat(2, 1fr); }
  .td-products { grid-template-columns: repeat(2, 1fr); }
  .td-trust-grid,.td-process { grid-template-columns: 1fr; }
  .td-trust-item,.td-step { border-right: 0; border-bottom: 1px solid var(--td-line); }
  .td-trust-item:last-child,.td-step:last-child { border-bottom: 0; }
  .td-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .td-directory { grid-template-columns: 1fr; }
  .td-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .td-filter h3 { width: 100%; margin-bottom: 0; }
  .td-filter a { padding: 3px 9px; border: 1px solid var(--td-line); }
}
@media (max-width: 520px) {
  .td-directory-search { grid-template-columns: 1fr; }
  .td-topbar .td-shell { min-height: 42px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; }
  .td-section { padding: 60px 0; }
  .td-section-head { display: block; }
  .td-products { grid-template-columns: 1fr; }
  .td-faq { grid-template-columns: 1fr; }
  .td-form { grid-template-columns: 1fr; }
  .td-form textarea,.td-form .full,.td-form button { grid-column: auto; }
  .td-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .td-footer-grid > :first-child { grid-column: 1 / -1; }
  .td-footer-bottom { display: block; }
  .td-footer-bottom span { display: block; margin-top: 5px; }
  .td-quote-item { grid-template-columns: 1fr; }
}
