/*
Theme Name: LEPC Repair
Theme URI: https://lepc.repair
Author: Lake Elsinore PC Repair
Author URI: https://lepc.repair
Description: Professional WordPress theme for Lake Elsinore PC Repair — computer, console, and PCB repair services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lepc-repair
*/

/* ============================================================
   Custom CSS — complements Tailwind CDN
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1a2333;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* Fix 100vh on mobile — address bar causes phantom vertical scroll */
.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Gradients ─────────────────────────────────────────────── */
.bg-gradient-hero {
  background: linear-gradient(135deg, #0073e6 0%, #0058b8 50%, #1a2333 100%);
}

.bg-gradient-subtle {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

/* ── Glass effect ──────────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Hover lift ────────────────────────────────────────────── */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ── Scroll animations ─────────────────────────────────────── */
.scroll-animate {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ── Hero entry animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* ── Background cross pattern ──────────────────────────────── */
.bg-cross-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Nav header transition ─────────────────────────────────── */
#site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── Active nav link ───────────────────────────────────────── */
.nav-link.active-transparent {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}
.nav-link.active-glass {
  background: rgba(0,115,230,0.1);
  color: #0073e6;
}

/* ── Card base ─────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Form inputs ───────────────────────────────────────────── */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1a2333;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.15);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a2333;
  margin-bottom: 0.375rem;
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: #0073e6;
  color: #ffffff;
}
.btn-primary:hover {
  background: rgba(0,115,230,0.9);
  transform: scale(1.05);
}
.btn-accent {
  background: #22c3b6;
  color: #ffffff;
}
.btn-accent:hover {
  background: rgba(34,195,182,0.9);
  transform: scale(1.05);
}
.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: #ffffff;
  color: #0073e6;
}
.btn-outline-dark {
  background: transparent;
  color: #0073e6;
  border: 2px solid #e2e8f0;
}
.btn-outline-dark:hover {
  background: #f0f4f8;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ── Star rating ───────────────────────────────────────────── */
.star-filled {
  color: #facc15;
  fill: #facc15;
}

/* ── Mobile menu ───────────────────────────────────────────── */
#mobile-menu {
  display: none;
}
#mobile-menu.is-open {
  display: block;
}

/* ── Lucide icon sizing helpers ────────────────────────────── */
.icon-sm  { width: 1rem;    height: 1rem; }
.icon-md  { width: 1.25rem; height: 1.25rem; }
.icon-lg  { width: 1.5rem;  height: 1.5rem; }
.icon-xl  { width: 1.75rem; height: 1.75rem; }
.icon-2xl { width: 2rem;    height: 2rem; }

/* ── Utility overrides ─────────────────────────────────────── */
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
