/* A+ Handyman Services - Global Styles */
/* Matched from Astro dist */

/* ===== CSS Variables ===== */
:root {
  --primary: #232549;
  --primary-dark: #283763;
  --secondary: #3DAACE;
  --accent: #3185C0;
  --orange: #F4A261;
  --foreground: #5e5e5e;
  --muted: #5e5e5e;
  --nav-bg: #444664;
  --light-gray: #F7F7F7;
  --gray-200: #e5e7eb;
  --white: #fff;
}

/* ===== @font-face declarations ===== */
@font-face {
  font-family: 'Jost Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin-wght-normal-ObQm3Zd1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin-ext-wght-normal-BDUtSsKd.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spartan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spartan-latin-400-normal-CHp8p71x.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Skip Link ===== */
.skip-link {
  color: #fff;
  z-index: 9999;
  background: #000;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  position: absolute;
  top: -100%;
  left: 0;
}
.skip-link:focus {
  top: 0;
}

/* ===== Star pulsation keyframes ===== */
@keyframes starWave1 {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.1) rotate(-8deg); }
}
@keyframes starWave2 {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(-12deg); }
}
@keyframes starWave3 {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(-16deg); }
}
@keyframes starWave4 {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.25) rotate(-20deg); }
}
@keyframes starWave5 {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.3) rotate(-25deg); }
}

.star-pulse div:nth-child(1) { animation: starWave1 2s ease-in-out infinite; }
.star-pulse div:nth-child(2) { animation: starWave2 2s ease-in-out infinite 0.1s; }
.star-pulse div:nth-child(3) { animation: starWave3 2s ease-in-out infinite 0.2s; }
.star-pulse div:nth-child(4) { animation: starWave4 2s ease-in-out infinite 0.3s; }
.star-pulse div:nth-child(5) { animation: starWave5 2s ease-in-out infinite 0.4s; }

/* ===== Hero fade-in animation ===== */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out forwards;
}

/* ===== Service content typography (for service detail pages) ===== */
.service-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}
.service-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.service-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.service-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.service-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.service-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.service-content a {
  color: #2563eb;
  text-decoration: underline;
}
.service-content a:hover {
  color: #1d4ed8;
}

/* ===== Our Services page styles ===== */
.services-page { padding: 3rem 0 4rem; }
.services-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.services-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.services-intro {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 2.5rem;
}
.category-block { margin-bottom: 3rem; }
.category-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-item-img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}
.service-item h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.service-item p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 0.75rem; }
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: #3DAACE;
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}
.learn-more-link:hover { background: #2d8aae; color: #fff; }

@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ===== Footer particle base styles ===== */
#footer-particles .absolute {
  will-change: transform, opacity;
}
