/* ============================================================
   SYSTEMX 2026 — assets/css/main.css
   WordPress Block Theme Stylesheet
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --sx-primary:       #0066ff;
  --sx-primary-dark:  #0052cc;
  --sx-secondary:     #00a854;
  --sx-secondary-dark:#008a45;
  --sx-dark:          #1a2332;
  --sx-body:          #4b5563;
  --sx-muted:         #6b7280;
  --sx-bg:            #ffffff;
  --sx-bg-alt:        #f9fafb;
  --sx-border:        #e5e7eb;
  --sx-border-input:  #d1d5db;
  --sx-radius:        0.5rem;
  --sx-radius-lg:     0.75rem;
  --sx-radius-xl:     1rem;
  --sx-radius-2xl:    1.5rem;
  --sx-shadow-sm:     0 1px 2px 0 rgb(0 0 0 / 0.05);
  --sx-shadow:        0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --sx-shadow-md:     0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --sx-shadow-xl:     0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --sx-font-head:     'Outfit', sans-serif;
  --sx-font-body:     'DM Sans', sans-serif;
  --nav-h:            5rem;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sx-font-body);
  background: var(--sx-bg);
  color: var(--sx-dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sx-font-head);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

section { scroll-margin-top: var(--nav-h); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Utility ────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--sx-border);
  box-shadow: var(--sx-shadow-sm);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--sx-shadow-md); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.navbar-logo { display: flex; align-items: center; }
.logo-img { height: 2.5rem; width: auto; object-fit: contain; }

/* Custom logo from WP */
.navbar-logo .custom-logo-link img,
.navbar-logo .custom-logo { height: 2.5rem; width: auto; object-fit: contain; }

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .navbar-links { display: flex; } }

.nav-link {
  color: var(--sx-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--sx-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--sx-primary); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border-radius: var(--sx-radius);
  transition: background 0.2s;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger:hover { background: var(--sx-bg-alt); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--sx-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  background: var(--sx-bg);
  border-top: 1px solid var(--sx-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-menu.open {
  max-height: 400px;
  padding-block: 1.25rem;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline: 1rem;
}
.mobile-nav-link {
  color: var(--sx-dark);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--sx-primary); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sx-font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--sx-radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--sx-primary);
  color: #fff;
  padding: 0.85rem 2.25rem;
  box-shadow: 0 4px 14px rgb(0 102 255 / 0.25);
}
.btn-primary:hover {
  background: var(--sx-secondary);
  color: #fff;
  box-shadow: 0 6px 20px rgb(0 168 84 / 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.animate-up,
.animate-left,
.animate-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.animate-up    { transform: translateY(28px); }
.animate-left  { transform: translateX(-28px); }
.animate-right { transform: translateX(28px); }

.animate-up.visible,
.animate-left.visible,
.animate-right.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sx-bg);
  padding-top: var(--nav-h);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 4rem;
}
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; }
}

.hero-text {
  flex: 1;
  text-align: center;
}
@media (min-width: 1024px) { .hero-text { text-align: left; } }

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--sx-dark);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--sx-body);
  line-height: 1.625;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-inline: auto;
}
@media (min-width: 1024px) { .hero-subtitle { margin-inline: 0; } }

.hero-cta {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 32rem;
}
@media (min-width: 1024px) { .hero-image { justify-content: flex-end; } }

.hero-glow {
  position: absolute;
  inset: 0;
  background: #eff6ff;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.6;
  animation: sx-pulse-glow 4s ease-in-out infinite;
}
@keyframes sx-pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.05); }
}

.hero-logo-img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.12));
  animation: sx-float 6s ease-in-out infinite;
}
@keyframes sx-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--sx-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--sx-body);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services-section {
  padding-block: 6rem;
  background: var(--sx-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-xl);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--sx-shadow-sm);
}
.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgb(0 102 255 / 0.1), 0 8px 10px -6px rgb(0 102 255 / 0.05);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: var(--sx-radius-2xl);
  background: #eff6ff;
  color: var(--sx-primary);
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sx-dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 1rem;
  color: var(--sx-body);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   TURN-KEY SOFTWARES / PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.turnkey-section {
  padding-block: 4rem;
  background: var(--sx-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--sx-radius-xl);
  border: 1px solid var(--sx-border);
  background: var(--sx-bg);
  box-shadow: var(--sx-shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.portfolio-card:hover {
  box-shadow: var(--sx-shadow-md);
  transform: translateY(-2px);
}

.portfolio-img-wrap {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}
.portfolio-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.05); }

.portfolio-info { padding: 1.25rem; }
.portfolio-info h3 {
  font-family: var(--sx-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sx-dark);
  line-height: 1.4;
}

/* ── Portfolio accordion ── */
.port-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: none;
  border: 1px solid var(--sx-border-input);
  border-radius: var(--sx-radius);
  font-family: var(--sx-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sx-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.port-acc-btn:hover {
  background: var(--sx-bg-alt);
  border-color: var(--sx-primary);
  color: var(--sx-primary);
}
.port-acc-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--sx-muted);
}
.port-acc-btn[aria-expanded="true"] .port-acc-icon {
  transform: rotate(180deg);
}
.port-acc-btn[aria-expanded="true"] {
  border-color: var(--sx-primary);
  color: var(--sx-primary);
}

.port-acc-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0.25rem;
}
.port-acc-content.is-open {
  max-height: 300px;
  padding: 0.75rem 0.25rem 0.25rem;
}
.port-acc-content p {
  font-size: 0.9rem;
  color: var(--sx-body);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-section {
  padding-block: 6rem;
  background: var(--sx-bg-alt);
}
.about-inner {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}
.about-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--sx-body);
  line-height: 1.75;
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT / CONTACT FORM 7
   ═══════════════════════════════════════════════════════════ */
.contact-section {
  padding-block: 6rem;
  background: var(--sx-bg);
}
.contact-inner {
  max-width: 42rem;
  margin-inline: auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.cf7-wrapper { margin-top: 0; }

/* CF7 notice (plugin not active) */
.cf7-notice {
  text-align: center;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--sx-radius);
  padding: 1rem 1.5rem;
  color: #854d0e;
  font-size: 0.95rem;
}

/* ─── CF7 Form Overrides ──────────────────────────────────── */

/* Wrapper */
.wpcf7 form { display: flex; flex-direction: column; gap: 1.5rem; }

/* Labels */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 label,
.wpcf7 p > label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sx-dark);
  margin-bottom: 0.4rem;
  font-family: var(--sx-font-body);
}

/* Inputs & textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-family: var(--sx-font-body);
  font-size: 1rem;
  color: var(--sx-dark);
  background: var(--sx-bg);
  border: 1px solid var(--sx-border-input);
  border-radius: var(--sx-radius);
  padding: 0.65rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--sx-primary);
  box-shadow: 0 0 0 2px rgb(0 102 255 / 0.15);
}
.wpcf7 textarea { resize: none; min-height: 130px; }

/* Select */
.wpcf7 select { cursor: pointer; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }

/* Submit button */
.wpcf7 input[type="submit"] {
  width: 100%;
  font-family: var(--sx-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--sx-primary);
  border: none;
  border-radius: var(--sx-radius);
  padding: 1rem 2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 102 255 / 0.25);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 0.5rem;
  line-height: 1;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--sx-secondary);
  box-shadow: 0 6px 20px rgb(0 168 84 / 0.35);
  transform: translateY(-1px);
}
.wpcf7 input[type="submit"]:active { transform: translateY(0); }
.wpcf7 input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Validation messages */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 0.3rem;
}
.wpcf7-response-output {
  border-radius: var(--sx-radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  margin-top: 0.5rem !important;
}
.wpcf7-mail-sent-ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — minimal centered
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--sx-bg-alt);
  border-top: 1px solid var(--sx-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 3rem 2rem;
  gap: 1rem;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.footer-logo-wrap { display: flex; align-items: center; justify-content: center; }
.footer-logo { height: 5rem; width: auto; object-fit: contain; }
.footer-logo-wrap .custom-logo { height: 2rem; width: auto; }

.footer-tagline {
  font-size: 0.95rem;
  color: var(--sx-body);
  max-width: 450px;
  line-height: 1.55;
  margin: 0;
}

.footer-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #fff;
  font-family: var(--sx-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--sx-radius);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  margin-top: 0.25rem;
}
.footer-fb-btn:hover {
  background: #1464d0;
  transform: translateY(-1px);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--sx-border);
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.footer-copy { font-size: 0.85rem; color: var(--sx-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .container { padding-inline: 1.25rem; }
  .hero-section { padding-top: calc(var(--nav-h) + 1rem); }
  .services-section,
  .about-section,
  .contact-section { padding-block: 4rem; }
  .turnkey-section  { padding-block: 3rem; }
  .section-header   { margin-bottom: 2.5rem; }
}

/* ─── WordPress Admin Bar offset ─────────────────────────── */
.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .navbar { top: 46px; }
}
