/* ──────────────────────────────────────────────────────────
   aryo studio - styles.css
   Atelier für Produktdesign & Kartografie
   Ruhig, typografiegeführt, haptisch, präzise.
   ────────────────────────────────────────────────────────── */

/* ── Fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hw-paper: #FFFFFF;
  --hw-paper-warm: #FAFAFA;
  --hw-ink: #111111;
  --hw-graphite: #4A4A4A;
  --hw-stone: #7A7A7A;
  --hw-mist: #EAEAEA;
  --hw-mist-soft: #F6F6F6;

  --fg-1: var(--hw-ink);
  --fg-2: var(--hw-graphite);
  --fg-3: var(--hw-stone);
  --bg-1: var(--hw-paper);
  --bg-2: var(--hw-paper-warm);
  --bg-3: var(--hw-mist-soft);
  --rule: var(--hw-mist);

  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --t-hero: clamp(24px, 3vw, 36px);
  --t-h1: clamp(24px, 2.8vw, 34px);
  --t-h2: 22px;
  --t-h3: 17px;
  --t-body: 16px;
  --t-body-s: 14px;
  --t-meta: 12px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;

  --container-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-1);
  color: var(--fg-1);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.brand-subline {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 400;
  display: none;
}

@media (min-width: 860px) {
  .brand-subline {
    display: inline-block;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 760px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  font-size: var(--t-body-s);
  color: var(--fg-2);
}

.nav-link:hover {
  color: var(--fg-1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--t-body-s);
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: opacity var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--fg-1);
  color: var(--bg-1);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background-color: transparent;
  color: var(--fg-1);
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  border-color: var(--fg-1);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}

/* Hero Visual: Grand Scale Screwdriver Presentation on Top */
.hero-visual-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto clamp(28px, 4vw, 52px) auto;
  padding: 0 var(--gutter);
}

.hero-image-wrap {
  width: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Content (Below Visual) */
.hero-content-container {
  max-width: var(--container-max);
}

.hero-meta-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 16px;
}

.hero-title {
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin-bottom: var(--sp-2);
}

.hero-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: var(--sp-5);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px clamp(24px, 4vw, 56px);
  padding-top: var(--sp-3);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 26px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-3);
}

/* ── Section Structure ──────────────────────────────────── */
.section {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.section-highlight {
  background-color: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 680px;
  margin-top: 10px;
  line-height: 1.55;
}

/* ── Filter ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-6);
}

.filter-btn {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background-color: var(--bg-1);
  color: var(--fg-2);
  transition: all var(--dur-fast);
}

.filter-btn:hover {
  color: var(--fg-1);
  border-color: var(--fg-3);
}

.filter-btn.active {
  background-color: var(--fg-1);
  color: var(--bg-1);
  border-color: var(--fg-1);
}

/* ── Product Grid ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  border: 1px solid var(--rule);
  background-color: var(--bg-1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur-fast);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--fg-1);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-fast);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rule);
  color: var(--fg-1);
}

.card-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category {
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
}

.card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--fg-1);
}

.card-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ── Spotlight Kartografie ──────────────────────────────── */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.spotlight-media {
  border: none;
  background-color: transparent;
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: auto;
  display: block;
}

.media-caption {
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  background-color: transparent;
}

.spotlight-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.spotlight-lead {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 28px;
}

.spotlight-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-1);
  padding-top: 2px;
}

.point-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.point-desc {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Wholesale / B2B ────────────────────────────────────── */
.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .wholesale-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .wholesale-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wholesale-card {
  padding: 0;
  border: none;
  background-color: transparent;
}

.wholesale-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.wholesale-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.wholesale-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}

.wholesale-cta-box {
  background-color: transparent;
  color: var(--fg-1);
  border-top: 1px solid var(--rule);
  padding: 40px 0 0 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 760px) {
  .wholesale-cta-box {
    flex-direction: row;
    align-items: center;
  }
}

.wholesale-cta-text h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.wholesale-cta-text p {
  font-size: 14px;
  color: var(--fg-2);
  max-width: 600px;
  line-height: 1.5;
}

.wholesale-cta-actions .btn-primary {
  background-color: var(--fg-1);
  color: var(--bg-1);
}

.wholesale-cta-actions .btn-primary:hover {
  opacity: 0.85;
}

/* ── Werkstatt / Principles ─────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.principle-card {
  padding: 0;
  border: none;
  background-color: transparent;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.principle-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.principle-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ── Studio Section ──────────────────────────────────────── */
.studio-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 800px) {
  .studio-simple {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
}

.studio-text p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.studio-contact-box {
  border: none;
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.contact-val {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.5;
}

.contact-val a {
  text-decoration: underline;
}

.contact-note {
  font-size: 12px;
  color: var(--fg-3);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* ── Modal Drawer ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.45);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

.modal-drawer {
  background-color: var(--bg-1);
  width: 100%;
  max-width: 540px;
  height: 100%;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms var(--ease-out);
}

.modal-overlay.is-active .modal-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}

.drawer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-1);
  font-weight: 500;
  margin-right: 8px;
}

.drawer-cat {
  font-size: 12px;
  color: var(--fg-3);
}

.drawer-close-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
}

.drawer-close-btn:hover {
  border-color: var(--fg-1);
}

.drawer-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--bg-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: 12px;
}

.drawer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Thumbnails */
.drawer-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.drawer-thumb {
  flex: 0 0 64px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}

.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-thumb:hover {
  opacity: 0.85;
}

.drawer-thumb.active {
  opacity: 1;
  border-color: var(--fg-1);
}

.drawer-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 4px;
}

.drawer-price {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 14px;
}

.drawer-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 22px;
}

.drawer-specs-wrap {
  margin-bottom: 24px;
}

.specs-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table tr {
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  text-align: left;
  font-weight: 400;
  color: var(--fg-3);
  padding: 8px 0;
  width: 38%;
  vertical-align: top;
}

.spec-table td {
  padding: 8px 0;
  color: var(--fg-1);
  line-height: 1.45;
}

.drawer-b2b-box {
  background-color: var(--bg-3);
  border: 1px solid var(--rule);
  padding: 16px;
  margin-bottom: 14px;
}

.drawer-b2b-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.drawer-b2b-desc {
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-1);
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-sub {
  font-size: 13px;
  color: var(--fg-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--fg-2);
}

.footer-links a:hover {
  color: var(--fg-1);
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-3);
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
