/*
Theme Name: Perfect Solutions Child
Theme URI: https://perfectsolutions.ca/
Description: Source-faithful Perfect Solutions rebuild theme.
Author: Codex
Template: Divi
Version: 0.1.0
*/

:root {
  --ps-orange: #ffa21c;
  --ps-orange-deep: #b93504;
  --ps-ink: #222222;
  --ps-paper: #fffaf4;
  --ps-page-field: #fffaf4;
  --ps-cream: #fff6e8;
  --ps-card-gradient: linear-gradient(180deg, rgba(255, 246, 232, 0.98), rgba(255, 239, 214, 0.96));
  --ps-body: #333333;
  --ps-border: rgba(34, 34, 34, 0.12);
  --ps-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 162, 28, 0.09), rgba(255, 162, 28, 0)),
    var(--ps-paper);
  color: var(--ps-body);
  font-family: Ubuntu, Arial, sans-serif;
}

html {
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  min-height: 100%;
  overflow-y: auto;
}

body.home {
  overflow-y: auto;
}

#page-container {
  background: var(--ps-page-field);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#et-boc {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 0;
}

#et-main-area,
.et-l--body {
  background: var(--ps-page-field);
  flex: 1 0 auto;
}

#et-main-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#main-content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 0;
}

body.mobile-nav-open {
  overflow: hidden;
}

a {
  color: var(--ps-orange);
}

a:hover {
  color: var(--ps-orange-deep);
}

.site-shell {
  min-height: 0;
  display: block;
  width: 100%;
  max-width: none;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--ps-ink);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.mobile-nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav-toggle-icon::before {
  top: -7px;
}

.mobile-nav-toggle-icon::after {
  top: 7px;
}

body.mobile-nav-open .mobile-nav-toggle-icon {
  background: transparent;
}

body.mobile-nav-open .mobile-nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

body.mobile-nav-open .mobile-nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 310px;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35)),
    url("/img/gray-x-pattern.png") center top repeat,
    var(--ps-ink);
  color: #fff;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
  z-index: 20;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 40px 22px 24px;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  display: block;
  max-width: 235px;
  width: 100%;
  height: auto;
}

.brand-name {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ps-orange);
  font-family: "Zilla Slab Light", Georgia, serif;
  text-align: center;
}

.sidebar-tagline {
  margin: 0;
  padding: 0 6px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav {
  margin-top: 4px;
}

.sidebar-nav.et_pb_menu {
  background: transparent !important;
  width: 100%;
}

.sidebar-nav.et_pb_menu .et_pb_menu_inner_container {
  display: block !important;
}

.sidebar-nav.et_pb_menu .et_pb_menu__wrap,
.sidebar-nav.et_pb_menu .et_pb_menu__menu,
.sidebar-nav.et_pb_menu .et_pb_menu__menu > nav {
  width: 100%;
}

.sidebar-nav.et_pb_menu .et_pb_menu__menu > nav > ul,
.sidebar-nav.et_pb_menu .et-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
  width: 100%;
}

.sidebar-nav.et_pb_menu .et-menu > li {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sidebar-nav.et_pb_menu .et-menu > li > a {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 120ms ease, background-color 120ms ease;
}

.sidebar-nav.et_pb_menu .et-menu > li > a:hover,
.sidebar-nav.et_pb_menu .current-menu-item > a,
.sidebar-nav.et_pb_menu .current_page_item > a {
  background: rgba(255, 162, 28, 0.18);
  transform: translateX(2px);
}

.sidebar-nav.et_pb_menu .et_mobile_nav_menu {
  display: none !important;
}

.sidebar-nav.et_pb_menu .et-menu li a {
  padding: 11px 14px !important;
}

.site-main-wrap {
  margin-left: 310px;
  display: block;
  width: auto;
  padding: 14px 30px 6px;
  background: var(--ps-page-field);
}

.rates-page {
  background: var(--ps-page-field) !important;
}

.rates-page .et_pb_row,
.rates-page .et_pb_column {
  background: var(--ps-page-field) !important;
}

.et-l--body .et_pb_section_0_tb_body,
.et-l--body .et_pb_row_0_tb_body,
.et-l--body .et_pb_column_0_tb_body {
  width: 100% !important;
  max-width: none !important;
  background: var(--ps-page-field) !important;
}

.rates-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 30px 8px;
  background: var(--ps-card-gradient);
  border: 1px solid rgba(185, 53, 4, 0.08);
  border-radius: 24px;
  box-shadow: var(--ps-shadow);
  overflow: hidden;
}

.rates-card .et_pb_module {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.rates-card .et_pb_text_inner {
  background: transparent !important;
}

.rates-card .et_pb_text {
  padding: 0 !important;
}

.rates-card .rates-copy p {
  margin: 0;
  padding-bottom: 0 !important;
}

.rates-card .rates-list {
  margin: 8px 0 0;
  padding-left: 22px;
}

.rates-card .rates-list li {
  margin: 0 0 9px;
}

.rates-card .rates-list li:last-child {
  margin-bottom: 0;
}

body.home #page-container {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02)),
    url("/wp-content/uploads/2026/05/tool_belt_and_hammer-3840x2507-1-scaled.jpg") center center / cover no-repeat;
}

body.home #et-main-area,
body.home .et-l--body,
body.home #main-content,
body.home .site-main-wrap {
  background: transparent;
}

body.home .et-l--body .et_pb_section_0_tb_body,
body.home .et-l--body .et_pb_row_0_tb_body,
body.home .et-l--body .et_pb_column_0_tb_body {
  background: transparent !important;
}

body.home .site-main-wrap {
  padding: 4px 30px 0;
}

body.home .site-main-wrap .et_pb_section,
body.home .site-main-wrap .et_pb_row,
body.home .site-main-wrap .et_pb_column,
body.home .site-main-wrap .et_pb_module:not(.home-card-shell) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home .home-card-shell {
  display: block;
  width: min(680px, calc(100% - 18px));
  max-width: calc(100% - 18px);
  margin: 0 auto;
  padding: 18px 24px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    var(--ps-card-gradient);
  border: 1px solid rgba(185, 53, 4, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(40, 18, 8, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.home .home-card-shell .et_pb_module,
body.home .home-card-shell .et_pb_post_content {
  margin: 0 !important;
  padding: 0 !important;
}

body.home .home-card-shell .et-l--post,
body.home .home-card-shell .et_builder_inner_content,
body.home .home-card-shell .et_pb_section,
body.home .home-card-shell .et_pb_row,
body.home .home-card-shell .et_pb_column,
body.home .home-card-shell .et_pb_text {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.home .home-card-shell .home-title h1,
body.home .home-card-shell .home-title h2 {
  margin: 0 0 4px;
  font-family: "Zilla Slab Light", Georgia, serif;
}

body.home .home-card-shell .home-tagline p,
body.home .home-card-shell .home-contact p,
body.home .home-card-shell .home-intro p,
body.home .home-card-shell .home-services p {
  margin: 0 0 3px;
}

body.home .home-card-shell a {
  color: var(--ps-orange);
  text-decoration: none;
}

body.home .home-card-shell a:hover,
body.home .home-card-shell a:focus-visible {
  color: var(--ps-orange-deep);
  text-decoration: underline;
}

body.home .home-card-shell .home-services ul {
  margin: 2px 0 6px;
  padding-left: 20px;
}

body.home .home-card-shell .home-services li {
  margin: 0 0 2px;
}

body.home .home-card-shell .home-services li a {
  text-decoration: none;
}

body.home .home-card-shell .et_pb_button_module_wrapper {
  margin: 5px 0 0 !important;
}

body.home .home-card-shell .home-callout,
body.home .home-card-shell .home-callout .et_pb_button,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout a.et_pb_button,
body.home .home-card-shell a.et_pb_button.home-callout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: min(100%, 540px);
  min-height: 0;
  box-sizing: border-box;
  padding: 11px 20px !important;
  margin: 0 !important;
  color: var(--ps-ink) !important;
  background: #f3dec2 !important;
  border: 1px solid rgba(185, 53, 4, 0.22) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(67, 35, 10, 0.08) !important;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.32 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  text-align: center;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body.home .home-card-shell .home-callout::after,
body.home .home-card-shell .home-callout .et_pb_button::after,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout a.et_pb_button::after,
body.home .home-card-shell a.et_pb_button.home-callout::after {
  content: none !important;
  display: none !important;
}

body.home .home-card-shell .home-callout:hover,
body.home .home-card-shell .home-callout:focus-visible,
body.home .home-card-shell .home-callout .et_pb_button:hover,
body.home .home-card-shell .home-callout .et_pb_button:focus-visible,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout:hover,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout:focus-visible,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout a.et_pb_button:hover,
body.home .home-card-shell .et_pb_button_module_wrapper.home-callout a.et_pb_button:focus-visible,
body.home .home-card-shell a.et_pb_button.home-callout:hover,
body.home .home-card-shell a.et_pb_button.home-callout:focus-visible {
  color: #fff !important;
  background: linear-gradient(180deg, var(--ps-orange), var(--ps-orange-deep)) !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 20px rgba(185, 53, 4, 0.22) !important;
  transform: translateY(-1px);
}

body.page-id-7 #main-content,
body.page-id-7 .site-main-wrap,
body.page-id-7 .page-panel,
body.page-id-7 .page-panel-inner,
body.page-id-7 .site-main-wrap .et_pb_post_content,
body.page-id-7 .site-main-wrap .et_pb_section,
body.page-id-7 .site-main-wrap .et_pb_row,
body.page-id-7 .site-main-wrap .et_pb_column {
  background: var(--ps-page-field) !important;
}

.page-title {
  margin: 0 0 18px;
}

.page-title .entry-title {
  margin: 0 0 18px;
  color: var(--ps-orange);
  font-family: "Zilla Slab Light", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
}

.page-title .et_pb_title_meta_container {
  display: none !important;
}

body.page-id-6 .page-title {
  display: none !important;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3 {
  margin: 0 0 4px;
  font-family: "Zilla Slab Light", Georgia, serif;
  color: var(--ps-orange-deep);
}

.hero-copy h2 {
  font-size: 1.85rem;
  line-height: 1.1;
}

.hero-copy p strong {
  white-space: nowrap;
}

.hero-copy p {
  margin: 0 0 4px;
}

.service-list {
  margin: 4px 0 0;
  padding-left: 22px;
}

.service-list li {
  margin: 0 0 2px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
  gap: 22px;
  align-items: start;
}

.contact-main {
  min-width: 0;
}

.contact-main > p:first-child {
  margin-top: 0;
}

.contact-main .et_pb_contact_form_container {
  margin: 0 !important;
  max-width: 100% !important;
}

.contact-main .et_pb_contact {
  margin: 0;
}

.contact-main .et_pb_contact_form {
  margin: 0;
}

.contact-main .et_pb_contact_field {
  margin-bottom: 12px;
}

.contact-main .et_contact_bottom_container {
  text-align: left;
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.contact-main .et_pb_contact_form_container .et_pb_button_wrapper {
  margin: 0;
}

.contact-main .et_pb_contact_form_container .et_pb_contact_submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: var(--ps-card-gradient);
  color: var(--ps-ink) !important;
  border: 1px solid rgba(185, 53, 4, 0.15);
  border-radius: 18px;
  padding: 10px 18px;
  box-shadow: none;
  text-transform: none;
}

.contact-main .et_pb_contact_form_container .et_pb_contact_submit:hover,
.contact-main .et_pb_contact_form_container .et_pb_contact_submit:focus-visible {
  color: #fff !important;
  background: #d04a06;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(185, 53, 4, 0.18);
}

.contact-card {
  max-width: 540px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(185, 53, 4, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(67, 35, 10, 0.08);
}

.contact-card p {
  margin: 0;
  line-height: 1.75;
}

.contact-card-highlight {
  margin: 12px 0 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--ps-card-gradient);
  border: 1px solid rgba(185, 53, 4, 0.08);
}

.contact-card-highlight p {
  margin: 0;
}

.contact-card-highlight a {
  display: inline-block;
  margin-top: 4px;
}

.contact-card a {
  color: var(--ps-orange);
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.contact-layout .contact-card {
  margin-bottom: 0;
}

.gallery-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.gallery-tiles br {
  display: none;
}

.gallery-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 10px 10px 8px;
  flex: 1 1 calc(50% - 7px);
  max-width: calc(50% - 7px);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: var(--ps-card-gradient);
  color: var(--ps-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(185, 53, 4, 0.25);
  box-shadow: 0 12px 26px rgba(67, 35, 10, 0.11);
  color: var(--ps-ink);
}

.gallery-tile-media {
  display: block;
  margin-bottom: 0 !important;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  background: rgba(255, 255, 255, 0.35);
}

.gallery-tile-media .et_pb_image_wrap {
  display: block;
  height: 100%;
}

.gallery-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile-title-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.gallery-tile-title-wrap .et_pb_text_inner {
  line-height: 1;
}

.gallery-tile-title {
  display: block;
  margin: 0;
  padding-bottom: 0 !important;
  font-family: "Zilla Slab Light", Georgia, serif;
}

.gallery-tile-title-wrap .et_pb_text_inner p {
  padding-bottom: 0 !important;
}

.gallery-tile-title a {
  color: inherit;
  text-decoration: none;
}

.project-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ps-border);
}

.project-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.project-section h2 {
  margin: 0 0 8px;
  color: var(--ps-orange-deep);
  font-family: "Zilla Slab Light", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.project-section p {
  margin: 0 0 14px;
}

.project-gallery .et_pb_gallery_items,
.project-gallery .et_pb_gallery_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.project-gallery .et_pb_gallery_item {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  background: var(--ps-card-gradient);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.project-gallery .et_pb_gallery_item:hover,
.project-gallery .et_pb_gallery_item:focus-within {
  border-color: rgba(185, 53, 4, 0.25);
  box-shadow: 0 12px 26px rgba(67, 35, 10, 0.11);
}

.project-gallery .et_pb_gallery_image {
  border-radius: 12px;
  overflow: hidden;
}

.project-gallery .et_pb_gallery_image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery .et_pb_gallery_caption {
  display: none;
}

.ps-lightbox-open {
  overflow: hidden;
}

.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: rgba(0, 0, 0, 0.82);
}

.ps-lightbox-frame {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
}

.ps-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.ps-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ps-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ps-lightbox-close:hover,
.ps-lightbox-close:focus-visible {
  background: var(--ps-orange-deep);
  color: #fff;
}

.site-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  margin-left: 310px;
  margin-top: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0)),
    var(--ps-ink);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 7px 30px 8px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-nav a {
  display: inline-block;
  padding: 2px 0;
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-contact-label {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  white-space: nowrap;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

.footer-contact-address .footer-address-lines {
  display: grid;
  gap: 2px;
}

.footer-contact-address .footer-address-lines div {
  white-space: nowrap;
}

.footer-contact-address .footer-address-lines div:first-child {
  color: var(--ps-orange);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-main-wrap {
    padding: 22px 22px 12px;
  }

  .page-panel-inner {
    padding: 22px;
  }

  .page-title {
    margin-bottom: 12px;
  }

  .footer-inner {
    width: 100%;
    padding: 12px 22px 14px;
  }

  .project-gallery .et_pb_gallery_items,
  .project-gallery .et_pb_gallery_grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .gallery-tiles {
    gap: 12px;
  }

  .gallery-tile-media {
    height: 128px;
    aspect-ratio: auto;
  }

  .gallery-tile {
    gap: 6px;
    padding-bottom: 7px;
  }

}

@media (max-width: 900px) {
  html,
  body,
  #page-container {
    background:
      linear-gradient(180deg, rgba(255, 162, 28, 0.09), rgba(255, 162, 28, 0)),
      var(--ps-page-field);
  }

  body {
    overflow-y: auto;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .site-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(86vw, 320px);
    max-width: 320px;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 30;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-nav-open .site-sidebar {
    transform: translateX(0);
  }

  .sidebar-inner {
    min-height: 100vh;
    padding: 70px 14px 16px;
    gap: 12px;
  }

  .site-main-wrap,
  .site-footer {
    margin-left: 0;
  }

  .site-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
  }

  .site-main-wrap {
    padding: 74px 14px 22px;
  }

  .page-panel-inner,
  .footer-inner {
    padding: 18px 16px;
  }

  .footer-nav .menu {
    justify-content: center;
    text-align: center;
    gap: 8px 12px;
  }

  .brand {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .brand img {
    max-width: 72px;
    flex: 0 0 72px;
  }

  .brand-name {
    font-size: 1.5rem;
    text-align: left;
  }

  .sidebar-tagline {
    font-size: 0.85rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }

  .sidebar-nav .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar-nav .menu-item a {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-name {
    text-align: center;
  }

  .sidebar-tagline {
    text-align: center;
  }

  .sidebar-nav .menu {
    grid-template-columns: 1fr;
  }

  .gallery-tiles {
    display: flex;
    flex-direction: column;
  }

  .gallery-tile {
    max-width: 100%;
  }

  .project-gallery .et_pb_gallery_items,
  .project-gallery .et_pb_gallery_grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .footer-contact-label,
  .footer-contact a,
  .footer-contact-address .footer-address-lines div {
    white-space: normal;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}
