/*
Theme Name: Kelly Electric Inc
Theme URI: https://kellyelectricinc.com/
Author: Your Agency
Author URI: https://example.com/
Description: Custom WordPress theme for Kelly Electric Inc.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kellyelectricinc
*/

/* Base resets */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Colors */
:root {
  --kelly-gold: #e9c04e;
  --kelly-green: #199431;
  --kelly-dark: #0d0d0d;
  --kelly-gray: #f6f7f9;
}

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; color: #111; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eceef1; }
.site-header .header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.site-header .branding { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.site-header .site-title { font-weight: 700; letter-spacing: 0.4px; }
.site-header nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; }
.site-header nav a { color: #5b6876; font-weight: 700; padding: 12px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.site-header nav a:hover { color: #111; background: #f5f7fa; }

/* CTA button */
.nav-cta { background: var(--kelly-green); color: #fff !important; padding: 10px 14px !important; border-radius: 999px !important; box-shadow: 0 1px 0 rgba(0,0,0,.04); white-space: nowrap; font-weight: 800; letter-spacing: .02em; }
.nav-cta:hover { filter: brightness(1.03); background: var(--kelly-green); }

/* Header ordering (desktop) */
.primary-nav { order: 1; }
.header-cta { order: 2; margin-left: 14px; }
.nav-toggle { order: 3; }

/* Subtle ring animation for CTA (mobile only) */
@media (max-width: 900px) {
  .header-cta { position: relative; }
  .header-cta::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 999px;
    border: 2px solid rgba(25,148,49,0.55);
    pointer-events: none;
    transform: scale(0.85);
    opacity: 0;
    animation: cta-ring 2.6s ease-out infinite;
    animation-delay: .6s;
  }
}

@keyframes cta-ring {
  0% { transform: scale(0.85); opacity: .35; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta::after { animation: none !important; }
}

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #111; margin: 5px 0; transition: transform .2s ease; }
.primary-nav { display: block; }
@media (max-width: 900px) {
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #eceef1; z-index: 101; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-top: 1px solid #f0f2f5; }
  .primary-nav a { display: block; padding: 14px 20px; }
  .nav-toggle { display: inline-block; }
  .header-cta { order: 1; }
  .nav-toggle { order: 2; }
  .nav-cta { margin: 6px 10px 6px 0; display: inline-block; text-align: center; }
}

.site-footer { background: #111; color: #eee; padding: 40px 0; margin-top: 60px; }
.site-footer a { color: var(--kelly-gold); }

/* Hero with lightning */
.hero {
  position: relative;
  background: radial-gradient(1000px 400px at 50% 0%, rgba(25,148,49,0.18), transparent 60%), #0a0a0a;
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.30) 100%); }
.hero h1 { font-size: clamp(32px, 6vw, 64px); line-height: 1.05; margin: 0 0 12px; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); opacity: 0.9; max-width: 720px; }
.hero .cta { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; background: var(--kelly-green); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: 0 6px 14px rgba(25,148,49,0.28); transform: translateY(0); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.hero .cta:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(25,148,49,0.34); }
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero p { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Content sections */
.section { padding: 60px 0; }
.section.alt { background: var(--kelly-gray); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .col-4, .col-6 { grid-column: span 12; }
}

/* Tabs */
.tabs { margin-top: 14px; }
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #eceef1; margin-bottom: 16px; }
.tabs [role="tab"] { background: #fff; border: 1px solid #e6e9ee; border-bottom: 2px solid transparent; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6876; }
.tabs [role="tab"][aria-selected="true"] { color: #111; border-color: #e6e9ee; border-bottom-color: var(--kelly-green); }
.tabs [role="tabpanel"] { background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 18px; }
.tabs [role="tabpanel"] .checklist li { opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.tabs [role="tabpanel"].is-active .checklist li { opacity: 1; transform: translateY(0); }
.tabs [role="tabpanel"].is-active .checklist li::after { animation: verify-check .28s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .tabs [role="tabpanel"] .checklist li { transition: none !important; }
}
.checklist { list-style: none; padding-left: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; }
.checklist li { position: relative; padding-left: 32px; min-height: 24px; display: flex; align-items: center; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: rgba(25,148,49,0.12); border: 2px solid var(--kelly-green); box-shadow: inset 0 0 0 3px #fff; transform: translateY(-50%); }
.checklist li::after { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 10px; border: solid var(--kelly-green); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); opacity: 0; }
@media (max-width: 900px) { .checklist { grid-template-columns: 1fr; } }

/* Verification-like checkmark animation */
@keyframes verify-check {
  0% { transform: translate(-50%, -50%) rotate(45deg) scale(0.6); opacity: 0; border-color: transparent; }
  60% { transform: translate(-50%, -50%) rotate(45deg) scale(1.05); opacity: 1; border-color: var(--kelly-green); }
  100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 1; border-color: var(--kelly-green); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn-primary { background: var(--kelly-green); color: #fff; box-shadow: 0 4px 12px rgba(25,148,49,0.22); }
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(25,148,49,0.3); }
.btn-outline { background: transparent; color: var(--kelly-green) !important; border: 2px solid var(--kelly-green); }
.btn-outline:hover { background: rgba(25,148,49,0.06); }

/* Services */
.services { margin-top: 12px; }
.service-card { background: #fff; border: 1px solid #eceef1; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.06); border-color: #e6e9ee; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(120px 60px at 50% 0%, rgba(25,148,49,0.1), transparent 60%); border: 2px solid rgba(25,148,49,0.25); }
.icon-circle svg { width: 28px; height: 28px; fill: var(--kelly-green); transform: translateZ(0); }
.service-card h3 { margin: 8px 0 4px; }
.service-card p { opacity: 0.9; }
.service-actions { margin-top: 6px; }

/* Subtle icon animation */
.service-card:hover .icon-circle svg { animation: icon-bounce .6s ease; }
@keyframes icon-bounce { 0% { transform: translateY(0); } 35% { transform: translateY(-3px); } 100% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .service-card, .service-card:hover .icon-circle svg { transition: none !important; animation: none !important; }
}


