/* Pathway Woodworking — static rebuild of the WordPress/The7 site */

:root {
  --accent: #19535f;
  --hover: #fca800;
  --yellow: #ffc000;
  --text: #828282;
  --heading: #303030;
  --header-bg: #cbc9ad;
  --top-bar: #5d3a00;
  --boxes: #f4f4f4;
  --footer: #252525;
  --box: 1280px;
  --content: 1150px;
  --gutter: 50px;
  --font: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  --head-font: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
}

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

html { min-height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 28px;
  color: var(--text);
  background: #c89a6a url("../images/background1.jpg") no-repeat center center / cover fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

h1, h2, h3, h4 { color: var(--heading); font-family: var(--head-font); font-weight: 400; margin: 0 0 10px; }
h1 { font-size: 40px; line-height: 50px; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 22px; line-height: 28px; }
h4 { font-size: 18px; line-height: 24px; }
p { margin: 0 0 10px; }

/* ---------- Boxed page ---------- */
.page {
  max-width: var(--box);
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}

.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.masthead {
  position: relative;
  z-index: 50;
  background: var(--header-bg);
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07);
}

.top-bar { background: var(--top-bar); color: #fff; }

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 6px var(--gutter);
  font: 12px / 18px var(--head-font);
}

.mini-widgets { display: flex; gap: 20px; }

.mini-contact { display: inline-flex; align-items: center; gap: 7px; }
.mini-contact svg { width: 13px; height: 13px; fill: #fff; }

.header-bar {
  display: flex;
  align-items: center;
  min-height: 100px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo { flex-shrink: 0; margin-right: 25px; }
.logo img { width: 240px; height: auto; }

.main-nav-wrap { flex: 1; }

.main-nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 -20px 0 0;
  padding: 0;
}

.main-nav a {
  display: block;
  margin: 10px 20px;
  padding: 5px 0;
  color: var(--heading);
  font: 700 14px / 18px var(--head-font);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.main-nav li:last-child a { margin-right: 20px; }

.main-nav a > span { position: relative; display: block; }

/* The7 "upwards line" hover decoration */
.main-nav a > span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.main-nav a:hover, .main-nav a.act { color: var(--accent); }
.main-nav a:hover > span::before, .main-nav a.act > span::before { opacity: 1; transform: translateY(0); }

.mobile-phone { display: none; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 12px 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 5px;
  background: var(--heading);
  border-radius: 2px;
}

.menu-toggle span:last-child { margin-bottom: 0; }

/* Floating hamburger that appears once the header has scrolled away (The7 "floating mobile menu icon") */
.menu-toggle.floating {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  background: rgba(203, 201, 173, 0.95);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  width: 330px;
  max-width: 100vw;
  padding: 45px 15px 30px 30px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.13, 0.62, 0.11, 0.99);
}

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu li { border-top: 1px solid rgba(48, 48, 48, 0.12); }
.mobile-menu li:first-child { border-top: 0; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--heading);
  font: 700 16px / 20px var(--head-font);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover, .mobile-menu a.act { color: var(--accent); }

.mobile-menu-close {
  position: fixed;
  top: 15px;
  left: 345px;
  z-index: 210;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.mobile-menu-close span {
  position: absolute;
  top: 14px;
  left: 3px;
  width: 24px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.mobile-menu-close span + span { transform: rotate(-45deg); }
.mobile-menu-close:hover { transform: rotate(90deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

body.menu-open .mobile-menu { transform: translateX(0); }
body.menu-open .menu-overlay,
body.menu-open .mobile-menu-close { opacity: 1; visibility: visible; }

/* ---------- Revolution Slider replacement (home) ---------- */
.slider {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: #222;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.slide-overlay { position: absolute; inset: 0; }

.slide-layers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  transform: translateY(var(--shift, 0));
  text-align: center;
}

.slide h2 {
  margin: 0 0 var(--gap, 41px);
  color: #fff;
  font: 400 50px / 56px var(--head-font);
}

.slide-butcher h2 { font-weight: 700; }

.slide-btns { display: flex; gap: 27px; }

/* Layers slide up out of a mask (data-frame_0 y:100% with mask), 1.2s power2.inOut, staggered */
.layer-mask { max-width: 100%; overflow: hidden; padding: 2px; }

.layer { transform: translateY(105%); }
.slide.active .layer { animation: layerIn 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards; }
.slide.active .layer-1 { animation-delay: 0.99s; }
.slide.active .layer-2 { animation-delay: 1.65s; }
.slide.active .layer-3 { animation-delay: 2.05s; }
.slide.leaving .layer { transform: none; opacity: 0; transition: opacity 0.3s; }
.slide.active .slide-overlay { animation: fadeIn 0.3s ease; }

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

.rs-btn {
  display: inline-block;
  padding: 15px 18px;
  border-radius: 3px;
  font: 700 14px / 17px var(--head-font);
  text-decoration: none;
  white-space: nowrap;
}

.rs-btn-yellow { background: #ffc000; color: #fff; }
.rs-btn-yellow:hover { background: #fca800; }
.rs-btn-white { background: #fff; color: #303030; }
.rs-btn-white:hover { background: #e8e8e8; }
.rs-btn-dark { background: #303030; color: #fff; }
.rs-btn-dark:hover { background: #464646; }

/* "hesperiden" arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-arrow:hover { background: #000; }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

.slider-arrow::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 9px;
  height: 9px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.slider-arrow.next::before { left: 13px; transform: rotate(-135deg); }

/* "uranus" bullets (shown under 800px, like the original) */
.slider-bullets {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  display: none;
  gap: 15px;
  transform: translateX(-50%);
}

.slider-bullets button {
  width: 15px;
  height: 15px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0);
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.3s;
}

.slider-bullets button::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s, background 0.3s;
}

.slider-bullets button:hover::after,
.slider-bullets button.active::after { background: #fff; transform: scale(0.4); }
.slider-bullets button:hover,
.slider-bullets button.active { box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Main content ---------- */
.main { padding: 70px 0; }
.main.home { padding-top: 40px; }

.section-heading { text-align: center; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }

.heading-line {
  display: block;
  width: 50px;
  margin: 15px auto 5px;
  border-bottom: 3px solid var(--yellow);
}

.section-heading.thin .heading-line { margin: 0 auto; border-bottom-width: 1px; border-color: #ccc; }

/* Home service cards on the grey (#f4f4f4) rows */
.services { background: var(--boxes); padding: 95px 0 85px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.card {
  padding: 30px 30px 22px;
  background: #fff;
  text-align: center;
}

.card img { margin: 0 auto; }

.card h2, .card h3 {
  margin: 20px 0 10px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.card-sub { margin-bottom: 20px; }

/* HGTV row: background image with vertical parallax (Ultimate Addons "vcpb-vz-jquery") */
.featured {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #fff;
}

.parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: #444 no-repeat center / cover;
  will-change: transform;
}

.js .parallax-active .parallax-bg { height: 140%; top: -20%; }

.featured-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }

.featured-inner {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.featured h2 { margin: 0 0 20px; color: #fff; font-weight: 700; }
.featured p { margin: 0 0 30px; color: #fff; }
.featured-logo { padding-top: 0; }

/* Theme button */
.btn {
  display: inline-block;
  padding: 12px 18px 11px;
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  color: #fff;
  font: 700 14px / 16px var(--head-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover { background: var(--hover); color: #fff; }

/* ---------- Page title (portfolio) ---------- */
.page-title {
  display: flex;
  align-items: center;
  min-height: 150px;
  background: #f2f3f3;
  border-bottom: 1px solid rgba(204, 204, 204, 0.5);
}

.page-title-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-title h1 { margin: 0; font-size: 28px; line-height: 34px; }

.breadcrumbs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #999;
  font-size: 12px;
}

.breadcrumbs li + li::before { content: "/"; margin: 0 6px; opacity: 0.5; }
.breadcrumbs a { color: #999; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Album pages: masonry gallery ---------- */
.masonry { display: flex; gap: 40px; align-items: flex-start; }
.masonry-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

/* No-JS fallback: CSS columns */
html:not(.js) .masonry { display: block; column-count: 3; column-gap: 40px; }
html:not(.js) .masonry-item { break-inside: avoid; margin-bottom: 40px; }

.masonry-item img { width: auto; max-width: 100%; height: auto; }

/* The7 rollover: accent tint fades in over the photo */
.rollover { position: relative; display: inline-block; max-width: 100%; line-height: 0; vertical-align: top; }

.rollover i {
  position: absolute;
  inset: 0;
  background: rgba(25, 83, 95, 0.5);
  opacity: 0;
  transition: opacity 450ms ease;
}

.rollover:hover i, .rollover:focus-visible i { opacity: 1; }

/* Loading effect: fade in (dt_fadeIn .7s) */
.js .masonry-item, .js .album { opacity: 0; }
.js .masonry-item.shown, .js .album.shown { animation: dtFadeIn 0.7s ease forwards; }

@keyframes dtFadeIn { to { opacity: 1; } }

.album-meta {
  margin-top: 50px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

.post-navigation { margin-top: 10px; }

.nav-links {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  border: solid rgba(204, 204, 204, 0.5);
  border-width: 1px 0;
}

.nav-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 45%;
  text-decoration: none;
}

.nav-previous { padding-left: 35px; }
.nav-next { padding-right: 35px; margin-left: auto; text-align: right; }

.nav-links svg {
  position: absolute;
  top: 50%;
  width: 32px;
  transform: translateY(-50%);
  fill: rgba(48, 48, 48, 0.12);
  transition: fill 0.3s;
}

.nav-previous svg { left: 0; }
.nav-next svg { right: 0; }
.nav-links a:hover svg { fill: rgba(48, 48, 48, 0.23); }

.meta-nav { color: #999; font-size: 10px; line-height: 16px; text-transform: uppercase; }

.post-title {
  color: var(--heading);
  font: 400 18px / 24px var(--head-font);
  transition: color 0.3s;
}

.nav-links a:hover .post-title { color: var(--accent); }

/* ---------- Portfolio: sort filter + justified album grid ---------- */
.filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-by, .filter-sorting { display: inline-flex; align-items: center; padding: 6px 15px 6px 16px; margin-right: 5px; }

.filter button {
  position: relative;
  display: inline-flex;
  padding: 0;
  background: none;
  border: 0;
  color: var(--heading);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.filter button.act, .filter button:hover { opacity: 1; }
.filter button svg { width: 16px; height: 16px; fill: currentColor; }

.filter-popup {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 999;
  margin-bottom: 15px;
  padding: 2px 6px;
  background: #000;
  border-radius: 2px;
  color: #fff;
  font: 400 10px / 14px Arial, Verdana, sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 10px, 0);
  transition: all 0.25s ease-out;
  pointer-events: none;
}

.filter-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: #000;
}

.filter button:hover .filter-popup { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); }

.filter-switch {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 7px;
  margin: 0 10px;
  background: rgba(25, 83, 95, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.filter-switch-toggle {
  position: absolute;
  top: -1px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 8px;
  transition: left 0.3s ease-out;
}

.filter-switch.right-act .filter-switch-toggle { left: 10px; }

.jgrid { display: flex; flex-wrap: wrap; gap: 40px; }

.album {
  position: relative;
  flex: var(--ratio) 1 calc(var(--ratio) * 250px);
  aspect-ratio: var(--ratio);
  overflow: hidden;
}

.jgrid.laid-out { display: block; position: relative; }
.jgrid.laid-out .album { position: absolute; aspect-ratio: auto; }

.album figure { margin: 0; height: 100%; }
.album-cover, .album-cover img { display: block; width: 100%; height: 100%; }
.album-cover img { object-fit: cover; }

.rollover-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  background: rgba(25, 83, 95, 0.9);
  color: #fff;
  text-align: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.album:hover .rollover-content, .album:focus-within .rollover-content { opacity: 1; }

.rollover-thumbnails { position: relative; display: block; width: 167px; height: 69px; margin: 5px 0; }

.rollover-thumbnails span {
  position: absolute;
  top: 0;
  width: 69px;
  height: 69px;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
}

.rollover-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.rollover-thumbnails .r-thumbn-1 { left: 0; z-index: 3; }
.rollover-thumbnails .r-thumbn-2 { left: 49px; z-index: 2; }
.rollover-thumbnails .r-thumbn-3 { left: 98px; z-index: 1; }

.rollover-content .entry-title { margin: 5px 0; font-size: 18px; line-height: 24px; }
.rollover-content .entry-title a { color: #fff; text-decoration: none; }

.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; font-size: 12px; line-height: 20px; }
.entry-meta > * { position: relative; margin-right: 6px; padding-right: 9px; }
.entry-meta > *:last-child { margin: 0; padding: 0; }
.entry-meta > *:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ---------- Lightbox (replaces PhotoSwipe) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.333s ease, visibility 0.333s;
  touch-action: pan-y;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  transform: scale(0.85);
  transition: transform 0.333s cubic-bezier(0.4, 0, 0.22, 1), opacity 0.2s;
  user-select: none;
}

.lightbox.open img { transform: scale(1); }
.lightbox img.loading { opacity: 0; }

.lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
}

.lb-counter { padding: 0 15px; opacity: 0.75; }

.lightbox button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox button:hover { opacity: 1; }
.lb-close { width: 44px; height: 44px; font-size: 30px; line-height: 1; }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  width: 70px;
  height: 100px;
  margin-top: -50px;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }

.lb-prev::before, .lb-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -4px;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  transform: rotate(45deg);
}

.lb-next::before { margin-left: -12px; transform: rotate(-135deg); }

/* ---------- Contact ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 25px 0 100px;
  text-align: center;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 35px;
  background: #ebebeb;
  border-radius: 50%;
}

.icon-circle svg { width: 26px; height: 26px; fill: #5472d2; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.map { display: block; width: 100%; height: 450px; margin-top: 25px; border: 0; }

.form-intro { margin: 10px 0 10px; text-align: center; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  height: 38px;
  padding: 5px 15px;
  background: #fcfcfc;
  border: 1px solid rgba(173, 176, 182, 0.3);
  border-radius: 0;
  color: #787d85;
  font: 14px / 28px var(--font);
}

.contact-form textarea { height: auto; min-height: 70px; resize: vertical; }

.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(25, 83, 95, 0.6); }
.contact-form .invalid { border-color: #ff5a5a !important; }

.form-status { margin-top: 10px; padding: 10px 15px; border: 2px solid; }
.form-status.success { border-color: #46b450; }
.form-status.error { border-color: #dc3232; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #aaa; font-size: 12px; line-height: 28px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  min-height: 60px;
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.scroll-top {
  position: fixed;
  right: -45px;
  bottom: 10px;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.4s ease;
}

.scroll-top.on { right: 10px; opacity: 1; z-index: 109; }
.scroll-top:hover { background: rgba(0, 0, 0, 0.5); }
.scroll-top svg { width: 24px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer, .slide.active .layer { transform: none !important; animation: none !important; }
  .js .masonry-item, .js .album { opacity: 1 !important; animation: none !important; }
  .slide, .lightbox, .lightbox img { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1239px) {
  .slider { height: 600px; }
  .slide h2 { font-size: 44px; line-height: 50px; font-weight: 700; }
  .rs-btn { font-size: 18px; line-height: 18px; }
  .main-nav a { margin: 10px 12px; }
}

@media (max-width: 1100px) {
  .main-nav a { margin: 10px 8px; font-size: 13px; }
}

@media (max-width: 1023px) {
  .slider { height: 500px; }
  .slide h2 { font-size: 40px; line-height: 50px; }
}

@media (max-width: 989px) {
  :root { --gutter: 20px; }
  body { background-attachment: scroll; }
  .top-bar, .main-nav-wrap { display: none; }
  .header-bar { height: auto; min-height: 60px; padding: 8px 20px; }
  .menu-toggle { display: block; }
  .logo { margin: 0 auto; }
  .logo img { width: 200px; }
  .mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 90px;
    justify-content: flex-end;
    color: var(--heading);
    font: 600 14px / 18px var(--font);
    text-align: right;
  }
  .mobile-phone svg { width: 13px; height: 13px; flex-shrink: 0; fill: var(--heading); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .scroll-top { display: none; }
}

@media (max-width: 799px) {
  .slider-arrow { display: none; }
  .slider-bullets { display: flex; }
}

@media (max-width: 777px) {
  .slider { height: 470px; }
  .slide h2 { font-size: 35px; line-height: 40px; }
  .rs-btn { font-size: 15px; line-height: 17px; }
  .slide-layers { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .featured-inner { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; gap: 10px; margin-bottom: 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .map { height: 340px; }
  .page-title { min-height: 100px; }
  .page-title-inner { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 20px; }
  .main { padding: 50px 0; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .mobile-phone { width: 60px; }
  .slide-btns { gap: 12px; }
  .rs-btn { padding: 13px 15px; }
  .nav-links a { width: 48%; }
  .mobile-menu-close { left: auto; right: 15px; }
  .mobile-menu { width: calc(100vw - 60px); }
}
.lightbox button:focus:not(:focus-visible) { outline: none; }
