:root {
  --dark-bg: #121212;
  --light-text: #f5f5f5;
  --accent-red: #e63946;
  --spacing-unit: 1rem;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

header, main, footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--spacing-unit) * 2) 0;
  text-align: center;
  width: 100%;
  gap: var(--spacing-unit);
}

header {
  padding-top: calc(var(--spacing-unit) * 3);
}

main {
  flex-grow: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 1.5);
  width: 100%;
  padding: calc(var(--spacing-unit) * 1) 0;
  margin: calc(var(--spacing-unit) * 1.5) 0;
}

h1, h2, h4, .cta-button {
  text-transform: uppercase;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.service h2 {
  text-transform: uppercase;
}

.service h3 {
  text-transform: none;
}

h1 {
  font-size: 2.5rem;
  margin-top: var(--spacing-unit);
}

h2 {
  font-size: 1.8rem;
}

.service h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-unit);
}

h3 {
  font-size: 1.2rem;
  font-weight: normal;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.1rem;
  font-weight: normal;
  margin: calc(var(--spacing-unit) * 0.5) 0;
}

h6 {
  font-size: 1rem;
  font-weight: normal;
  margin: calc(var(--spacing-unit) * 0.5) 0;
}

p {
  font-size: 1rem;
  max-width: 60ch;
  margin: var(--spacing-unit) auto;
}

.home-link {
  color: inherit;
  text-decoration: none;
}

.service h2 a {
  color: inherit;
  text-decoration: none;
}

.service h2 a:hover,
.service h2 a:focus {
  color: inherit;
  text-decoration: none;
}

.logo {
  border-radius: var(--border-radius);
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: var(--light-text);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  margin: var(--spacing-unit) 0;
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
  position: relative;
  letter-spacing: 0.5px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
  will-change: transform;
  transform: translateZ(0);
  animation: pulse-glow 1s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: translateZ(0) scale(1);
  }
  50% {
    transform: translateZ(0) scale(1.03);
  }
}

.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: none;
  animation: slideIn 0.5s forwards;
}

body.scrolled .sticky-cta {
  display: block;
}

.sticky-button {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  margin: 0;
  white-space: nowrap;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateZ(0);
  animation: none;
}

.sticky-button::after {
  content: "• Urgent";
  position: absolute;
  top: -10px;
  right: 10px;
  background-color: #ffd166;
  color: #000;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

a.cta-button:hover, a.cta-button:focus {
  background: linear-gradient(135deg, #ff4757 0%, #e63946 100%);
  transform: translateY(-2px) scale(1.02) translateZ(0);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.6);
  color: white;
  opacity: 1;
  animation-play-state: paused;
}

.cta-button .emoji {
  display: inline-block;
}

.cta-button:hover .emoji,
.cta-button:focus .emoji,
footer .cta-button:hover .emoji,
footer .cta-button:focus .emoji {
  animation: wiggle 0.3s 2;
}

.sticky-button .emoji {
  animation: sticky-emoji-wiggle 1s infinite;
  display: inline-block;
}

@keyframes sticky-emoji-wiggle {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-5deg); }
  40% { transform: rotate(0); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.service {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-unit);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.contact {
  width: 100%;
  padding: var(--spacing-unit);
}
.contact a {
  color: var(--light-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact .cta-button {
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: calc(var(--spacing-unit) * 4);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contact a:hover:not(.cta-button) {
  opacity: 0.8;
}

.services {
  width: 100%;
  margin: calc(var(--spacing-unit) * 0.5) 0;
}

.services-grid {
  margin-top: calc(var(--spacing-unit) * 1.5);
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .service h2 {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
  }
  
  .contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 0.5);
    max-width: 60%;
    margin: 0 auto;
  }
}

:focus {
  outline: 3px solid var(--accent-red);
  outline-offset: 3px;
}

a:focus {
  text-decoration: underline;
}

.service:focus-within {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cta-button, .sticky-button {
    animation: none !important;
    transform: translateZ(0) !important;
  }
}

@media (max-width: 767px) {
  .cta-button {
    padding: 0.9rem 1.5rem;
    width: 80%;
    max-width: 280px;
    margin: calc(var(--spacing-unit) * 1.5) auto;
    font-size: 1.1rem;
  }
  
  .sticky-cta {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    max-width: 250px;
    text-align: center;
    transform: none;
  }
  
  .sticky-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    opacity: 0.95;
    width: 100%;
  }
  
  .services-grid {
    gap: calc(var(--spacing-unit) * 2);
  }
  
  h1 {
    line-height: 1.1;
    font-size: 2rem;
    margin-top: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }
  
  h2 {
    line-height: 1.2;
    font-size: 1.6rem;
    margin-top: calc(var(--spacing-unit) * 0.75);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }
  
  header h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  header {
    padding-top: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    gap: calc(var(--spacing-unit) * 0.75);
  }
  
  .contact {
    padding: calc(var(--spacing-unit) * 1.5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.5);
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 1rem;
    width: 85%;
  }
  
  .logo {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }
  
  .service {
    padding: calc(var(--spacing-unit) * 1.25);
  }
  
}

.footer-bottom-image {
  margin-top: calc(var(--spacing-unit) * 15);
  margin-left: auto;
  margin-right: auto;
}