/*
Theme Name: Dejaki Technologies
Theme URI: https://dejaki.com
Author: Dejaki Technologies
Description: A modern IT solutions theme with animated hero section, services, about, and contact sections.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bheles
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: #333; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
p { color: #555; }

/* ========== VARIABLES ========== */
:root {
  --cyan: #00c6d4;
  --teal: #00b4a0;
  --blue-dark: #0a1628;
  --blue-mid: #1a2f5e;
  --green-grad: #1db954;
  --light-bg: #f4f8fb;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
}

/* ========== HEADER / NAV ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 90px;
}

/* --- Logo area: image + brand name side by side --- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #e0e0e0;
  padding-right: 28px;
  margin-right: 24px;
  flex-shrink: 0;
  overflow: visible;
}
/* WP wraps logo in <a class="custom-logo-link"> — make it flex so it stays inline */
.nav-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  line-height: 1;
}
/* Full logo — height-based scaling only, NO width cap so it never gets cropped */
.nav-logo img,
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img {
  height: 50px !important;      /* larger height to compensate for white padding */
  width: auto !important;
  max-height: 130px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: -25px -20px !important; /* pull in the excess white padding around logo */
}
/* Brand name — single line always, no wrapping */
.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap !important;
  display: inline-block;
  flex-shrink: 0;
  line-height: 1.2;
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.95rem; color: #444; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }

/* Bigger gap between envelope icon and email address */
.nav-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #333; display: block; transition: all 0.3s; }

/* ========== HERO SECTION ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f5e 35%, #0d6e5e 65%, #1db954 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--cyan); }
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,198,212,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,198,212,0.45); }
.btn-outline {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ========== SECTION COMMONS ========== */
.section-wrap { padding: 90px 24px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #111; margin-bottom: 48px; }
.section-title span { color: var(--cyan); }

/* ========== SERVICES ========== */
#services { background: var(--light-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(0,198,212,0.08);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #111; }
.service-card p { font-size: 0.92rem; line-height: 1.65; }

/* ========== ABOUT ========== */
#about { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-title { margin-bottom: 20px; }
.about-text > p { margin-bottom: 24px; font-size: 0.97rem; }
.about-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}
.about-checklist li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.stats-box {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  background: rgba(255,255,255,0.08);
}
.stat-item:first-child { border-radius: 10px 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 10px 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 10px; }
.stat-item:last-child { border-radius: 0 0 10px 0; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 6px; }

/* ========== CONTACT ========== */
#contact { background: var(--light-bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { margin-bottom: 28px; font-size: 0.97rem; }
.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.contact-email-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-email-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-email span { font-size: 0.85rem; color: #888; display: block; }
.contact-email a { color: var(--cyan); font-weight: 600; font-size: 0.97rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #dde4ee;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  color: #333;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.contact-form button:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-form button svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ========== FOOTER ========== */
#site-footer { background: #0d1a2e; color: rgba(255,255,255,0.7); padding: 60px 24px 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img,
.footer-brand .custom-logo,
.footer-brand .custom-logo-link img {
  height: 100px !important;      /* larger to compensate for padding */
  width: auto !important;
  max-height: 100px !important;
  max-width: none !important;
  margin: -18px -15px !important; /* pull in white padding */
  object-fit: contain;
  display: block;
}
.footer-brand-name { color: var(--cyan); font-weight: 700; font-size: 1.05rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
}
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 2; flex-shrink: 0; display: inline-block !important; vertical-align: middle; }
.footer-bottom { text-align: center; font-size: 0.83rem; color: rgba(255,255,255,0.4); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-contact { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 20px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 999; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .stats-box { grid-template-columns: 1fr 1fr; }
}

/* ========== CONTACT FORM ALWAYS VISIBLE ========== */
/* Prevent scroll-reveal from hiding the form or button */
.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form button,
#sendMailBtn {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
