/*
Theme Name: DDDTech Atelier
Theme URI: https://dddtech.nl/
Author: DDDTech
Description: Een maatwerk blokthema voor DDDTech: modern voor 3D Printing en CO2 Laseren, warm en traditioneel voor Bonsai en de Marietmolen.
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.1
Text Domain: dddtech-atelier
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, full-site-editing, custom-logo, custom-colors, wide-blocks, block-patterns
*/

:root {
  --ddd-radius-sm: 12px;
  --ddd-radius: 20px;
  --ddd-radius-lg: 30px;
  --ddd-shadow: 0 18px 50px rgba(28, 34, 32, 0.10);
  --ddd-shadow-soft: 0 10px 28px rgba(28, 34, 32, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a,
button,
.wp-element-button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
  outline: 3px solid #0A66B2;
  outline-offset: 3px;
}

.wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 31, 30, .14);
}

.wp-block-button.is-style-outline .wp-element-button {
  color: #292A28;
  border-color: #B7B9B4;
  background: transparent;
}

.dddtech-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 244, 239, .94);
  border-bottom: 1px solid rgba(41, 42, 40, .09);
  backdrop-filter: blur(14px);
}

body.admin-bar .dddtech-header { top: 32px; }

.dddtech-header-inner {
  min-height: 76px;
}

.dddtech-brand-lockup {
  min-width: max-content;
}

.dddtech-brand-lockup .wp-block-site-logo img {
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(10, 102, 178, .13);
}

.dddtech-brand-title {
  margin-bottom: 0 !important;
  letter-spacing: -.02em;
}

.dddtech-brand-tagline {
  margin-top: 0 !important;
  color: #6C716C;
  font-size: .73rem;
  letter-spacing: .04em;
}

.dddtech-header .wp-block-navigation-item__content {
  padding: .55rem .1rem;
}

.dddtech-header .wp-block-navigation-item__content:hover {
  color: #0A66B2;
}

.dddtech-hero-shell {
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #D9D6CE;
}

.dddtech-hero-shell::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,102,178,.12) 0%, rgba(10,102,178,0) 68%);
  pointer-events: none;
}

.dddtech-eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 760;
  color: #0A66B2;
}

.dddtech-hero-title {
  max-width: 760px;
  letter-spacing: -.035em;
}

.dddtech-hero-copy {
  max-width: 650px;
  color: #515653;
  font-size: clamp(1.04rem, .98rem + .28vw, 1.24rem);
}

.dddtech-hero-visual {
  min-height: 410px;
  border: 1px solid rgba(41,42,40,.10);
  border-radius: var(--ddd-radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(234,237,237,.88)),
    radial-gradient(circle at 25% 15%, rgba(10,102,178,.18), transparent 45%);
  box-shadow: var(--ddd-shadow);
  position: relative;
  overflow: hidden;
}

.dddtech-hero-visual::before,
.dddtech-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(.1px);
}

.dddtech-hero-visual::before {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -100px;
  background: rgba(94,122,77,.10);
}

.dddtech-hero-visual::after {
  width: 240px;
  height: 240px;
  right: -90px;
  top: -100px;
  background: rgba(163,90,42,.10);
}

.dddtech-hero-logo {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.dddtech-chip-row {
  position: relative;
  z-index: 2;
}

.dddtech-chip {
  margin: 0 !important;
  padding: .48rem .72rem;
  border-radius: 999px;
  border: 1px solid #D9D6CE;
  background: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 680;
  white-space: nowrap;
}

.dddtech-section {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.dddtech-section-heading {
  max-width: 720px;
}

.dddtech-section-intro {
  max-width: 760px;
  color: #626761;
}

.dddtech-card {
  height: 100%;
  border: 1px solid #D9D6CE;
  border-top-width: 6px;
  border-radius: var(--ddd-radius);
  background: #FFFFFF;
  box-shadow: var(--ddd-shadow-soft);
  overflow: hidden;
}

.dddtech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ddd-shadow);
}

.dddtech-card--tech { border-top-color: #4C6670; }
.dddtech-card--laser { border-top-color: #A35A2A; }
.dddtech-card--bonsai { border-top-color: #5E7A4D; }
.dddtech-card--molen { border-top-color: #7B5A3E; }

.dddtech-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 !important;
  border-radius: 50%;
  background: #F2F1ED;
  color: #555A56;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.dddtech-card h3 a {
  color: #292A28;
}

.dddtech-card h3 a:hover {
  color: #0A66B2;
}

.dddtech-card-copy {
  color: #60655F;
}

.dddtech-about-panel {
  border-top: 1px solid #D9D6CE;
  border-bottom: 1px solid #D9D6CE;
  background: #FFFFFF;
}

.dddtech-about-quote {
  border-left: 4px solid #0A66B2;
  padding-left: 1.35rem;
  color: #515653;
}

.dddtech-highlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--ddd-radius-lg);
  box-shadow: var(--ddd-shadow);
}

.dddtech-highlight::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 120px rgba(255,255,255,.025);
  pointer-events: none;
}

.dddtech-highlight h2,
.dddtech-highlight p,
.dddtech-highlight a {
  position: relative;
  z-index: 2;
}

.dddtech-highlight .wp-element-button {
  background: #FFFFFF;
  color: #503B2C;
}

.dddtech-post-card {
  height: 100%;
  border: 1px solid #D9D6CE;
  border-radius: var(--ddd-radius);
  background: #FFFFFF;
  overflow: hidden;
}

.dddtech-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dddtech-post-card .wp-block-post-title a {
  color: #292A28;
}

.dddtech-post-card .wp-block-post-terms a {
  font-size: .76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dddtech-category-hero {
  border-bottom: 1px solid #D9D6CE;
  background: #FFFFFF;
}

.dddtech-category-hero-inner {
  border-left: 7px solid #0A66B2;
}

.page-3d-printing .dddtech-category-hero-inner { border-left-color: #4C6670; }
.page-co2-laseren .dddtech-category-hero-inner { border-left-color: #A35A2A; }
.page-bonsai .dddtech-category-hero-inner { border-left-color: #5E7A4D; }
.page-marietmolen .dddtech-category-hero-inner { border-left-color: #7B5A3E; }

.category-3d-printing .dddtech-category-hero-inner { border-left-color: #4C6670; }
.category-co2-laseren .dddtech-category-hero-inner { border-left-color: #A35A2A; }
.category-bonsai .dddtech-category-hero-inner { border-left-color: #5E7A4D; }
.category-marietmolen .dddtech-category-hero-inner { border-left-color: #7B5A3E; }

.dddtech-content-shell {
  background: #FFFFFF;
  border: 1px solid #E0DDD5;
  border-radius: var(--ddd-radius);
  box-shadow: 0 14px 42px rgba(28,34,32,.05);
}

.dddtech-content-shell > :first-child { margin-top: 0; }
.dddtech-content-shell > :last-child { margin-bottom: 0; }

.dddtech-footer {
  margin-top: 0 !important;
  background: #292A28;
  color: #F6F4EF;
}

.dddtech-footer h2,
.dddtech-footer h3,
.dddtech-footer .wp-block-site-title a {
  color: #FFFFFF;
}

.dddtech-footer a {
  color: #E9E6DE;
}

.dddtech-footer a:hover {
  color: #FFFFFF;
}

.dddtech-footer .is-style-plain {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.dddtech-footer .is-style-plain li {
  margin-bottom: .45rem;
}

.dddtech-footer-note {
  color: #BFC2BC;
  font-size: .84rem;
}

.dddtech-footer-rule {
  border-top: 1px solid rgba(255,255,255,.14);
}

.dddtech-projects-grid .wp-block-post-template {
  gap: 1.5rem;
}

.dddtech-archive-hero {
  background: #FFFFFF;
  border-bottom: 1px solid #D9D6CE;
}

.dddtech-archive-hero-inner {
  border-left: 7px solid #0A66B2;
}

.category-3d-printing .dddtech-archive-hero-inner { border-left-color: #4C6670; }
.category-co2-laseren .dddtech-archive-hero-inner { border-left-color: #A35A2A; }
.category-bonsai .dddtech-archive-hero-inner { border-left-color: #5E7A4D; }
.category-marietmolen .dddtech-archive-hero-inner { border-left-color: #7B5A3E; }

@media (max-width: 1020px) {
  .dddtech-header .wp-block-navigation {
    --navigation-layout-justification-setting: flex-end;
  }

  .dddtech-hero-visual {
    min-height: 340px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .dddtech-header { top: 46px; }

  .dddtech-header-inner {
    min-height: 68px;
  }

  .dddtech-brand-tagline {
    display: none;
  }

  .dddtech-hero-shell .wp-block-columns {
    gap: 2.3rem;
  }

  .dddtech-hero-visual {
    min-height: 300px;
  }

  .dddtech-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

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