/* Modern color palette with warm neutrals */
:root {
  /* Light theme */
  --primary-color: #2c6cbd;
  --primary-light: #5895d8;
  --primary-dark: #1a5395;
  --surface: #f8f9fa;
  --surface-variant: #eef2f5;
  --on-surface: #333333;
  --on-surface-variant: #555555;
  --accent: #e74c3c;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.05);
  --shadow-color: rgb(0 0 0 / 0.07);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #5895d8;
    --primary-light: #7db0e9;
    --primary-dark: #2c6cbd;
    --surface: #121212;
    --surface-variant: #1e1e1e;
    --on-surface: #f8f9fa;
    --on-surface-variant: #d8d8d8;
    --accent: #ed6055;
    --card-bg: #252525;
    --card-border: rgba(255,255,255,0.1);
    --shadow-color: rgb(0 0 0 / 0.3);
  }
}

/* Text selection styling */
::selection {
  background-color: var(--primary-color);
  color: var(--surface);
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

html, body {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-padding-top: 20px; /* Adds padding for anchor links */
}

body {
  font-family: var(--font-family);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

/* Skip to main content */
.skip-to-main-content {
  position: absolute;
  top: -999px;
  left: 50%;
  background: var(--primary-color);
  color: var(--surface);
  padding: 1rem;
  transform: translateX(-50%);
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}

.skip-to-main-content:focus {
  top: 0;
}

/* Typography */
h1, h2 {
  color: var(--on-surface);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Header styling */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 2.5rem 0.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, var(--primary-light), transparent 70%);
  opacity: 0.4;
}

/* Add a subtle shine effect */
header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.header-content {
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-content:hover {
  transform: translateY(-4px);
}

header h1 {
  color: var(--surface);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--surface);
  opacity: 0;
  margin-top: 0.2rem;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

header p {
  color: var(--surface);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Container for consistent centering and spacing */
.container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

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

section {
  width: 100%;
  box-sizing: border-box;
  margin: 2rem 0;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 4px 16px var(--shadow-color);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  position: relative;
}

section:hover {
  box-shadow: 0 8px 28px var(--shadow-color);
  transform: translateY(-2px);
}

section h2 {
  animation: fadeInUp 0.5s ease forwards;
}

/* Breadcrumb navigation */
.breadcrumbs {
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--surface-variant), var(--surface));
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--on-surface-variant);
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 0 0.2rem;
}

.breadcrumbs a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.breadcrumbs a:hover::after {
  width: 100%;
}

.breadcrumbs [aria-current="page"] {
  color: var(--on-surface-variant);
}

/* Contact info robust responsive layout */
#contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

#contact-info li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--surface-variant), var(--card-bg));
  border-radius: 10px;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  word-break: break-word;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px;
  border-left: 4px solid var(--primary-color);
  position: relative;
  z-index: 1;
}

#contact-info li:hover {
  transform: translateY(-3px) translateX(1px);
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
}

#contact-info li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--surface-variant);
  border-radius: 6px;
  z-index: -1;
  transition: width 0.3s ease;
}

#contact-info li:hover::before {
  width: 100%;
}

#contact-info .label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.1rem;
  position: relative;
  display: inline-block;
}

#contact-info .value {
  word-break: break-word;
}

#contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

#contact-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  transform: translateX(3px);
}

/* Remove problematic min-widths/max-widths from contact-info */
#contact-info .label, #contact-info .value {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Adjust contact items on mobile screens */
@media (max-width: 480px) {
  #contact-info li {
    padding: 0.875rem;
    font-size: 0.95em;
    gap: 0.5rem;
  }

  #contact-info li strong {
    min-width: 90px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  #contact-info li {
    flex-direction: column;
    gap: 0.25rem;
  }

  #contact-info li strong {
    min-width: auto;
    margin-bottom: 0.25rem;
  }
}

/* Car listings styling */
#car-listings {
  display: grid;
  gap: 2rem;
}

#car-listings ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  #car-listings ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #car-listings li {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 100%;
  }
}

#car-listings li {
  margin: 0;
  padding: 0;
}

#car-listings a {
  display: block;
  padding: 1.25rem 2rem;
  background: var(--primary-color);
  color: var(--surface);
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#car-listings a:hover {
  background: var(--primary-dark);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px var(--shadow-color);
}

#car-listings a::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#car-listings a:hover::after {
  opacity: 1;
}

#car-listings li:first-child a {
  background: linear-gradient(135deg, #FF6600, #e74c3c);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#car-listings li:last-child a {
  background: linear-gradient(135deg, #003366, #002f56);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#car-listings li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: 1;
}

/* Services Section */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
  }
}

.service-card {
  background: linear-gradient(145deg, var(--surface-variant), var(--card-bg));
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 3px 10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
  transition: width 0.3s ease-in-out;
}

.service-card:hover {
  box-shadow: 0 10px 25px var(--shadow-color);
  transform: translateY(-5px) scale(1.02);
}

.service-card:hover::before {
  width: 6px;
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.service-card p {
  color: var(--on-surface);
  margin: 0 0 0.5rem 0;
  flex-grow: 1;
  line-height: 1.6;
}

.service-link {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--primary-color);
  color: var(--surface) !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 6px var(--shadow-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
  z-index: -1;
}

.service-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow-color);
  color: var(--surface) !important;
}

.service-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Social Share Buttons */
.social-share {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  margin: 1.5rem auto 0 auto;
  max-width: 320px;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-variant);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 8px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.social-share a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-share a:hover {
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 8px 16px var(--shadow-color);
}

.social-share a:hover::before {
  opacity: 1;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: fill 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.social-share a:hover .social-icon {
  transform: scale(1.1);
}

.social-share a:hover .social-icon.facebook {
  fill: #1877f2;
}

.social-share a:hover .social-icon.twitter {
  fill: #1da1f2;
}

.social-share a:hover .social-icon.email {
  fill: var(--accent);
}

.social-share a:hover .social-icon.instagram {
  fill: #e1306c;
}

.social-share a:hover .social-icon.tiktok {
  fill: #000;
}

/* Animation Touches */
button, a, .service-card {
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s, color 0.3s;
}

/* Page load animations */
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section {
  opacity: 0;
  animation: contentFadeIn 0.6s ease-out forwards;
}

main section:nth-child(1) {
  animation-delay: 0.1s;
}

main section:nth-child(2) {
  animation-delay: 0.3s;
}

main section:nth-child(3) {
  animation-delay: 0.5s;
}

main section:nth-child(4) {
  animation-delay: 0.7s;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.scroll-to-top::before {
  content: "↑";
  font-size: 26px;
  font-weight: bold;
}

/* Section headers with icons */
section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.7s ease forwards;
}

section h2::before {
  font-family: "Material Symbols Rounded";
  font-size: 1.85rem;
  color: var(--primary-color);
  background: var(--surface-variant);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px var(--shadow-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

section:hover h2::before {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary-light);
  color: var(--surface);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}

section:hover h2::after {
  width: 120px;
}

#contact-info h2::before { content: "contact_page"; }
#car-listings h2::before { content: "directions_car"; }
#services h2::before { content: "build"; }
#google-maps h2::before { content: "map"; }

/* Maps styling */
#google-maps {
  width: 100%;
  margin: 2rem 0;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  border-radius: 16px;
}

#google-maps:hover {
  box-shadow: none;
  transform: none;
}

#map {
  width: 100% !important;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow-color);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

#google-maps:hover #map {
  box-shadow: 0 12px 32px var(--shadow-color);
  transform: translateY(-2px);
}

@media (max-width: 704px) {
  .container {
    padding: 0;
  }

  section {
    margin: 0;
    padding: 1rem 0;
    border-radius: 0;
  }

  #google-maps {
    margin: 0;
    width: 100%;
  }

  #map {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  #map {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 0.5rem;
  }

  section {
    padding: 1rem 0;
    margin: 1rem 0;
  }

  #contact-info li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  #contact-info .label {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0.15rem;
  }

  #contact-info ul {
    grid-template-columns: 1fr;
  }

  #car-listings ul {
    flex-direction: column;
  }

  #car-listings a {
    display: block;
    text-align: center;
  }

  #map {
    height: 300px;
  }
}

/* Map loading skeleton */
.map-skeleton {
  height: 500px;
  width: 100% !important;
  min-width: 0;
  background: linear-gradient(
    90deg,
    var(--surface-variant) 25%,
    var(--card-border) 37%,
    var(--surface-variant) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.map-loading .map-skeleton {
  display: block;
}

.map-loading #map {
  display: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Footer styling */
footer {
  width: 100%;
  box-sizing: border-box;
  padding: 3rem 0.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(to bottom, var(--surface), var(--surface-variant));
  margin-top: 3rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light), var(--primary-color));
  opacity: 0.6;
}

footer p {
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

footer nav ul li {
  margin: 0;
  padding: 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}

footer a:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    border-radius: 16px;
    margin: 1.5rem 0.5rem;
    width: calc(100% - 1rem);
    padding: 1.5rem 1rem;
  }

  #contact-info ul,
  #car-listings ul {
    gap: 1rem;
  }

  #google-maps {
    margin: 1.5rem 0.5rem;
    width: calc(100% - 1rem);
    padding: 1.5rem 1rem;
  }

  footer nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  header {
    border-radius: 0 0 15px 15px;
    padding: 2rem 0.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  section, #google-maps {
    padding: 1.25rem 0.75rem;
  }
  
  section h2 {
    font-size: 1.4rem;
  }
  
  header {
    padding: 1.5rem 0.5rem;
  }
  
  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
  
  #contact-info .label {
    margin-bottom: 0.3rem;
  }
  
  .service-card {
    padding: 1.25rem 1rem;
  }
}

/* End of stylesheet - all responsive and layout rules are now complete. */
