/* Aitken Painting — rebuilt to match the original Flatsome-based WordPress site */
:root {
  --primary: #0495b3;
  --primary-dark: #037a93;
  --text: #777;
  --heading: #555;
  --dark-text: #fff;
  --header-h: 100px;
  --header-h-stuck: 70px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #111; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; color: var(--heading); margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: 1.7em; } h2 { font-size: 1.6em; } h3 { font-size: 1.25em; } h4 { font-size: 1.125em; } h5 { font-size: 1em; }
p { margin: 0 0 1.3em; }
.uppercase { text-transform: uppercase; letter-spacing: .05em; }
.container { max-width: 1110px; margin: 0 auto; padding: 0 15px; }
.dark, .dark h1, .dark h2, .dark h3, .dark h4, .dark h5 { color: var(--dark-text); }
.dark a { color: #fff; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* Buttons */
.button {
  display: inline-block;
  font: 700 .97em/2.4em var(--font);
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 0 1.2em;
  min-height: 2.5em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  color: currentColor;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.button.outline { border-color: currentColor; color: #333; background: transparent; }
.button.outline:hover { background: #333; border-color: #333; color: #fff; }
.button.outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.button.outline-primary:hover { background: var(--primary); color: #fff; }
.button.large { font-size: 1.15em; border-radius: 5px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: height .3s;
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transition: height .3s;
}
.site-header.stuck .header-inner { height: var(--header-h-stuck); }
.header-right { justify-self: end; }
.logo img { max-height: var(--header-h); width: 537px; max-width: 100%; height: auto; object-fit: contain; transition: max-height .3s; }
.site-header.stuck .logo img { max-height: var(--header-h-stuck); width: auto; }

/* Banners */
.banner { position: relative; overflow: hidden; background: var(--primary); }
.banner-bg {
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--pos, 50% 50%);
  transition: transform .6s ease;
}
.banner-overlay { position: absolute; inset: 0; background: var(--overlay, transparent); }
.banner-text {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  text-align: center;
  z-index: 2;
}
.banner.photo, .banner.service { cursor: default; }
.banner.photo:hover .banner-bg, .banner.service:hover .banner-bg { transform: scale(1.1); }

.hero { min-height: 600px; }
.hero .banner-text { width: 89%; }
.hero-kicker { font-size: 1.4em; margin-bottom: .2em; }
.hero-title { font-size: 3.6em; line-height: 1.05; margin-bottom: .4em; }
.hero h5 { font-size: 1.1em; font-weight: 700; margin-bottom: .6em; }

.row-collapse { display: grid; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-3 .banner { min-height: 500px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-4 .banner { min-height: 270px; }
.service h3 { font-size: 1.5em; margin: 0; }

/* About */
.about { background: #fff; min-height: 450px; display: flex; align-items: center; justify-content: center; padding: 50px 15px; }
.about-text { width: 72%; text-align: center; }
.about-text h2 { font-size: 2em; margin-bottom: 1em; color: #333; }

/* Offers */
.section { padding: 30px 0; }
.offers { padding: 60px 0 40px; }
.offers-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; max-width: 930px; }
.offers-list h1 { color: #333; font-size: 2em; }
.offers-list ul { margin: 0; padding-left: 1.3em; }
.offers-list li { margin-bottom: .45em; }
.icon-box { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.icon-box img { width: 69px; height: 69px; flex: none; }
.icon-box h3 { font-size: 1.05em; color: #333; margin-bottom: .3em; }
.icon-box p { margin: 0; font-size: .95em; }

/* Gallery slider */
.gallery { position: relative; margin-top: 17px; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 20%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); transition: background .3s; }
.gallery-item:hover::after { background: rgba(0,0,0,0); }
.slider-nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(0,0,0,.25);
  color: #fff; font-size: 30px; line-height: 36px;
  cursor: pointer; opacity: 0; transition: opacity .3s, background .3s;
}
.gallery:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.slider-nav:hover { background: var(--primary); border-color: var(--primary); }
.slider-nav.prev { left: 20px; } .slider-nav.next { right: 20px; }

/* Partners */
.partners { padding: 35px 0 30px; text-align: center; }
.partners-title { font-size: 2.2em; color: #333; margin-bottom: 25px; }
.partner-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center; }
.partner-logos img { width: 80%; margin: 0 auto; }

/* Contact */
.contact-section {
  background: url(/images/Webp.net-resizeimage.jpg) center / cover no-repeat;
  padding: 60px 15px;
}
.contact-card {
  max-width: 1080px; margin: 0 auto;
  background: rgba(255,255,255,.91);
  box-shadow: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.22);
  min-height: 400px;
  padding: 50px 30px;
  text-align: center;
}
.contact-card h2 { font-size: 1.8em; color: #333; margin-bottom: 1em; }
.contact-card h4 { color: #555; }
.facebook-icon { display: inline-flex; margin-top: 10px; width: 56px; height: 56px; align-items: center; justify-content: center; color: #3a589d; }
.facebook-icon:hover { color: #fff; background: #3a589d; border-radius: 50%; }
.mobile-contact { text-align: center; }

/* Footer */
.site-footer { background: #222; color: rgba(255,255,255,.6); text-align: center; padding: 18px 0; font-size: .9em; }
.site-footer strong { color: rgba(255,255,255,.85); }
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid #999; color: #999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Popups */
.popup {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0; border: 0;
  background: #fff url(/images/411675.png) center / cover no-repeat;
  overflow: auto;
}
.popup::backdrop { background: rgba(11,11,11,.8); }
.popup-inner { min-height: 580px; padding: 60px 40px 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; background: rgba(0,0,0,.35); }
.popup-close {
  position: absolute; top: 4px; right: 8px; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .8;
}
.popup-close:hover { opacity: 1; }
.popup h3 { font-size: 1.6em; }
.popup h5 { margin-bottom: .3em; }
.divider { width: 66px; height: 3px; background: rgba(255,255,255,.4); margin: 1em auto; }
.quote-form { display: grid; gap: 10px; text-align: left; }
.quote-form input, .quote-form textarea {
  width: 100%; font: inherit; font-size: .97em; color: #333;
  padding: .5em .75em; border: 1px solid #ddd; border-radius: 0;
  background: rgba(255,255,255,.95); box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.quote-form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 700; }
.form-status.error { color: #ffb4b4; }

/* Visibility helpers (Flatsome breakpoints) */
.show-for-medium { display: none; }
@media (max-width: 849px) {
  .show-for-medium { display: block; }
  .button.show-for-medium { display: inline-block; margin-top: 10px; }
  .hide-for-medium { display: none !important; }
  .header-left, .header-right { display: none; }
  .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-track { grid-auto-columns: calc(100% / 3); }
  .offers-grid { grid-template-columns: 1fr; gap: 20px; max-width: 600px; }
  .about-text { width: 100%; }
  .slider-nav { opacity: 1; }
}
@media (max-width: 549px) {
  :root { --header-h: 78px; }
  .hero { min-height: 520px; }
  .hero-title { font-size: 2.4em; }
  .cols-3 .banner { min-height: 300px; }
  .cols-4 .banner { min-height: 200px; }
  .service h3 { font-size: 1.15em; }
  .gallery-track { grid-auto-columns: 50%; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .partners-title { font-size: 1.35em; padding: 0 16px; }
  .popup-inner { padding: 50px 20px 30px; min-height: 0; }
  .slider-nav.prev { left: 8px; } .slider-nav.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
