/*
Theme Name: Davors Technologies
Theme URI: https://davorstechnologies.com
Author: Davors Technologies Ltd
Description: Company website for Davors Technologies Ltd. Pages: Home, About, Services, Products, Contact. Contact details, social links and product links are set in Appearance > Customize > Davors Technologies Settings.
Version: 2.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: Proprietary
Text Domain: davtech
*/

:root {
  --ink: #0A1626;
  --ink-2: #0F2038;
  --ink-3: #16304F;
  --navy: #14355C;
  --teal: #1FA88A;
  --teal-bright: #34D1AC;
  --teal-soft: #E6F6F1;
  --text: #1A2433;
  --muted: #5A6678;
  --muted-light: #9DB0C7;
  --paper: #FFFFFF;
  --soft: #F3F6F9;
  --line: #E1E7EE;
  --line-dark: rgba(255, 255, 255, 0.09);
  --radius: 10px;
  --max: 1200px;
  --head: 'Sora', 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker-dark { color: var(--teal); }

.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.lede-light { font-size: 1.15rem; color: var(--muted-light); line-height: 1.6; margin: 18px 0 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #18947A; }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost-light:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
}
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform 0.2s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; height: 22px; }
.brand-mark span { display: block; width: 6px; background: var(--teal-bright); border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 10px; opacity: 0.55; }
.brand-mark span:nth-child(2) { height: 16px; opacity: 0.8; }
.brand-mark span:nth-child(3) { height: 22px; }
.brand-word { font-family: var(--head); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-word b { font-weight: 700; margin-left: 5px; }
.custom-logo-link img { max-height: 44px; width: auto; display: block; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active, .nav-links .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, 0.07); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-login { color: var(--muted-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.header-login:hover { color: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; }

/* Hero */
.hero, .page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero { padding: 96px 0 110px; }
.page-hero { padding: 80px 0 88px; }
.page-hero-sm { padding: 60px 0 64px; }
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal-bright); }
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(31, 168, 138, 0.22), transparent 65%);
  pointer-events: none;
}
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-lede { font-size: 1.2rem; color: var(--muted-light); max-width: 600px; margin: 24px 0 0; line-height: 1.6; }
.page-hero h1 { max-width: 820px; }

.hero-panel {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-light);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.panel-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line-dark);
}
.panel-idx { color: var(--teal-bright); }
.panel-row strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; color: #fff; }
.panel-row small { display: block; color: var(--muted-light); font-size: 0.86rem; margin-top: 2px; }
.status {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--teal-bright);
  background: rgba(52, 209, 172, 0.1);
  border: 1px solid rgba(52, 209, 172, 0.25);
}
.panel-foot { padding: 14px 18px; color: var(--muted-light); }

.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.jump-links a .mono { color: var(--teal-bright); margin-right: 6px; }
.jump-links a:hover { border-color: var(--teal-bright); }

/* Sections */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .lede { margin-top: 18px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 120px; }

/* Service cards (home) */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { border-color: #C8D3DF; box-shadow: 0 18px 40px rgba(10, 22, 38, 0.08); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.card-idx { color: var(--teal); margin-bottom: 28px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); flex: 1; }
.card-link { font-weight: 600; color: var(--ink); margin-top: 12px; }

/* Product band */
.product-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.product-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-tile {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.product-tile .mono { color: var(--teal-bright); }
.product-tile h3 { margin: 14px 0 8px; }
.product-tile p { color: var(--muted-light); margin: 0; font-size: 0.95rem; }
.product-tile-accent { grid-column: span 2; display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; background: var(--teal); border-color: var(--teal); }
.product-tile-accent .mono, .product-tile-accent p { color: rgba(255, 255, 255, 0.9); }
.product-tile-accent h3 { margin: 0; font-size: 1.8rem; }

/* Why list */
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.why-item p { color: var(--muted); margin: 0; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.process li { padding: 0 28px 0 0; position: relative; }
.process li::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--line);
  margin-bottom: 26px;
}
.process li:first-child::before { background: linear-gradient(90deg, var(--teal) 40%, var(--line) 40%); }
.process-num { font-family: var(--mono); font-size: 0.85rem; color: var(--teal); display: block; margin-bottom: 12px; }
.process h3 { margin-bottom: 10px; }
.process p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.process-dark li::before { background: var(--line-dark); }
.process-dark li:first-child::before { background: linear-gradient(90deg, var(--teal-bright) 40%, var(--line-dark) 40%); }
.process-dark .process-num { color: var(--teal-bright); }
.process-dark p { color: var(--muted-light); }

/* Group strip */
.group-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.group-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.group-inner .mono { color: var(--teal); text-transform: uppercase; }
.group-inner p { margin: 0; color: var(--muted); flex: 1; min-width: 260px; }

/* CTA band */
.cta-band { background: var(--ink-3); padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(52, 209, 172, 0.18), transparent 45%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--muted-light); margin: 12px 0 0; max-width: 560px; }
.cta-band .btn-row { margin-top: 0; }

/* About */
.prose p { color: var(--text); font-size: 1.05rem; }
.prose h3 { margin: 36px 0 14px; font-size: 1.35rem; }
.prose-page { max-width: 820px; }
.prose-page h2 { margin: 40px 0 14px; font-size: 1.6rem; }
.prose-page a { color: var(--teal); }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { margin: 0 0 10px; }
.post-item h2 a { text-decoration: none; color: var(--ink); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: 44px 40px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--ink-2); }
.mv-card .mono { color: var(--teal-bright); text-transform: uppercase; }
.mv-card p { font-family: var(--head); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: #fff; margin: 18px 0 0; letter-spacing: -0.01em; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 30px 24px 10px 0; }
.value .mono { color: var(--teal); }
.value h3 { margin: 14px 0 10px; font-size: 1.1rem; }
.value p { color: var(--muted); font-size: 0.95rem; }

.group-cards { display: grid; gap: 20px; }
.group-card { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.group-card h3 { margin-bottom: 8px; }
.group-card p { color: var(--muted); }

/* Services page */
.service-detail { padding: 96px 0; scroll-margin-top: 80px; }
.service-row { display: grid; grid-template-columns: 90px 1.2fr 0.9fr; gap: 48px; align-items: start; }
.service-num { font-size: 2.6rem; color: var(--teal); line-height: 1; letter-spacing: -0.02em; }
.service-main h2 { margin-bottom: 18px; }
.service-main .lede { color: var(--text); opacity: 0.85; }
.suited { color: var(--muted); margin: 22px 0 30px; }
.suited strong { color: var(--ink); }
.service-gets { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.section-soft .service-gets { background: #fff; }
.service-gets h4 { font-family: var(--mono); font-weight: 500; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0 0 14px 30px; color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%231FA88A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Products page */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-card { padding: 44px 40px; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 100px; }
.product-card .tag { display: inline-block; color: var(--teal); background: var(--teal-soft); padding: 5px 10px; border-radius: 6px; text-transform: uppercase; }
.product-card h2 { margin: 20px 0 12px; font-size: 1.9rem; }
.product-card .lede { margin-bottom: 26px; }
.product-card .check-list { margin-bottom: 20px; }
.trial-band { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.trial-band .btn-row { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31, 168, 138, 0.12); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; border-radius: 8px; margin-bottom: 24px; font-weight: 500; }
.notice-ok { background: var(--teal-soft); color: #0F6B57; }
.notice-err { background: #FDECEC; color: #A12A2A; }

.contact-side { display: grid; gap: 20px; }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.contact-card h3 { margin-bottom: 18px; }
.contact-card dl { margin: 0; }
.contact-card dt { color: var(--teal); text-transform: uppercase; margin-top: 16px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; }
.contact-card dd a { text-decoration: none; font-weight: 500; }
.contact-card dd a:hover { color: var(--teal); }
.contact-card-dark { background: var(--ink); border-color: var(--ink); color: var(--muted-light); }
.contact-card-dark h3 { color: #fff; }
.contact-card-dark a { color: var(--teal-bright); }
.contact-social, .footer-social { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.contact-social a { color: var(--teal); font-weight: 600; text-decoration: none; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(0.4); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 80px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { margin: 18px 0 0; max-width: 300px; font-size: 0.95rem; }
.footer-social a { color: #fff; text-decoration: none; font-size: 0.9rem; }
.footer-social a:hover { color: var(--teal-bright); }
.footer-col h4 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: var(--muted-light); text-decoration: none; font-size: 0.93rem; margin-bottom: 10px; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 0.86rem; }
.footer-bottom a { color: var(--teal-bright); text-decoration: none; }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  z-index: 90;
}

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: none; flex-direction: column; padding: 8px 28px 24px; border-top: 1px solid var(--line-dark); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
  .nav-mobile a.active { color: var(--teal-bright); }
  .nav-mobile .btn { margin-top: 16px; border-bottom: 0; }
  .hero-inner, .product-band, .split, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 48px; }
  .split .section-head { position: static; }
  .service-cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 72px; }
  .section, .service-detail { padding: 72px 0; }
  .why-item { grid-template-columns: 1fr; gap: 8px; }
  .process { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .product-tiles { grid-template-columns: 1fr; }
  .product-tile-accent { grid-column: auto; grid-template-columns: 1fr; gap: 6px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-card, .mv-card { padding: 32px 26px; }
}
