/* =========================
   CSS Reset (yours)
   ========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   General Styles (yours)
   ========================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

ul,
ol { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* =========================
   Header Styles (yours)
   ========================= */
#header-container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  grid-gap: 10px;
  align-items: center;
}

#logo {
  grid-column: 1 / 2;
  display: flex;
  justify-content: center;
}

#header-text-box {
  grid-column: 2 / 3;
  display: block;
  justify-content: space-between;
  overflow: hidden;
}

#company-title {
  font-weight: 100;
  letter-spacing: 3px;
  font-size: 40px;
  display: block;
}

#location-maker-1 {
  font-weight: 100;
  display: inline-block;
  font-size: 24px;
}

#ellwanger_painting_phone_number {
  grid-column: 3 / 4;
  display: flex;
  justify-content: center;
}

#ellwanger_painting_phone_number span { display: inline; }
#ellwanger_painting_phone_number .fas { display: none; }

@media only screen and (max-width: 600px) {
  #company-title {
    font-size: 20px;
    letter-spacing: 2px;
  }
  #location-maker-1 {
    font-size: 16px;
    margin-top: 10px;
  }
  #ellwanger_painting_phone_number span { display: none; }
  #ellwanger_painting_phone_number .fas { display: inline; }
}

/* =========================
   Navigation Styles (yours)
   ========================= */
nav {
  grid-column: 1 / -1;
  border-bottom: #640505 solid 3px;
  font-weight: 1;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 600px) {
  nav {
    font-size: 14px;
    letter-spacing: 1px;
  }
}

#top-navigation-section {
  display: flex;
  justify-content: space-around;
  background-color: #2e5f84;
}

@media (max-width: 600px) {
  #top-navigation-section:before {
    content: '☰';
    font-size: 25px;
    cursor: pointer;
    display: block;
    text-align: right;
    padding: 10px;
    background-color: #2e5f84;
    color: #ffffff;
  }
  #top-navigation-section > a { display: none; }
  #top-navigation-section.active > a {
    display: block;
    padding: 10px 20px;
    background-color: #2e5f84;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #3e6f94;
    z-index: 1000;
  }
}

.Aheaderlinks { padding: 10px; }
.headerlinks { color: #ffffff; }
.headerlinks:not(:last-child) { margin-right: 20px; }

.Aheaderlinks:hover {
  background: linear-gradient(45deg, #c48416, #640505);
  color: #ffffff;
  background-size: 200% 200%;
  animation: gradient-bg 0.5s ease;
}

@keyframes gradient-bg {
  0% { background-position: 0 0; }
  100% { background-position: 200% 200%; }
}

.headerlinks:visited {
  background: linear-gradient(45deg, #c48416, #640505);
  color: #ffffff;
}

/* =========================
   Services Section (yours)
   ========================= */
.image-section-services {
  margin: 20px 0;
}

.image-container-services {
  position: relative;              /* contains the image */
  width: 100%;
  height: 500px;                   /* controls visible height */
  background-size: cover;
  background-position: center;
}

/* Ensure picture/img fill the container height for the hero */
picture,
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay block (yours) — this positions relative to .service-hero wrapper below */
.overlay-content-services {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  background: rgba(34, 34, 34, 0.7);
  padding: 20px;
  text-align: center;
  max-width: 600px;
  transition: background 0.5s ease, color 0.5s ease;
}

@media (max-width: 600px) {
  .overlay-content-services {
    padding: 10px;
    font-size: 14px;
    max-width: 90%;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .overlay-content-services {
    padding: 15px;
    font-size: 16px;
    max-width: 80%;
  }
}

@media (min-width: 1201px) {
  .overlay-content-services {
    padding: 20px;
    font-size: 18px;
    max-width: 600px;
  }
}

.overlay-content-services:hover {
  background: linear-gradient(45deg, #2E5F84, #2E5F84);
  color: #ffffff;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.services-heading {
  margin: 10px 0;
  font-weight: 1;
  letter-spacing: 3px;
  color:#ffffff;
  font-size: 28px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.services-subheading {
  margin: 10px 0;
  font-weight: 500;
  letter-spacing: 3px;
  color: #cccccc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.services-description {
  margin: 10px 0;
  color: #e0e0e0;
  font-weight: 200;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.services-link {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.services-link:hover {
  color: #ffcc66;
  text-decoration: underline;
}

/* =========================
   ADDITIONS for lazy blur-up
   ========================= */

/* Wrapper to anchor the overlay absolutely within this section */
.service-hero {
  position: relative;  /* lets .overlay-content-services position over the image */
}

/* Initial blur/scale/opacity while the tiny placeholder is shown */
.lazy-picture.blur-up .lazy-img {
  filter: blur(16px);
  transform: scale(1.02);
  opacity: 0.9;
  transition: filter 300ms ease, transform 300ms ease, opacity 300ms ease;
}

/* Remove blur/scale once the full image has loaded (JS adds .is-loaded) */
.lazy-picture.is-loaded .lazy-img {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* Optional: crisper upscaled placeholder rendering */
.lazy-picture .lazy-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .lazy-picture.blur-up .lazy-img {
    transition: none;
  }
}

/* =========================
   SOCIAL ICONS FOOTER
   ========================= */
.fa {
  padding: 20px;
  font-size: 30px;
  width: 30px;
  text-align: center;
  border-radius: 50%;
}

footer .footer-social i {
  display: inline-block;
  width: 30px;        /* matches your .fa width */
  height: 30px;       /* reserves vertical space so no layout jump */
  line-height: 30px;  /* ensures the icon is vertically centered */
  font-size: 30px;    /* matches existing size */
  vertical-align: middle;
}

/* === FOOTER: final override — keep at very end === */
body footer { background:#2e5f84; color:#fff; padding:2rem 1rem; }
body footer a { color:#fff; text-decoration:none; }
body footer a:hover { color:#c48416; }

/* Kill global custom bullets inside footer */
body footer ul, body footer ol { list-style:none; margin:.75rem 0 0 0; padding:0; }
body footer li { padding-left:0; }
body footer li::before { content:none; }

/* Layout */
footer .footer-container { max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; }
footer .footer-info { flex:1; min-width:260px; margin-bottom:1rem; }
footer .footer-social { flex:1; min-width:200px; text-align:right; }
footer .footer-social a { margin-left:15px; font-size:1.5rem; transition:color .3s; }
footer .footer-social a:hover { color:#c48416; }

/* Low-key quick links */
#footer-links { border:0; text-transform:none; letter-spacing:normal; font-weight:300; font-size:.85rem; }
#footer-links .footer-quicklinks { display:flex; flex-wrap:wrap; flex-direction: column; gap:8px 14px; opacity:.8; }
#footer-links .footer-quicklinks a { color:#fff; font-weight:300; transition:color .3s, opacity .3s; }
#footer-links .footer-quicklinks a:hover { color:#c48416; opacity:1; }

/* Mobile */
@media (max-width:700px){
  footer .footer-container { flex-direction:column; text-align:center; }
  footer .footer-social { text-align:center; margin-top:1rem; }
}

