/*
Theme Name: Autonomous Display Technology
Theme URI: https://autonomousdisplaysystems.nl
Author: Autonomous Display Technology BV
Description: A bright, minimal Full Site Editing theme for Autonomous Display Technology. Includes an editable one-page homepage, Gutenberg patterns, responsive navigation and bundled product imagery.
Requires at least: 6.4
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autonomous-display-technology
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo, featured-images
*/

:root {
  --adt-ink: #171c20;
  --adt-muted: #647078;
  --adt-cyan: #00b9e8;
  --adt-cyan-dark: #008db4;
  --adt-canvas: #fbfaf7;
  --adt-ivory: #f7f6f2;
  --adt-line: #dfe4e6;
  --adt-footer: #141c21;
  --adt-shadow: 0 24px 70px rgba(25, 34, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--adt-canvas);
  color: var(--adt-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.adt-site-header {
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(223, 228, 230, 0.75);
  position: relative;
  z-index: 20;
}

.adt-header-inner {
  min-height: 92px;
  padding-left: var(--wp--preset--spacing--50);
  padding-right: var(--wp--preset--spacing--50);
}

.adt-brand {
  gap: 14px !important;
}

.adt-brand-mark,
.adt-brand-name {
  margin: 0;
}

.adt-brand-mark {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.11em;
  line-height: 0.85;
}

.adt-brand-mark a {
  color: #4f575c;
  text-decoration: none;
}

.adt-brand-name {
  color: #4f575c;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  max-width: 145px;
}

.adt-nav .wp-block-navigation-item__content {
  color: var(--adt-ink);
  font-size: 0.84rem;
  padding: 0.55rem 0;
  text-decoration: none;
}

.adt-nav .wp-block-navigation-item__content:hover,
.adt-nav .wp-block-navigation-item__content:focus {
  color: var(--adt-cyan-dark);
}

.adt-hero {
  background-position: center center;
  min-height: min(720px, calc(100vh - 92px));
  overflow: hidden;
}

.adt-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.adt-hero-copy {
  max-width: 520px;
  padding: clamp(3rem, 7vw, 7rem) var(--wp--preset--spacing--50);
}

.adt-hero h1 {
  color: var(--adt-ink) !important;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 520px;
}

.adt-hero-subtitle {
  color: #39434a;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.55;
  max-width: 430px;
}

.wp-block-button__link {
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--adt-cyan-dark) !important;
  box-shadow: 0 12px 30px rgba(0, 185, 232, 0.22);
  transform: translateY(-1px);
}

.adt-section {
  padding-bottom: clamp(4rem, 7vw, 7rem);
  padding-top: clamp(4rem, 7vw, 7rem);
}

.adt-section--tight {
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
}

.adt-eyebrow {
  color: var(--adt-cyan-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.adt-values {
  border-bottom: 1px solid var(--adt-line);
  border-top: 1px solid var(--adt-line);
}

.adt-value-card {
  border-right: 1px solid var(--adt-line);
  min-height: 220px;
  padding: 1rem clamp(1rem, 2.4vw, 2.5rem);
}

.adt-value-card:first-child {
  padding-left: 0;
}

.adt-value-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.adt-icon {
  height: 34px;
  margin-bottom: 1.5rem;
  object-fit: contain;
  object-position: left center;
  width: 34px;
}

.adt-icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.adt-card-title {
  font-size: 1.03rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.adt-card-copy,
.adt-small-copy {
  color: var(--adt-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.adt-product-section {
  background: var(--adt-ivory);
  overflow: hidden;
}

.adt-product-image img {
  display: block;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  width: 100%;
}

.adt-product-copy {
  max-width: 560px;
}

.adt-product-copy h2,
.adt-cta h2 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.adt-specs {
  border-top: 1px solid var(--adt-line);
  margin-top: 2rem;
}

.adt-specs table {
  border-collapse: collapse;
  width: 100%;
}

.adt-specs td {
  border: 0;
  color: #3d474e;
  font-size: 0.88rem;
  padding: 0.52rem 0;
  vertical-align: top;
}

.adt-specs td:first-child {
  color: var(--adt-muted);
  padding-right: 1.5rem;
  width: 40%;
}

.adt-process {
  border-bottom: 1px solid var(--adt-line);
  border-top: 1px solid var(--adt-line);
}

.adt-process-card {
  border-right: 1px solid var(--adt-line);
  min-height: 235px;
  padding: 0.5rem clamp(1rem, 2vw, 2rem);
  position: relative;
}

.adt-process-card:last-child {
  border-right: 0;
}

.adt-process-card:not(:last-child)::after {
  color: var(--adt-cyan);
  content: "→";
  font-size: 1.6rem;
  position: absolute;
  right: -0.75rem;
  top: 2.6rem;
  z-index: 3;
}

.adt-process-card .adt-icon {
  height: 54px;
  width: 54px;
}

.adt-impact-card {
  border-right: 1px solid var(--adt-line);
  min-height: 150px;
  padding: 0 clamp(1rem, 2vw, 2.2rem);
}

.adt-impact-card:first-child {
  padding-left: 0;
}

.adt-impact-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.adt-impact-head {
  align-items: center;
  gap: 0.85rem !important;
  margin-bottom: 1rem;
}

.adt-impact-head .adt-icon {
  flex: 0 0 34px;
  margin-bottom: 0;
}

.adt-impact-value {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 0;
}

.adt-impact-value--text {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.adt-cta {
  background: var(--adt-ivory);
  border-top: 1px solid var(--adt-line);
  max-height: 360px;
  overflow: hidden;
}

.adt-cta-copy {
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.adt-cta-product img {
  display: block;
  margin: -45% auto 0;
  max-width: 520px;
  width: 100%;
}

.adt-site-footer {
  background: var(--adt-footer);
  border-top: 3px solid var(--adt-cyan);
  color: #f7f9fa;
  padding-bottom: 2.25rem;
  padding-top: 2.25rem;
}

.adt-site-footer p {
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.adt-site-footer .adt-brand-mark,
.adt-site-footer .adt-brand-mark a {
  color: #f7f9fa;
}

.adt-site-footer a {
  color: var(--adt-cyan);
}

.adt-footer-label {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 650;
}

.adt-footer-copy {
  color: #d3dade;
  font-size: 0.86rem;
  line-height: 1.55;
}

.adt-content-shell {
  padding-bottom: 5rem;
  padding-top: 4rem;
}

.adt-post-card {
  border-bottom: 1px solid var(--adt-line);
  padding-bottom: 2rem;
}

@media (max-width: 960px) {
  .adt-header-inner {
    min-height: 78px;
  }

  .adt-brand-name {
    display: none;
  }

  .adt-hero {
    background-position: 64% center;
    min-height: 680px;
  }

  .adt-hero::before {
    background: linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.88) 43%, rgba(251, 250, 247, 0.1) 74%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
  }

  .adt-value-card,
  .adt-process-card,
  .adt-impact-card {
    border-bottom: 1px solid var(--adt-line);
    border-right: 0;
    min-height: 0;
    padding: 1.5rem 0;
  }

  .adt-value-card:last-child,
  .adt-process-card:last-child,
  .adt-impact-card:last-child {
    border-bottom: 0;
  }

  .adt-process-card:not(:last-child)::after {
    display: none;
  }

  .adt-cta {
    max-height: none;
  }

  .adt-cta-product img {
    margin-top: -25%;
  }
}

@media (max-width: 700px) {
  body.admin-bar .adt-site-header {
    top: 46px;
  }

  .adt-header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .adt-brand-mark {
    font-size: 2rem;
  }

  .adt-hero {
    align-items: flex-start !important;
    background-position: 69% center;
    min-height: 720px;
  }

  .adt-hero::before {
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.99) 0%, rgba(251, 250, 247, 0.93) 44%, rgba(251, 250, 247, 0.18) 72%);
  }

  .adt-hero-copy {
    max-width: 100%;
    padding: 4rem 1.25rem 2rem;
  }

  .adt-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem) !important;
    max-width: 8ch;
  }

  .adt-section,
  .adt-section--tight {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .adt-product-image img {
    max-height: 540px;
  }

  .adt-specs td {
    display: block;
    width: 100% !important;
  }

  .adt-specs td:first-child {
    padding-bottom: 0.08rem;
  }

  .adt-specs td:last-child {
    padding-top: 0.08rem;
  }

  .adt-site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .adt-site-footer .wp-block-columns {
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wp-block-button__link {
    transition: none;
  }
}
