/*
Theme Name: DIEL Digital
Theme URI: https://diel-digital.de
Author: DIEL Digital
Author URI: https://diel-digital.de
Description: KI-gestützte Webentwicklungs-Agentur — Blueprint Pro Theme mit Montserrat
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diel-digital
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
========================================================= */
:root {
  --dd-blue:         #1d4ed8;
  --dd-blue-dark:    #1638a8;
  --dd-blue-light:   #dbeafe;
  --dd-green:        #16a34a;
  --dd-green-dark:   #15803d;
  --dd-green-light:  #dcfce7;
  --dd-bg:           #f8fafc;
  --dd-surface:      #eff6ff;
  --dd-dark:         #0f172a;
  --dd-muted:        #475569;
  --dd-grid:         #e2e8f0;
  --dd-white:        #ffffff;
  --dd-nav-height:   72px;
}

/* =========================================================
   GLOBAL RESETS
========================================================= */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   DOT-GRID BACKGROUND TEXTURE
========================================================= */
.dot-grid-bg {
  background-image: radial-gradient(circle, var(--dd-grid) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}

/* =========================================================
   HEADER / NAV
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dd-white);
  border-bottom: 1px solid var(--dd-grid);
  min-height: var(--dd-nav-height);
  max-width: 100% !important;
}

/* Nav link styles */
.site-nav .wp-block-navigation__container {
  gap: 0.25rem;
}

.site-nav .wp-block-navigation-item__content {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dd-muted);
  padding: 0.4rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item .wp-block-navigation-item__content {
  color: var(--dd-blue);
  border-bottom-color: var(--dd-blue);
}

.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close {
  color: var(--dd-dark);
}

.site-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--dd-dark);
  text-decoration: none;
}

.logo-accent {
  color: var(--dd-blue);
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dd-green);
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 3px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--dd-bg);
  background-image: radial-gradient(circle, var(--dd-grid) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle at center, #dbeafe 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dd-blue);
  background: var(--dd-blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dd-green);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero-48h-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 13vw, 12rem);
  color: #c8d9f5;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-graphic-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--dd-blue) 0%, transparent 100%);
  border-radius: 2px;
  margin-top: 0.75rem;
}

.hero-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dd-muted);
  margin-top: 0.5rem;
  text-align: right;
}

/* =========================================================
   PROOF STRIP
========================================================= */
.proof-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dd-muted);
}

.proof-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dd-green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   SERVICE CARDS
========================================================= */
.services-section {
  background: var(--dd-white);
}

.service-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-grid);
  border-radius: 8px;
  padding: 2rem !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.12);
}

.service-icon-blue {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--dd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon-green {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--dd-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon-blue-light {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--dd-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.services-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--dd-blue) 0%, var(--dd-green) 100%);
}

/* =========================================================
   WHY SECTION (blue BG)
========================================================= */
.why-section {
  background: var(--dd-blue) !important;
  color: var(--dd-white) !important;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dd-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.why-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.about-color-block {
  background: linear-gradient(135deg, var(--dd-green) 0%, var(--dd-blue) 100%);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-color-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.about-color-block-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: rgba(255,255,255,0.15);
  letter-spacing: -0.04em;
  text-align: center;
  padding: 2rem;
  line-height: 1;
}

/* =========================================================
   PROCESS SECTION
========================================================= */
.process-section {
  background: var(--dd-surface) !important;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--dd-blue);
  color: var(--dd-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.process-card {
  background: var(--dd-white);
  border-radius: 8px;
  padding: 2rem !important;
  border-top: 4px solid var(--dd-blue);
}

.process-card:nth-child(2) {
  border-top-color: var(--dd-green);
}

.process-card:nth-child(2) .process-number {
  background: var(--dd-green);
}

/* =========================================================
   CTA BAND
========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--dd-blue) 0%, var(--dd-green) 100%) !important;
}

.cta-band .wp-block-heading,
.cta-band .wp-block-paragraph {
  color: var(--dd-white) !important;
}

.cta-band .wp-block-button__link {
  background: var(--dd-white) !important;
  color: var(--dd-blue) !important;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-band .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* =========================================================
   SECTION HEADINGS
========================================================= */
.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dd-blue);
  background: var(--dd-blue-light);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}

.section-label-green {
  color: var(--dd-green);
  background: var(--dd-green-light);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #0f172a !important;
  color: rgba(255,255,255,0.75);
  max-width: 100% !important;
}

.site-footer .wp-block-columns {
  width: 100%;
}

.site-footer p,
.site-footer h6 {
  color: inherit;
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--dd-white);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: var(--dd-blue);
  color: var(--dd-white);
}

/* =========================================================
   EQUAL-HEIGHT CARDS
========================================================= */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hover-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.12);
}

/* =========================================================
   EDITOR: keep animated content visible while editing
========================================================= */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .slide-in-right,
.editor-styles-wrapper .fade-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* =========================================================
   48H COUNTER ANIMATION
========================================================= */
.hero-counter-animate {
  font-variant-numeric: tabular-nums;
  transition: none;
}

/* =========================================================
   GLOBAL LAYOUT FIXES
========================================================= */
.wp-site-blocks {
  overflow-x: hidden;
}

/* Prevent WordPress from adding default top padding to templates */
.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .slide-in-left,
  .slide-in-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
