/*
Theme Name: Avison Technologies
Theme URI: https://avisontechnologies.com
Author: Avison Technologies LLC
Author URI: https://avisontechnologies.com
Description: Custom WordPress theme for Avison Technologies – a Dallas-based startup building AI-powered software solutions.
Version: 2.0.0
License: Proprietary
Text Domain: avison-technologies
*/

/* ========================= RESET & BASE ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #020617;
  --bg2: #050d24;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.07);
  --text: #f1f5f9;
  --muted: #64748b;
  --muted2: #94a3b8;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --grad: linear-gradient(135deg, #00b4ff, #1a3ab8);
  --grad-text: linear-gradient(135deg, #60a5fa, #a78bfa);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --nav-h: 68px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body.admin-bar .avison-nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .avison-nav { top: 46px; } }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ========================= UTILITIES ========================= */
.glass { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); }
.grad-bg { background: var(--grad); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .2s ease; font-family: var(--font-body); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .87; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(59,130,246,.3); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-white { background: #fff; color: #1d4ed8; font-weight: 700; }
.btn-white:hover { background: #eff6ff; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px; display: block; }
.section-head { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--muted2); max-width: 520px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========================= ANIMATIONS ========================= */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
@keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(-8px); } }
.fade-up { opacity:0; animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay:.15s; }
.delay-2 { animation-delay:.3s; }
.delay-3 { animation-delay:.45s; }
.reveal { opacity:0; transform:translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ========================= NAVBAR ========================= */
.avison-nav { position: fixed; top:0; left:0; right:0; z-index:100; height: var(--nav-h); background: rgba(2,6,23,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-inner { max-width:1200px; margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; gap:10px; }
.nav-logo-icon { width:38px; height:38px; border-radius:9px; background: var(--grad); display:flex; align-items:center; justify-content:center; font-family: var(--font-head); font-weight:800; font-size:20px; color:#fff; flex-shrink:0; }
.nav-logo-text .name { font-family:var(--font-head); font-weight:800; font-size:17px; letter-spacing:.06em; color:#fff; }
.nav-logo-text .sub { font-size:10px; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:var(--blue-light); }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-link { padding:8px 14px; border-radius:9px; font-size:14px; font-weight:500; color:var(--muted2); transition:all .2s; border:none; background:none; cursor:pointer; }
.nav-link:hover { color:#fff; background:rgba(255,255,255,.06); }
.nav-link.active { color:var(--blue-light); background:rgba(59,130,246,.1); }
.nav-cta { margin-left:12px; padding:9px 18px; border-radius:9px; background:var(--grad); color:#fff; font-size:13px; font-weight:600; border:none; transition:opacity .2s; cursor:pointer; }
.nav-cta:hover { opacity:.85; }
.nav-hamburger { display:none; background:none; border:none; color:var(--muted2); padding:6px; cursor:pointer; }
.nav-hamburger:hover { color:#fff; }
.mobile-menu { display:none; position:fixed; top:var(--nav-h); left:0; right:0; z-index:99; background:rgba(2,6,23,.97); backdrop-filter:blur(20px); border-bottom:1px solid var(--border); padding:12px 24px 20px; }
.mobile-menu.open { display:block; }
.mobile-menu a { display:block; padding:12px 16px; border-radius:9px; font-weight:500; color:var(--muted2); }
.mobile-menu a:hover { color:#fff; background:rgba(255,255,255,.06); }
.mobile-menu a.active { color:var(--blue-light); }

/* ========================= PAGES ========================= */
.avison-page { display:none; padding-top:var(--nav-h); }
.avison-page.active { display:block; }

/* ========================= HERO ========================= */
.hero { min-height:100vh; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; text-align:center; }
.hero-glow { position:absolute; inset:0; pointer-events:none; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59,130,246,.12) 0%, transparent 70%); }
.hero-orb { position:absolute; top:35%; left:50%; width:520px; height:520px; border-radius:50%; background:rgba(59,130,246,.07); filter:blur(100px); transform:translateX(-50%) translateY(-50%); pointer-events:none; }
.hero-grid { position:absolute; inset:0; pointer-events:none; opacity:.025; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position:relative; z-index:2; max-width:860px; margin:0 auto; padding:0 24px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 18px; border-radius:99px; margin-bottom:32px; background:rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.2); font-size:12px; font-weight:600; color:var(--blue-light); letter-spacing:.04em; }
.hero-badge-dot { width:6px; height:6px; border-radius:50%; background:var(--blue-light); animation:pulse 2s infinite; }
.hero h1 { font-size:clamp(2.6rem,8vw,5rem); font-weight:800; margin-bottom:20px; line-height:1.1; }
.hero p { font-size:clamp(1rem,2vw,1.15rem); color:var(--muted2); max-width:560px; margin:0 auto 36px; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero-stats { margin-top:72px; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:620px; margin-left:auto; margin-right:auto; }
.stat-item { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:18px 12px; }
.stat-val { font-family:var(--font-head); font-size:1.8rem; font-weight:800; }
.stat-lbl { font-size:11px; color:var(--muted); margin-top:4px; }
.scroll-hint { position:absolute; bottom:28px; left:50%; color:var(--muted); animation:bounce 2s infinite; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:12px; }
.scroll-hint svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; }

/* ========================= HOME SECTIONS ========================= */
.section-head-block { text-align:center; margin-bottom:52px; }
.home-services-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.hs-card { border-radius:var(--radius); padding:32px 28px; border:1px solid var(--border); background:var(--surface); transition:transform .25s ease, box-shadow .25s ease; }
.hs-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,.3); }
.hs-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:10px; }
.hs-card p { color:var(--muted2); font-size:.9rem; line-height:1.65; }
.service-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.service-icon svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.8; }
.featured-cases { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.fc-card { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:var(--surface); transition:transform .25s ease, box-shadow .25s ease; }
.fc-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,.3); }
.fc-card-img { height:180px; overflow:hidden; }
.fc-card-img img { width:100%; height:100%; object-fit:cover; opacity:.5; transition:opacity .3s; }
.fc-card:hover .fc-card-img img { opacity:.7; }
.fc-card-body { padding:24px; }
.fc-card-body h3 { font-size:1rem; font-weight:700; margin:10px 0 8px; line-height:1.3; }
.fc-card-body p { color:var(--muted2); font-size:.85rem; line-height:1.6; margin-bottom:14px; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:60px; }
.testimonial-card { border-radius:var(--radius); padding:28px; background:var(--surface); border:1px solid var(--border); }
.stars { display:flex; gap:3px; margin-bottom:14px; }
.star { width:15px; height:15px; fill:#facc15; }
.testimonial-text { font-size:.88rem; color:var(--muted2); line-height:1.7; margin-bottom:20px; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.author-avatar { width:40px; height:40px; border-radius:50%; background:var(--grad); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
.author-name { font-size:.88rem; font-weight:600; }
.author-role { font-size:.78rem; color:var(--muted); }
.cta-banner { border-radius:24px; padding:72px 40px; text-align:center; background:var(--grad); position:relative; overflow:hidden; }
.cta-grid-overlay { position:absolute; inset:0; opacity:.08; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size:40px 40px; }
.cta-banner h2 { font-size:clamp(1.8rem,4vw,2.8rem); font-weight:800; color:#fff; margin-bottom:16px; position:relative; }
.cta-banner p { color:rgba(219,234,254,.85); max-width:480px; margin:0 auto 36px; font-size:1.05rem; position:relative; }

/* ========================= SERVICES PAGE ========================= */
.page-hero { padding:96px 24px 64px; text-align:center; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59,130,246,.1) 0%, transparent 70%); }
.page-hero h1 { font-size:clamp(2.4rem,6vw,4rem); font-weight:800; margin-bottom:16px; }
.page-hero p { color:var(--muted2); max-width:540px; margin:0 auto; font-size:1.05rem; }
.service-detail { border-radius:20px; overflow:hidden; border:1px solid var(--border); margin-bottom:28px; }
.service-detail-inner { display:flex; }
.service-detail-img { width:45%; flex-shrink:0; }
.service-detail-img img { width:100%; height:100%; object-fit:cover; opacity:.5; }
.service-detail-body { padding:40px 48px; display:flex; flex-direction:column; justify-content:center; }
.service-detail-body h2 { font-size:1.7rem; font-weight:800; margin-bottom:8px; }
.service-tagline { color:var(--blue-light); font-weight:600; margin-bottom:16px; font-size:.95rem; }
.service-detail-body > p { color:var(--muted2); font-size:.9rem; margin-bottom:20px; line-height:1.7; }
.feature-list { list-style:none; display:flex; flex-direction:column; gap:8px; }
.feature-list li { display:flex; align-items:flex-start; gap:8px; font-size:.88rem; color:var(--muted2); }
.feature-list svg { width:16px; height:16px; flex-shrink:0; margin-top:2px; stroke:var(--blue-light); fill:none; stroke-width:2; }

/* ========================= CASE STUDIES ========================= */
.filter-bar { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:40px; }
.filter-btn { padding:9px 20px; border-radius:99px; font-size:13px; font-weight:500; border:1px solid var(--border); background:var(--surface); color:var(--muted2); cursor:pointer; transition:all .2s; }
.filter-btn:hover { color:#fff; background:var(--surface-hover); }
.filter-btn.active { background:var(--grad); border-color:transparent; color:#fff; }
.cases-list { display:flex; flex-direction:column; gap:24px; }
.case-card { border-radius:20px; overflow:hidden; border:1px solid var(--border); background:var(--surface); display:flex; }
.case-card-img { width:38%; flex-shrink:0; }
.case-card-img img { width:100%; height:100%; object-fit:cover; opacity:.5; transition:opacity .3s; }
.case-card:hover .case-card-img img { opacity:.7; }
.case-card-body { padding:32px 36px; flex:1; }
.case-tag { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; margin-bottom:12px; }
.case-tag svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }
.case-card-body h2 { font-size:1.35rem; font-weight:700; margin-bottom:10px; line-height:1.3; }
.case-card-body > p { color:var(--muted2); font-size:.88rem; line-height:1.65; margin-bottom:14px; }
.case-challenge { margin-bottom:16px; }
.case-challenge label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.case-challenge p { font-size:.85rem; color:var(--muted2); margin-top:4px; }
.metrics-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.metric { background:rgba(255,255,255,.05); border-radius:10px; padding:12px 10px; text-align:center; }
.metric-val { font-family:var(--font-head); font-size:1.15rem; font-weight:800; }
.metric-lbl { font-size:10px; color:var(--muted); margin-top:2px; }
.tech-tags { display:flex; flex-wrap:wrap; gap:7px; }
.tech-tag { padding:4px 11px; border-radius:99px; font-size:11px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--muted2); }

/* ========================= ABOUT PAGE ========================= */
.about-mission { display:flex; gap:48px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:20px; overflow:hidden; margin-bottom:64px; }
.about-mission-img { width:42%; flex-shrink:0; min-height:340px; }
.about-mission-img img { width:100%; height:100%; object-fit:cover; opacity:.6; }
.about-mission-body { padding:40px 48px 40px 0; }
.about-mission-body h2 { font-size:1.8rem; font-weight:800; margin-bottom:16px; }
.about-mission-body p { color:var(--muted2); font-size:.9rem; line-height:1.7; margin-bottom:12px; }
.values-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.value-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px; }
.value-icon { width:44px; height:44px; border-radius:10px; background:rgba(59,130,246,.1); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.value-icon svg { width:22px; height:22px; stroke:var(--blue-light); fill:none; stroke-width:1.8; }
.value-card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.value-card p { color:var(--muted2); font-size:.85rem; line-height:1.65; }

/* ========================= TEAM ========================= */
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:64px; }
.team-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px; text-align:center; }
.team-avatar { width:72px; height:72px; border-radius:50%; background:var(--grad); display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:800; font-size:22px; color:#fff; margin:0 auto 16px; }
.team-name { font-size:1rem; font-weight:700; margin-bottom:4px; }
.team-role { font-size:.82rem; color:var(--blue-light); font-weight:600; margin-bottom:10px; }
.team-bio { font-size:.82rem; color:var(--muted2); line-height:1.6; }

/* ========================= CONTACT PAGE ========================= */
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:40px; }
.contact-info-card { display:flex; align-items:flex-start; gap:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; margin-bottom:16px; }
.contact-icon { width:40px; height:40px; border-radius:10px; flex-shrink:0; background:rgba(59,130,246,.1); display:flex; align-items:center; justify-content:center; }
.contact-icon svg { width:18px; height:18px; stroke:var(--blue-light); fill:none; stroke-width:1.8; }
.contact-info-card label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.contact-info-card p { font-size:.9rem; margin-top:4px; }
.contact-info-card a { color:var(--blue-light); }
.contact-expect { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; margin-top:8px; }
.contact-expect h3 { font-size:.95rem; font-weight:700; margin-bottom:14px; }
.expect-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.expect-list li { display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--muted2); }
.expect-list svg { width:16px; height:16px; stroke:var(--blue-light); fill:none; stroke-width:2; flex-shrink:0; }
.contact-form { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:36px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.form-group label { font-size:12px; font-weight:600; color:var(--muted2); }
.form-group input, .form-group select, .form-group textarea { background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:10px; padding:12px 16px; color:var(--text); font-size:.9rem; transition:border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color:var(--blue); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-group select option { background:#1e293b; }
.form-submit { width:100%; padding:14px; border-radius:12px; background:var(--grad); color:#fff; font-weight:700; font-size:.95rem; border:none; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; transition:opacity .2s; }
.form-submit:hover { opacity:.87; }
.form-submit svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }
.success-box { text-align:center; padding:60px 40px; background:var(--surface); border:1px solid var(--border); border-radius:20px; }
.success-icon { width:64px; height:64px; border-radius:50%; margin:0 auto 20px; background:rgba(16,185,129,.12); display:flex; align-items:center; justify-content:center; }
.success-icon svg { width:30px; height:30px; stroke:#10b981; fill:none; stroke-width:2; }
.success-box h2 { font-size:1.6rem; font-weight:800; margin-bottom:10px; }
.success-box p { color:var(--muted2); max-width:320px; margin:0 auto; }
.cta-section { padding:40px 0 80px; text-align:center; }
.cta-section h3 { font-size:1.7rem; font-weight:700; margin-bottom:10px; }
.cta-section p { color:var(--muted2); margin-bottom:28px; }

/* ========================= FOOTER ========================= */
.avison-footer { border-top:1px solid var(--border); padding:48px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-about p { color:var(--muted); font-size:.85rem; line-height:1.7; margin-top:14px; max-width:280px; }
.footer-col h4 { font-size:.85rem; font-weight:600; color:var(--muted2); margin-bottom:14px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:8px; }
.footer-links a { font-size:.85rem; color:var(--muted); transition:color .2s; }
.footer-links a:hover { color:var(--blue-light); }
.footer-bottom { border-top:1px solid var(--border); padding-top:20px; text-align:center; font-size:.78rem; color:rgba(100,116,139,.6); }

/* ========================= RESPONSIVE ========================= */
@media (max-width:900px) {
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .home-services-grid, .testimonials-grid, .team-grid { grid-template-columns:1fr; }
  .featured-cases { grid-template-columns:repeat(2,1fr); }
  .service-detail-inner, .about-mission { flex-direction:column; }
  .service-detail-img, .about-mission-img { width:100%; height:220px; }
  .service-detail-body, .about-mission-body { padding:28px; }
  .case-card { flex-direction:column; }
  .case-card-img { width:100%; height:200px; }
  .contact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .values-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .nav-links, .nav-cta { display:none; }
  .nav-hamburger { display:block; }
  .featured-cases { grid-template-columns:1fr; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .metrics-row { grid-template-columns:1fr 1fr 1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-btns { flex-direction:column; align-items:center; }
}
