/*
Theme Name:   EVD7 Kadence Child
Theme URI:    https://evd7.eu
Description:  Custom child theme for EVD7 ЕООД, based on Kadence
Author:       EVD7 ЕООД
Author URI:   https://evd7.eu
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  evd7-kadence-child
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --evd7-navy:        #0a1628;
  --evd7-navy2:       #0f2040;
  --evd7-blue:        #1a56db;
  --evd7-blue-light:  #3b82f6;
  --evd7-cyan:        #06b6d4;
  --evd7-steel:       #94a3b8;
  --evd7-white:       #f8fafc;
  --evd7-off:         #e2e8f0;
  --evd7-accent:      #f59e0b;
  --global-palette1:  #1a56db;
  --global-palette2:  #06b6d4;
  --global-palette3:  #0a1628;
  --global-palette4:  #0f2040;
  --global-palette5:  #94a3b8;
  --global-palette6:  #f8fafc;
  --global-palette7:  #e2e8f0;
  --global-palette8:  #f59e0b;
  --global-palette9:  #0a1628;
}

/* ============================================================
   GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body, #page, #wrapper, .site, .site-content, #content, #primary, .site-main {
  background: var(--evd7-navy) !important;
  background-color: var(--evd7-navy) !important;
}

body {
  color: var(--evd7-white) !important;
  font-family: 'DM Sans', sans-serif !important;
  overflow-x: hidden;
}

body.content-style-unboxed .site,
.content-style-unboxed #wrapper {
  background: var(--evd7-navy) !important;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#masthead, .site-header {
  background: rgba(10,22,40,0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 999;
}

#content, .site-content { margin-top: 80px; }

.site-branding .site-title a,
.site-branding .site-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  color: var(--evd7-white) !important;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}

#site-navigation a, .main-navigation a {
  color: var(--evd7-steel) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: color 0.2s;
}
#site-navigation a:hover, .main-navigation a:hover { color: var(--evd7-white) !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  color: var(--evd7-white) !important;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem) !important; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; }
h3 { font-size: 1.2rem !important; }

p { color: var(--evd7-steel); line-height: 1.7; }
a { color: var(--evd7-blue-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--evd7-cyan); }

/* ============================================================
   INNER PAGES — PAGE TITLE BANNER
   ============================================================ */
.entry-hero,
.entry-hero.page-hero-section,
.entry-hero-container-inner,
.hero-section-overlay,
.kadence-page-title-wrap,
.entry-header,
.page-header {
  background: var(--evd7-navy2) !important;
  background-color: var(--evd7-navy2) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

h1.entry-title,
.entry-title {
  color: var(--evd7-white) !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
}

/* ============================================================
   INNER PAGES — CONTENT AREA
   ============================================================ */
article.content-bg,
article.page,
article.post,
.content-bg,
.content-wrap,
.entry-content-wrap,
.entry-content.single-content,
.entry-content,
.page-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.entry-content p,
.entry-content li,
.entry-content span,
.entry-content div,
.entry-content td,
.page-content p,
.page-content li,
.page-content span,
.page-content div {
  color: var(--evd7-off) !important;
  background: transparent !important;
  background-color: transparent !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--evd7-white) !important;
  font-family: 'Syne', sans-serif !important;
}

.entry-content a, .page-content a { color: var(--evd7-blue-light) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.evd7-btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--evd7-blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(26,86,219,0.4);
}
.evd7-btn-primary:hover {
  background: var(--evd7-blue-light) !important;
  transform: translateY(-2px);
  color: #fff !important;
}

.evd7-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06) !important;
  color: var(--evd7-white) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.evd7-btn-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
  color: var(--evd7-white) !important;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.evd7-partners {
  padding: 2.8rem 5vw;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(6,15,30,0.4);
}
.evd7-partners-label {
  font-size: 0.72rem;
  color: var(--evd7-steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.4rem;
}
.evd7-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.evd7-partner-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.evd7-partner-logo:hover { color: rgba(255,255,255,0.55); }

/* ============================================================
   SECTIONS
   ============================================================ */
.evd7-section { padding: 6rem 5vw; }
.evd7-section-dark { background: rgba(6,15,30,0.5); }

.evd7-section-label {
  font-size: 0.75rem;
  color: var(--evd7-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.evd7-section-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
  margin-bottom: 0.8rem !important;
  color: var(--evd7-white) !important;
}

.evd7-section-sub {
  color: var(--evd7-steel);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 3rem;
}

.evd7-section-inner { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.evd7-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5vw 5rem;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,86,219,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6,182,212,0.12) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(160deg, #0a1628 0%, #0f2040 100%);
  background-size: auto, auto, 60px 60px, 60px 60px, auto;
}

.evd7-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr min(440px, 38%);
  gap: 4rem;
  align-items: center;
}

.evd7-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--evd7-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
}
.evd7-hero-badge::before { content: '●'; font-size: 0.5rem; }

.evd7-hero h1 { margin-bottom: 1.4rem !important; }

.evd7-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--evd7-blue-light), var(--evd7-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.evd7-hero p.lead {
  font-size: 1.08rem;
  color: var(--evd7-steel);
  max-width: 520px;
  margin-bottom: 2.4rem;
}

.evd7-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* BIM Card */
.evd7-bim-card {
  background: rgba(15,32,64,0.85);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.evd7-bim-card-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--evd7-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.evd7-module-list { display: flex; flex-direction: column; gap: 0.7rem; }

.evd7-module-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.evd7-module-item:hover { background: rgba(26,86,219,0.15); }

.evd7-module-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.evd7-module-name { font-size: 0.85rem; font-weight: 600; color: var(--evd7-white); }
.evd7-module-tag { font-size: 0.7rem; color: var(--evd7-steel); }

.evd7-card-footer {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.evd7-card-footer span { font-size: 0.78rem; color: var(--evd7-steel); }
.evd7-card-footer .count { color: var(--evd7-cyan); font-weight: 700; font-size: 1rem; }

.evd7-live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 5px;
  animation: evd7Pulse 2s infinite;
}

/* ============================================================
   SERVICES
   ============================================================ */
.evd7-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.evd7-service-card {
  background: rgba(15,32,64,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.evd7-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26,86,219,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.evd7-service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.evd7-service-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin-bottom: 0.55rem !important;
  color: var(--evd7-white) !important;
}
.evd7-service-card p { color: var(--evd7-steel) !important; font-size: 0.88rem; line-height: 1.6; }
.evd7-service-link {
  display: inline-flex;
  gap: 0.3rem;
  margin-top: 1.1rem;
  font-size: 0.83rem;
  color: var(--evd7-blue-light) !important;
  font-weight: 500;
}

/* ============================================================
   STATS
   ============================================================ */
.evd7-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 5rem 5vw;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  max-width: 1200px;
  margin: 0 auto;
}

.evd7-stat { text-align: center; }
.evd7-stat-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--evd7-white), var(--evd7-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.evd7-stat-label { color: var(--evd7-steel); font-size: 0.83rem; margin-top: 0.35rem; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.evd7-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}

.evd7-product-card {
  background: rgba(15,32,64,0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 2.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.evd7-product-card.featured {
  background: linear-gradient(135deg, rgba(26,86,219,0.25) 0%, rgba(6,182,212,0.1) 100%);
  border-color: rgba(26,86,219,0.4);
  grid-row: span 2;
}
.evd7-product-card:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.evd7-product-badge {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.badge-blue { background: rgba(26,86,219,0.2); color: var(--evd7-blue-light); border: 1px solid rgba(26,86,219,0.3); }
.badge-cyan { background: rgba(6,182,212,0.15); color: var(--evd7-cyan); border: 1px solid rgba(6,182,212,0.3); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--evd7-accent); border: 1px solid rgba(245,158,11,0.3); }

.evd7-product-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  margin-bottom: 0.55rem !important;
  color: var(--evd7-white) !important;
}
.evd7-product-card p { color: var(--evd7-steel) !important; font-size: 0.9rem; line-height: 1.65; }

.evd7-product-features { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.evd7-product-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--evd7-off) !important; }
.evd7-product-features li::before { content: '✓'; color: var(--evd7-cyan); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   CTA
   ============================================================ */
.evd7-cta {
  padding: 7rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.evd7-cta::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.13) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.evd7-cta h2 { max-width: 620px; margin: 0 auto 0.8rem !important; }
.evd7-cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.evd7-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.evd7-contact-info p { color: var(--evd7-steel); line-height: 1.7; margin-bottom: 2rem; }

.evd7-contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--evd7-off);
  font-size: 0.95rem;
}
.evd7-contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(26,86,219,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* CF7 form */
.evd7-form { display: flex; flex-direction: column; gap: 1rem; }
.evd7-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.evd7-form-field { display: flex; flex-direction: column; gap: 0.38rem; }
.evd7-form-field label { font-size: 0.8rem; color: var(--evd7-steel); font-weight: 500; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  background: rgba(15,32,64,0.85) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  color: var(--evd7-white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  margin-bottom: 0.8rem;
}
.wpcf7 input[type="submit"] {
  background: var(--evd7-blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.9rem 2rem !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  width: 100% !important;
}
.wpcf7 input[type="submit"]:hover { background: var(--evd7-blue-light) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon, .site-footer {
  background: var(--evd7-navy) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  padding: 3rem 5vw 2rem !important;
  color: var(--evd7-steel) !important;
}
.site-footer a { color: var(--evd7-steel) !important; font-size: 0.85rem; }
.site-footer a:hover { color: var(--evd7-white) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes evd7FadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes evd7FadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes evd7Pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .evd7-hero-inner { grid-template-columns: 1fr; }
  .evd7-bim-card { display: none; }
  .evd7-products-grid { grid-template-columns: 1fr; }
  .evd7-product-card.featured { grid-row: span 1; }
}

@media (max-width: 768px) {
  .evd7-stats { grid-template-columns: repeat(2, 1fr); }
  .evd7-contact-grid { grid-template-columns: 1fr; }
  .evd7-form-row { grid-template-columns: 1fr; }
  .evd7-hero { padding: 7rem 5vw 4rem; }
}

@media (max-width: 480px) {
  .evd7-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .evd7-partners-logos { gap: 1.5rem; }
}
