/*
Theme Name: Dakos Industrial
Theme URI: https://dakosautomation.gr
Author: Dakos Automation
Description: Custom industrial WordPress theme for Dakos Automation.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.2
Text Domain: dakos-industrial
*/

:root {
  --bg: #07090d;
  --bg-soft: #0d1119;
  --panel: #111722;
  --panel-2: #151d2a;
  --line: rgba(165, 183, 214, .18);
  --text: #f5f7fb;
  --muted: #98a4b8;
  --accent: #5f78ff;
  --accent-2: #8ea0ff;
  --success: #58d6aa;
  --max: 1240px;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(95, 120, 255, .15), transparent 27rem),
    linear-gradient(180deg, #080a0f 0%, #06080c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 108px 0; }
.section--tight { padding: 62px 0; }
.section--line { border-top: 1px solid var(--line); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .55fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  max-width: 800px;
  margin: 14px 0 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.03rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 13, .84);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.brand-mark-image { width: 58px; height: 50px; object-fit: cover; object-position: center; filter: drop-shadow(0 0 13px rgba(42,151,255,.32)); }
.brand-mark-image--footer { width: 72px; height: 62px; }
.brand-name { color: #f4f7ff; font-size: .9rem; letter-spacing: .08em; line-height: 1.05; white-space: nowrap; }
.brand-name b { color: #84a7ff; }
.brand-name small { display: block; margin-top: 6px; color: #77849b; font-size: .49rem; letter-spacing: .28em; }
.brand-name--footer { font-size: 1rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 160, 255, .65);
  background: linear-gradient(145deg, rgba(95, 120, 255, .26), rgba(95, 120, 255, .02));
  color: #dce2ff;
  font-size: .72rem;
  letter-spacing: .08em;
  transform: rotate(45deg);
}
.brand-mark span { transform: rotate(-45deg); }
.brand-text { line-height: 1; }
.brand-text small { display: block; margin-top: 6px; color: var(--muted); font-size: .56rem; letter-spacing: .22em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #c4cada; font-size: .83rem; font-weight: 750; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: white; }
.nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; color: white; }
.menu-button { display: none; border: 0; background: transparent; color: white; cursor: pointer; }
.mobile-call { display: none; }

.hero {
  min-height: min(800px, 100svh);
  padding: 118px 0 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .74fr); gap: 64px; align-items: center; }
.hero h1 {
  max-width: 820px;
  margin: 22px 0 26px;
  font-size: clamp(3.2rem, 6.4vw, 6.35rem);
  line-height: .88;
  letter-spacing: -.072em;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(222, 228, 255, .62); }
.hero-copy { max-width: 690px; color: #bac3d4; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: white;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(142, 160, 255, .65); }
.button--primary { border-color: transparent; background: var(--accent); box-shadow: 0 16px 44px rgba(95, 120, 255, .28); }
.button--primary:hover { background: #7187ff; }
.button-arrow { font-size: 1.1rem; }

.hero-visual { position: relative; min-height: 540px; }
.hero-frame {
  position: absolute;
  inset: 0 12% 0 7%;
  overflow: hidden;
  border: 1px solid rgba(173, 186, 220, .28);
  border-radius: 180px 18px 18px 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 7, 11, .7), transparent 45%); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-orbit {
  position: absolute;
  right: 0;
  top: 10%;
  display: grid;
  width: 144px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(9, 12, 18, .88);
  color: var(--accent-2);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-align: center;
  animation: float 5s ease-in-out infinite;
}
.hero-tag {
  position: absolute;
  left: 0;
  bottom: 48px;
  z-index: 2;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 17, .9);
  backdrop-filter: blur(14px);
}
.hero-tag strong { display: block; font-size: 1.08rem; }
.hero-tag small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
@keyframes float { 50% { transform: translateY(12px); } }

.tech-rail { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.tech-list { display: grid; grid-template-columns: repeat(6, 1fr); }
.tech-list span { padding: 22px 10px; border-right: 1px solid var(--line); color: #aeb8ca; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-align: center; }
.tech-list span:last-child { border: 0; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card {
  min-height: 305px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform .24s ease, border-color .24s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(142,160,255,.48); }
.service-no { color: var(--accent-2); font: 800 .72rem/1 monospace; letter-spacing: .12em; }
.service-card h3 { margin: 74px 0 14px; font-size: 1.35rem; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.project-card:nth-child(1), .project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.035); }
.project-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,11,.96) 0%, rgba(5,7,11,.08) 68%); }
.project-copy { position: absolute; inset: auto 28px 26px; }
.project-copy span { color: var(--accent-2); font-size: .68rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.project-copy h3 { margin: 7px 0 5px; font-size: clamp(1.45rem, 2.5vw, 2.3rem); line-height: 1; }
.project-copy p { margin: 0; color: #b5bfd0; font-size: .9rem; }

.core-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.core-copy h2 { margin: 16px 0 20px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.core-copy p { color: var(--muted); }
.control-panel {
  position: relative;
  min-height: 560px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(142,160,255,.34);
  border-radius: 5px;
  background: radial-gradient(circle at 52% 38%, rgba(95,120,255,.16), transparent 34%), #0e1420;
  box-shadow: 0 0 80px rgba(95,120,255,.09);
}
.control-panel::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 38px 38px; }
.core-status { position: relative; display: flex; justify-content: space-between; color: #9eabc2; font: 800 .7rem/1 monospace; letter-spacing: .18em; }
.core-status b { color: var(--accent-2); }
.signal-bars { position: relative; height: 250px; display: flex; align-items: end; justify-content: center; gap: 20px; padding-top: 62px; }
.signal-bars span { width: 15%; background: linear-gradient(to top, var(--accent), #93a4ff); clip-path: polygon(0 14%,100% 0,100% 100%,0 100%); box-shadow: 0 0 36px rgba(95,120,255,.36); }
.signal-bars span:nth-child(1) { height: 84%; }
.signal-bars span:nth-child(2) { height: 61%; }
.signal-bars span:nth-child(3) { height: 45%; }
.signal-bars span:nth-child(4) { height: 70%; }
.core-data { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.core-data small { color: #77839a; font-size: .67rem; }
.core-data strong { display: block; margin-top: 5px; font-size: .86rem; }
.pulse-line { position: absolute; inset: auto 0 0; display: flex; align-items: end; gap: 8px; height: 72px; padding: 0 32px; opacity: .56; }
.pulse-line i { flex: 1; height: 26%; background: #53668f; }
.pulse-line i:nth-child(4), .pulse-line i:nth-child(5) { height: 92%; background: var(--accent); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.process-step { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); }
.process-step:last-child { border: 0; }
.process-step b { color: var(--accent-2); font: 800 .72rem/1 monospace; }
.process-step h3 { margin: 70px 0 12px; font-size: 1.2rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .88rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.video-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-meta { padding: 20px 22px 23px; }
.video-meta span { color: var(--accent-2); font-size: .65rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.video-meta h3 { margin: 5px 0 0; font-size: 1.08rem; }

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: clamp(36px, 7vw, 76px);
  border: 1px solid rgba(142,160,255,.36);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(95,120,255,.15), rgba(255,255,255,.018) 55%);
}
.cta-box h2 { max-width: 800px; margin: 12px 0 0; font-size: clamp(2.3rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }

.site-footer { padding: 72px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 50px; }
.footer-intro { max-width: 480px; color: var(--muted); }
.footer-col h3 { margin: 0 0 16px; color: #dbe1ed; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin: 9px 0; color: var(--muted); }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: #707b8d; font-size: .75rem; }

.page-wrap { min-height: 70vh; padding: 150px 0 90px; }
.page-wrap h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.06em; }
.entry-content { max-width: 980px; color: #c3cad8; }
.entry-content a { color: var(--accent-2); }

@media (max-width: 1050px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 22px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); background: rgba(8,10,15,.97); }
  .nav-links.is-open { display: flex; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 34px; }
  .hero-visual { min-height: 530px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .core-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-card:last-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  body { padding-bottom: 68px; }
  .nav { min-height: 68px; }
  .brand-mark-image { width: 46px; height: 40px; }
  .brand-name { font-size: .72rem; }
  .brand-name small { font-size: .4rem; margin-top: 4px; }
  .nav-links { top: 68px; }
  .hero { min-height: auto; padding: 106px 0 46px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); }
  .hero-visual { min-height: 470px; margin-top: 20px; }
  .hero-frame { inset: 0 4% 0 4%; border-radius: 130px 16px 16px; }
  .hero-orbit { right: -4px; width: 108px; }
  .tech-list { grid-template-columns: repeat(3, 1fr); }
  .tech-list span:nth-child(3) { border-right: 0; }
  .tech-list span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service-grid, .video-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-card h3 { margin-top: 46px; }
  .project-card, .project-card:nth-child(n) { grid-column: 1 / -1; min-height: 440px; }
  .projects { grid-template-columns: 1fr; }
  .control-panel { min-height: 500px; padding: 28px; }
  .core-data { gap: 8px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step h3 { margin-top: 48px; }
  .video-card:last-child { grid-column: auto; }
  .cta-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-call {
    position: fixed;
    z-index: 80;
    inset: auto 12px 10px;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: linear-gradient(135deg, #5f78ff, #3854e8);
    box-shadow: 0 14px 38px rgba(24,42,140,.48);
    color: white;
  }
  .mobile-call span { font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
  .mobile-call strong { font-size: .98rem; }
}

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