/*
Theme Name: DIGITALIIZED
Theme URI: https://digitaliized.com
Author: DIGITALIIZED
Author URI: https://digitaliized.com
Description: High-converting one-page theme for DIGITALIIZED — a Done-For-You AI Appointment System for local service businesses. Built for Meta ad traffic with a VSL hero, animated ticker, social proof, and multiple CTAs pointing to a booking widget.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitaliized
Tags: one-page, landing-page, business, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------- Design Tokens ---------- */
:root {
  --color-dark: #0A0F1E;
  --color-bg: #FFFFFF;
  --color-headline: #0A0F1E;
  --color-body: #2B3245;
  --color-subtext: #6B7280;
  --color-divider: #E5E7EB;
  --color-blue: #0057FF;
  --color-blue-dark: #0043CC;
  --color-green: #28C76F;
  --color-green-dark: #1FA85B;
  --color-red: #EF4444;

  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-headline); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-dark { background: var(--color-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}
.headline { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.subtext { color: var(--color-subtext); font-size: 17px; max-width: 720px; margin: 0 auto 40px; }

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-green); color: #fff !important;
  font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(40,199,111,0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-cta:hover { transform: translateY(-2px); background: var(--color-green-dark); box-shadow: 0 12px 28px rgba(40,199,111,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--color-divider);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: #fff; }
.nav.scrolled .nav-brand { color: var(--color-dark); }
.nav-brand img { height: 32px; width: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); }
.nav.scrolled .nav-links a { color: var(--color-body); }
.nav-links a:hover { color: var(--color-blue); }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; display: block; }
.nav.scrolled .nav-toggle { color: var(--color-dark); }
.nav-mobile { display: none; background: #fff; border-top: 1px solid var(--color-divider); padding: 16px 20px; }
.nav-mobile a { display: block; padding: 10px 0; color: var(--color-body); font-weight: 500; }
.nav-mobile.open { display: block; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: hsl(225, 54%, 8%); color: #fff; padding: 120px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,87,255,0.10), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--color-green); background: rgba(40,199,111,0.10);
  border: 1px solid rgba(40,199,111,0.30); margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.hero h1 span { color: var(--color-blue); }
.hero p.lead { color: rgba(255,255,255,0.65); font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; color: rgba(255,255,255,0.55); }
.video-wrap {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9;
  border: 2px solid rgba(0,87,255,0.30); box-shadow: 0 0 60px rgba(0,87,255,0.15);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

/* Ticker */
.ticker { margin-top: 48px; padding: 12px 0; background: hsla(225,54%,5%,1); border-top: 1px solid rgba(0,87,255,0.1); overflow: hidden; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 24px; font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500; }
.ticker-item::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--color-green); }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-divider); border-radius: 16px;
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: rgba(0,87,255,0.25); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--color-subtext); margin: 0; }
.card .num { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: rgba(0,87,255,0.20); display: block; margin-bottom: 6px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,87,255,0.10); color: var(--color-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ---------- Guarantee ---------- */
.guarantee {
  border: 2px solid rgba(40,199,111,0.25); background: rgba(40,199,111,0.05);
  border-radius: 20px; padding: 40px; text-align: center; margin-top: 24px;
}
.guarantee h3 { font-size: 22px; margin-bottom: 10px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, #0057FF, #0043CC); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin-bottom: 20px; }
.final-cta p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 28px; font-size: 18px; }
.final-cta .btn-cta { background: #fff; color: var(--color-green-dark) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.final-cta .btn-cta:hover { background: #f5f5f5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.5); padding: 48px 0; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; } .footer-right { text-align: right; } .footer-center { text-align: center; } }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.footer-brand img { height: 28px; width: auto; }

/* ---------- Mobile sticky bar ---------- */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--color-divider);
  padding: 12px 16px; display: flex; justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-sticky .btn-cta { width: 100%; justify-content: center; }
@media (min-width: 768px) { .mobile-sticky { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; font-size: 14px; color: var(--color-subtext); margin-bottom: 8px; }

/* ---- Logo mark before wordmark (added) ---- */
.nav-brand .brand-logo { height: 32px; width: 32px; object-fit: contain; flex-shrink: 0; display: block; }
.footer-brand .brand-logo { height: 28px; width: 28px; object-fit: contain; flex-shrink: 0; display: block; }
.video-wrap { background: #05070f center/cover no-repeat; }
@media (max-width: 480px) {
  .nav-brand .brand-logo { height: 28px; width: 28px; }
}
