* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  color: #031638;
  overflow-x: hidden;
}

.site-shell {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  min-height: 250px;
  background: #031638;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 34px 24px 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.site-logo {
  width: 420px;
  max-width: 82vw;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-link {
  border: none;
  background: transparent;
  color: #d9d9d9;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: #d9d9d9;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.content-frame {
  width: min(1060px, calc(100% - 48px));
  height: calc(100vh - 350px);
  min-height: 620px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.page-slider {
  height: 100%;
  width: 500%;
  display: flex;
  transition: transform 0.65s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.page-panel {
  width: 20%;
  height: 100%;
  flex: 0 0 20%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-panel::-webkit-scrollbar {
  display: none;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 60px;
}


.page-title-text {
  color: #031638;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 0 0 26px;
  font-weight: 800;
}

.intro-heading {
  color: #031638;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
  font-weight: 700;
  border: none;
}

.lead {
  font-size: 17px;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 0 34px;
  color: #1d2a44;
}

.cta-row,
.contact-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.contact-box a {
  min-height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn,
.contact-box a {
  background: #031638;
  color: #ffffff;
}

.secondary-btn {
  background: #d9d9d9;
  color: #031638;
}

.info-grid,
.services-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.services-grid {
  align-items: start;
}

.service-card {
  align-self: start;
}

.info-card,
.service-card,
.portfolio-card {
  background: #d9d9d9;
  border-radius: 24px;
  padding: 24px;
  min-height: 150px;
  color: #031638;
}

.portfolio-card {
  min-height: 180px;
  display: flex;
  align-items: end;
  font-size: 22px;
  font-weight: 800;
}

.info-card h3,
.service-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.info-card p,
.service-card p {
  margin: 0;
  line-height: 1.45;
}

.about-page-content {
  max-width: 900px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  max-width: 850px;
}

.about-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #1d2a44;
}

@media (max-width: 780px) {
  .about-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #1d2a44;
}
}

.site-footer {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  color: #031638;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.site-footer a {
  color: #031638;
  text-decoration: none;
  position: absolute;
  left: 24px;
}

@media (max-width: 780px) {
  .site-header {
    min-height: 220px;
    gap: 18px;
  }

  .site-logo {
    width: 300px;
  }

  .site-nav {
    gap: 14px 20px;
  }

  .nav-link {
    font-size: 15px;
  }

  .content-frame {
    width: 100%;
    height: calc(100vh - 276px);
    min-height: 520px;
    margin: 0;
    border-radius: 0;
  }

  .page-content {
    padding: 44px 24px;
  }

  .info-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: 100%;
    height: 64px;
    padding: 0 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .site-footer a {
    position: static;
  }
}


/* ===== FIXED TOP BAR + SCROLLABLE WHITE CONTENT AREA ===== */
:root {
  --site-header-height: 205px;
  --site-footer-height: 56px;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.site-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding: 22px 24px 18px;
  z-index: 100;
  flex-shrink: 0;
}

.site-logo {
  width: 330px;
  max-width: 78vw;
}

.site-nav {
  gap: 24px;
}

.content-frame {
  width: min(1060px, calc(100% - 48px));
  height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
  min-height: 0;
  margin: var(--site-header-height) auto 0;
  overflow: hidden;
  flex: 1;
}

.page-slider {
  height: 100%;
}

.page-panel {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-content {
  padding-top: 70px;
  padding-bottom: 90px;
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  height: var(--site-footer-height);
  z-index: 90;
  background: #ffffff;
}

/* Tablet / phone header adjustment */
@media (max-width: 780px) {
  :root {
    --site-header-height: 195px;
    --site-footer-height: 64px;
  }

  .site-header {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 20px 16px 16px;
    gap: 16px;
  }

  .site-logo {
    width: 275px;
    max-width: 82vw;
  }

  .site-nav {
    gap: 13px 18px;
  }

  .content-frame {
    width: 100%;
    height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
    min-height: 0;
    margin-top: var(--site-header-height);
  }

  .page-content {
    padding-top: 42px;
    padding-bottom: 80px;
  }
}

@media (max-width: 430px) {
  :root {
    --site-header-height: 210px;
  }

  .site-nav {
    max-width: 340px;
  }
}


/* ===== WEBSITE REFINEMENT: safer header nav + smaller home typography ===== */
:root {
  --site-header-height: 190px;
  --site-footer-height: 56px;
}

.site-header {
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding: 18px 24px 20px;
  justify-content: center;
  gap: 14px;
}

.site-logo {
  width: 285px;
  max-width: 78vw;
}

.site-nav {
  gap: 24px;
  transform: translateY(-4px);
}

.nav-link {
  font-size: 16px;
  line-height: 1.2;
}

.content-frame {
  height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
  margin-top: var(--site-header-height);
}

.home-page-content {
  max-width: 820px;
  padding-top: 56px;
  text-align: center;
}

.home-intro {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.8px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.home-image-strip {
  width: 100%;
  max-width: 620px;
  margin: 34px auto 30px;
  display: flex;
  justify-content: center;
}

.home-feature-image {
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0 auto;
}

.home-cta-row {
  justify-content: center;
}

.page-title-text {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.intro-heading {
  font-size: clamp(20px, 2.1vw, 27px);
}

@media (max-width: 780px) {
  :root {
    --site-header-height: 190px;
    --site-footer-height: 64px;
  }

  .site-header {
    padding: 18px 12px 16px;
    gap: 12px;
  }

  .site-logo {
    width: 250px;
  }

  .site-nav {
    gap: 11px 16px;
    transform: translateY(-2px);
  }

  .nav-link {
    font-size: 14px;
  }

  .home-page-content {
    padding-top: 36px;
  }

  .home-image-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 28px auto 26px;
  }

  .home-image-placeholder {
    min-height: 140px;
  }
}


/* ===== REMOVE LARGE PAGE HEADINGS ===== */

.page-content {
  padding-top: 70px;
}

.intro-heading {
  margin-top: 0;
}

.about-page-content .intro-heading,
.home-page-content .intro-heading {
  max-width: 760px;
}

.home-page-content {
  padding-top: 70px;
}

@media (max-width: 780px) {
  .page-content {
    padding-top: 42px;
  }

  .home-page-content {
    padding-top: 42px;
  }
}


/* ===== Contact quote form ===== */
.contact-page-content {
  max-width: 760px;
}

.quote-form {
  width: min(620px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: #d9d9d9;
  color: #031638;
  padding: 0 20px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.quote-form input::placeholder {
  color: #5e6779;
  opacity: 1;
}

.quote-client-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-client-toggle label {
  cursor: pointer;
}

.quote-client-toggle input {
  display: none;
}

.quote-client-toggle span {
  min-height: 48px;
  border-radius: 999px;
  background: #d9d9d9;
  color: #031638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quote-client-toggle input:checked + span {
  background: #031638;
  color: #ffffff;
}

.quote-services-wrap {
  background: #f1f1f1;
  border-radius: 24px;
  padding: 18px;
}

.quote-services-title {
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.quote-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-service-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
}

.quote-service-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #031638;
}

.quote-service-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.quote-service-text span {
  display: block;
  margin-top: 4px;
  color: #556070;
  font-size: 13px;
  line-height: 1.35;
}

.quote-quantity-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}

.quote-quantity-row.hidden,
.quote-result.hidden {
  display: none !important;
}

.quote-quantity-row small {
  font-weight: 800;
  color: #031638;
}

.quote-quantity-row input {
  min-height: 38px !important;
  border-radius: 999px;
  text-align: center;
  padding: 0 10px !important;
}

.quote-result {
  width: min(420px, 100%);
  margin: 4px auto 0;
  background: #031638;
  color: #ffffff;
  border-radius: 24px;
  padding: 16px 22px;
  text-align: center;
}

.quote-result span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
}

.quote-result strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
}

.quote-submit-btn {
  width: fit-content;
  margin: 0 auto;
}

.contact-divider {
  width: min(420px, 100%);
  margin: 34px auto 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: #031638;
}

.contact-divider span {
  height: 2px;
  background: #d9d9d9;
}

.contact-divider strong {
  font-size: 16px;
  font-weight: 800;
}

.direct-contact {
  text-align: center;
}

.direct-contact h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #031638;
}

.direct-contact a {
  display: block;
  color: #031638;
  text-decoration: none;
  font-weight: 800;
  margin-top: 6px;
}

@media (max-width: 780px) {
  .quote-name-grid,
  .quote-client-toggle {
    grid-template-columns: 1fr;
  }

  .quote-quantity-row {
    grid-template-columns: 1fr;
  }

  .quote-result strong {
    font-size: 30px;
  }
}


/* ===== Quote form compact category dropdowns ===== */
.quote-services-wrap {
  padding: 16px;
}

.quote-services-list {
  gap: 12px;
}

.quote-category {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.quote-category-toggle {
  width: 100%;
  min-height: 50px;
  border: none;
  background: #d9d9d9;
  color: #031638;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.quote-category-toggle strong {
  font-size: 24px;
  line-height: 1;
}

.quote-category-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
}

.quote-service-option {
  border: 2px solid #eeeeee;
  padding: 12px 14px;
}

.quote-service-text span {
  display: none !important;
}

.quote-result p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  opacity: 0.9;
}

@media (max-width: 780px) {
  .quote-category-toggle {
    font-size: 15px;
  }
}


/* ===== Quote result route/page + fixed dropdown collapse ===== */
.page-slider {
  width: 1200%;
}

.page-panel {
  width: calc(100% / 12);
  flex: 0 0 calc(100% / 12);
}

.quote-category-options.hidden,
.quote-quantity-row.hidden {
  display: none !important;
}

.quote-result-page-content {
  max-width: 720px;
  text-align: center;
}

.quote-result-card {
  width: min(520px, 100%);
  margin: 28px auto 0;
  background: #d9d9d9;
  color: #031638;
  padding: 34px 28px;
  text-align: center;
}

.quote-result-card > span,
.quote-result-total span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.75;
  margin-bottom: 6px;
}

.quote-result-card > strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 26px;
}

.quote-result-total {
  background: #031638;
  color: #ffffff;
  padding: 22px;
  margin: 0 auto 22px;
}

.quote-result-total strong {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.quote-result-card p {
  max-width: 390px;
  margin: 0 auto 22px;
  line-height: 1.55;
  font-size: 15px;
  font-weight: 700;
}

.quote-category-toggle {
  margin: 0;
}


.quote-disclaimer {
  width: min(520px, 100%);
  margin: 4px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5e6779;
  text-align: center;
  font-weight: 600;
}


/* ===== Portfolio hub + category pages ===== */
.portfolio-page-content,
.portfolio-detail-content {
  max-width: 900px;
}

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

.portfolio-link-card {
  border: none;
  font-family: "Poppins", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.portfolio-link-card:hover {
  transform: translateY(-4px);
  background: #031638;
  color: #ffffff;
}

.portfolio-link-card span {
  display: block;
}

.portfolio-back-btn {
  border: none;
  background: transparent;
  color: #031638;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  margin: 0 0 26px;
}

.portfolio-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.portfolio-category-card {
  min-height: 170px;
  background: #d9d9d9;
  color: #031638;
  padding: 24px;
  display: flex;
  align-items: end;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 780px) {
  .portfolio-grid,
  .portfolio-category-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-category-card {
    min-height: 140px;
  }
}


/* ===== Portfolio subcategory galleries ===== */
.portfolio-category-card {
  border: none;
  font-family: "Poppins", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.portfolio-category-card:hover {
  transform: translateY(-4px);
  background: #031638;
  color: #ffffff;
}

.portfolio-category-card span {
  display: block;
}

.portfolio-gallery {
  margin-top: 34px;
  background: #f1f1f1;
  padding: 24px;
}

.portfolio-gallery.hidden {
  display: none !important;
}

.portfolio-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.portfolio-gallery-header h3 {
  margin: 0;
  font-size: 24px;
  color: #031638;
}

.portfolio-gallery-header button {
  border: none;
  background: #031638;
  color: #ffffff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.portfolio-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-image-placeholder {
  min-height: 190px;
  background: #d9d9d9;
  color: #031638;
  display: flex;
  align-items: end;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 780px) {
  .portfolio-gallery {
    padding: 18px;
  }

  .portfolio-gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-image-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-image-placeholder {
    min-height: 150px;
  }
}


/* ===== MOBILE DROPDOWN MENU + RESPONSIVE LAYOUT REFINEMENT ===== */
/* Desktop layout is unchanged. This section only applies to tablet/phone widths. */

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 780px) {
  :root {
    --site-header-height: 172px;
    --site-footer-height: 64px;
  }

  .site-header {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 20px 16px 18px;
    gap: 14px;
    justify-content: center;
  }

  .site-logo {
    width: min(315px, 78vw);
    max-width: 78vw;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #d9d9d9;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0 18px;
  }

  .mobile-menu-toggle::after {
    content: "▾";
    font-size: 16px;
    margin-left: 10px;
    transform: translateY(-1px);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle::after {
    content: "▴";
  }

  .site-nav {
    position: absolute;
    left: 50%;
    top: calc(100% - 8px);
    transform: translateX(-50%);
    width: min(88vw, 390px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #031638;
    border-radius: 28px;
    padding: 20px 24px 22px;
    box-shadow: 0 18px 38px rgba(3, 22, 56, 0.32);
    z-index: 200;
  }

  .site-header.mobile-menu-open .site-nav {
    display: flex;
  }

  .site-nav::before {
    content: "Menu";
    display: block;
    color: #d9d9d9;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 0 10px;
  }

  .nav-link {
    width: 100%;
    min-height: 42px;
    color: #d9d9d9;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    padding: 7px 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active,
  .nav-link:hover {
    color: #ffffff;
  }

  .content-frame {
    width: 100%;
    height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
    margin-top: var(--site-header-height);
  }

  .page-content {
    width: min(92vw, 820px);
    max-width: 820px;
    padding: 54px 0 120px;
  }

  .home-page-content {
    width: min(92vw, 820px);
    padding-top: 54px;
  }

  .intro-heading,
  .home-intro {
    text-align: left;
  }

  .lead,
  .home-lead {
    text-align: left;
  }

  .quote-form {
    width: min(92vw, 760px);
  }

  .quote-name-grid,
  .quote-client-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .quote-form input[type="text"],
  .quote-form input[type="email"],
  .quote-form input[type="tel"],
  .quote-form input[type="number"],
  .quote-client-toggle span {
    min-height: 58px;
    font-size: 16px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .quote-services-wrap {
    border-radius: 28px;
    padding: 22px;
  }

  .quote-category-toggle {
    min-height: 58px;
    border-radius: 22px;
    padding: 0 24px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card,
  .portfolio-card {
    min-height: 150px;
  }

  .portfolio-filter-row {
    justify-content: center;
    gap: 14px;
  }

  .portfolio-filter-btn {
    min-width: 132px;
    min-height: 54px;
    font-size: 16px;
    padding: 0 20px;
  }

  .portfolio-filtered-grid,
  .portfolio-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .site-nav-footer {
    margin-top: 60px;
  }

  .footer-nav-inner {
    width: min(92vw, 900px);
  }
}

@media (max-width: 520px) {
  .page-content,
  .home-page-content,
  .quote-form {
    width: min(90vw, 430px);
  }

  .quote-name-grid,
  .quote-client-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quote-form input[type="text"],
  .quote-form input[type="email"],
  .quote-form input[type="tel"],
  .quote-form input[type="number"],
  .quote-client-toggle span {
    min-height: 48px;
    font-size: 13px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card,
  .portfolio-card {
    min-height: 130px;
    padding: 18px;
  }

  .service-card h3,
  .portfolio-card {
    font-size: 18px;
  }

  .service-card p {
    font-size: 13px;
  }

  .portfolio-filter-btn {
    min-width: 120px;
    min-height: 48px;
    font-size: 14px;
  }

  .portfolio-filtered-grid,
  .portfolio-image-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== MOBILE MENU POSITION REFINEMENT ===== */
@media (max-width: 780px) {
  :root {
    --site-header-height: 150px;
  }

  .site-header {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 16px 16px 12px;
    gap: 8px;
    justify-content: center;
  }

  .site-logo {
    width: min(270px, 76vw);
  }

  .mobile-menu-toggle {
    min-height: 28px;
    height: 28px;
    font-size: 17px;
    padding: 0 12px;
    margin: 0;
    color: #d9d9d9;
    position: relative;
    z-index: 210;
    text-shadow: none;
  }

  .mobile-menu-toggle::after {
    font-size: 12px;
    margin-left: 7px;
  }

  .site-nav {
    top: calc(100% - 4px);
  }

  .content-frame {
    margin-top: var(--site-header-height);
    height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
  }
}

@media (max-width: 430px) {
  :root {
    --site-header-height: 148px;
  }

  .site-header {
    padding: 16px 14px 10px;
    gap: 7px;
  }

  .site-logo {
    width: min(255px, 76vw);
  }

  .mobile-menu-toggle {
    min-height: 28px;
    height: 28px;
    font-size: 16px;
  }
}


/* ===== MOBILE MENU FINAL POSITION + CURRENT PAGE LABEL ===== */
@media (max-width: 780px) {
  :root {
    --site-header-height: 178px;
  }

  .site-header {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 18px 16px 14px;
    gap: 10px;
    justify-content: center;
    overflow: visible;
  }

  .site-logo {
    width: min(285px, 74vw);
    max-width: 74vw;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #d9d9d9;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0 10px;
    margin: 0;
    position: relative;
    z-index: 220;
    text-shadow: none;
  }

  .mobile-menu-toggle::after {
    content: "▾";
    font-size: 12px;
    margin-left: 8px;
    transform: translateY(-1px);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle::after {
    content: "▴";
  }

  .site-nav {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(88vw, 380px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #031638;
    border-radius: 28px;
    padding: 18px 24px 20px;
    box-shadow: 0 18px 38px rgba(3, 22, 56, 0.32);
    z-index: 210;
  }

  .site-header.mobile-menu-open .site-nav {
    display: flex;
  }

  .site-nav::before {
    content: none !important;
    display: none !important;
  }

  .nav-link {
    width: 100%;
    min-height: 42px;
    color: #d9d9d9;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    padding: 7px 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active,
  .nav-link:hover {
    color: #ffffff;
  }

  .content-frame {
    margin-top: var(--site-header-height);
    height: calc(100vh - var(--site-header-height) - var(--site-footer-height));
  }
}

@media (max-width: 430px) {
  :root {
    --site-header-height: 176px;
  }

  .site-header {
    padding: 18px 14px 12px;
    gap: 9px;
  }

  .site-logo {
    width: min(270px, 74vw);
    max-width: 74vw;
  }

  .mobile-menu-toggle {
    min-height: 28px;
    height: 28px;
    font-size: 16px;
  }

  .site-nav {
    top: calc(100% + 8px);
    width: min(90vw, 360px);
  }
}

