/*
Theme Name: Sonologik Diagnostic Services
Theme URI: https://example.com/sonologik
Author: Digital Mistro
Author URI: https://example.com
Description: Custom one-page WordPress theme converted from the supplied Sonologik HTML/CSS/image package. Includes the original landing page layout, responsive navigation, Tailwind CDN utilities, Lucide icons, product tabs, contact section, and image assets.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonologik
Tags: custom-background, custom-logo, one-page, landing-page, responsive
*/

/* Sonologik — custom styles, gradients, animations */
:root {
  --ink: #050225;
  --teal: #0575E6;
  --teal-glow: #00F260;
  --gradient-hero:
    radial-gradient(1200px 600px at 80% 0%, rgba(0,242,96,0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 90%, rgba(5,117,230,0.30), transparent 60%),
    linear-gradient(160deg, #050225 0%, #0a0840 55%, #050225 100%);
  --gradient-teal: linear-gradient(135deg, #00F260 0%, #0575E6 100%);
  --shadow-glow: 0 30px 80px -20px rgba(5,117,230,0.45);
  --shadow-card: 0 1px 2px rgba(5,2,37,0.04), 0 8px 24px -10px rgba(5,2,37,0.12);
  --shadow-float: 0 20px 50px -20px rgba(5,2,37,0.25);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4 { font-family: "Fraunces", ui-serif, Georgia, serif; letter-spacing: -0.02em; }

.text-balance { text-wrap: balance; }

.hero-bg { background: var(--gradient-hero); }
.teal-bg { background: var(--gradient-teal); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-float { box-shadow: var(--shadow-float); }

.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Nav scrolled */
#site-nav.scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255,255,255,0.8);
  border-bottom: 1px solid #e3e7f0;
}

/* Form fields (dark contact card) */
.field {
  width: 100%;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 0.75rem 1rem;
  color: #fff;
  transition: border-color .2s;
}
.field::placeholder { color: rgba(255,255,255,0.4); }
.field:focus { outline: none; border-color: var(--teal-glow); }

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

@keyframes ecg { 0% { stroke-dashoffset: 1200; } 100% { stroke-dashoffset: 0; } }
.ecg-line { stroke-dasharray: 1200; animation: ecg 4s linear infinite; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-y { animation: float-y 6s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Reveal init */
[data-reveal] { opacity: 0; }
[data-reveal].fade-up { opacity: 1; }

/* Product tab active state helpers */
.tab-btn {
  flex-shrink: 0;
  text-align: left;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e3e7f0;
  background: rgba(255,255,255,0.5);
  width: 18rem;
  transition: all .2s;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .tab-btn { width: 100%; flex-shrink: 1; }
}
.tab-btn:hover { border-color: rgba(5,117,230,0.4); }
.tab-btn.active { background: #fff; border-color: #0575E6; box-shadow: var(--shadow-card); }

.tab-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; background: #eef3fb; color: #0575E6; transition: all .2s; }
.tab-btn.active .tab-icon { background: var(--gradient-teal); color: #fff; }


/* WordPress compatibility */
.admin-bar #site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-nav { top: 46px; } }
.wp-site-blocks { min-height: 100vh; }
