/* =========================================
   VELMIAN CONSTRUCTION
   UNDERPINNING & BASEMENT RENOVATIONS
   REFINED DESIGN
   ========================================= */

.up-page {
  --up-bg: #061b27;
  --up-panel: #0c2734;
  --up-gold: #c6ad83;
  --up-ivory: #f3f0e9;
  --up-muted: #bcc8cb;
  --up-rule: rgba(198, 173, 131, 0.26);

  background: var(--up-bg);
  color: var(--up-ivory);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

.up-page *,
.up-page *::before,
.up-page *::after {
  box-sizing: border-box;
}

.up-page .up-container {
  width: min(1420px, 90%);
  margin-inline: auto;
  padding: 0;
}

.up-page .up-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.up-page h1,
.up-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.up-page h2 {
  font-size: clamp(29px, 2.3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.45px;
  margin: 7px 0 14px;
}

.up-page h3 {
  color: var(--up-ivory);
}

.up-page p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--up-muted);
  margin: 0;
}

.up-page em {
  font-style: normal;
  color: var(--up-gold);
}

.up-page .up-eyebrow {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--up-gold);
}

.up-page .up-center {
  text-align: center;
}

.up-page a {
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

/* =========================================
   HEADER
   ========================================= */

.up-page .header {
  height: 72px;
  background: rgba(5, 21, 30, 0.98);
  border-bottom: 1px solid var(--up-rule);
}

.up-page .header-logo img {
  width: 195px;
}

.up-page .navigation {
  gap: 19px;
}

.up-page .navigation a {
  font-size: 10px;
}

.up-page .header-button {
  font-size: 10px;
  padding: 12px 16px;
}

.up-page .up-mobile-contact {
  display: none;
}

/* =========================================
   HERO SECTION
   ========================================= */

.up-page .up-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 92px 0 32px;

  background:
    linear-gradient(
      90deg,
      #061b27 0%,
      rgba(6, 27, 39, 0.97) 25%,
      rgba(6, 27, 39, 0.72) 49%,
      rgba(6, 27, 39, 0.12) 80%
    ),
    url("../assets/underpinning-hero.png") center 43% / cover no-repeat;

  border-bottom: 1px solid var(--up-rule);
}

.up-page .up-hero-inner {
  width: min(1420px, 90%);
}

.up-page .up-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;

  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--up-gold);
  margin-bottom: 21px;
}

.up-page .up-crumbs a {
  color: var(--up-ivory);
  text-decoration: none;
}

.up-page .up-hero h1 {
  font-size: clamp(38px, 3.25vw, 54px);
  line-height: 1.04;
  max-width: 680px;
  letter-spacing: -0.7px;
  margin: 10px 0 11px;
  color: var(--up-ivory);
}

.up-page .up-line {
  width: 38px;
  height: 2px;
  background: var(--up-gold);
  margin: 12px 0;
}

.up-page .up-hero-copy {
  font-size: 14px;
  max-width: 540px;
  line-height: 1.55;
  color: #e1e7e7;
  margin-bottom: 16px;
}

.up-page .up-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */

.up-page .up-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;

  border: 1px solid var(--up-gold);
  background: var(--up-gold);
  color: #081d29;

  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.7px;

  padding: 12px 20px;
  min-height: 40px;
}

.up-page .up-btn:hover {
  background: #dfc69d;
}

.up-page .up-btn-outline {
  background: transparent;
  color: var(--up-ivory);
}

.up-page .up-btn-outline:hover {
  background: var(--up-gold);
  color: #081d29;
}

/* =========================================
   SERVICES FEATURE STRIP
   ========================================= */

.up-page .up-feature-strip {
  background: #051722;
  border-bottom: 1px solid var(--up-rule);
}

.up-page .up-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 14px;
  padding-bottom: 14px;
}

.up-page .up-features > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  gap: 5px;
  padding: 3px 12px;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.45px;
}

.up-page .up-features > div:not(:last-child) {
  border-right: 1px solid var(--up-rule);
}

.up-page .up-features span {
  color: var(--up-gold);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

/* =========================================
   WHAT WE DO
   ========================================= */

.up-page .up-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 50px;
  align-items: center;
}

.up-page .up-image-frame {
  min-width: 0;
  position: relative;
}

.up-page .up-image-frame::before {
  content: "";
  position: absolute;
  inset: -10px auto auto -10px;

  width: 48%;
  height: 55%;

  border: 1px solid var(--up-rule);
  pointer-events: none;
}

.up-page .up-image-frame img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  position: relative;
}

.up-page .up-about-grid p {
  font-size: 14px;
  line-height: 1.58;
}

.up-page .up-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 17px;
  margin: 18px 0 10px;
}

.up-page .up-check-grid span {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--up-ivory);
}

.up-page .up-check-grid span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--up-gold);
  font-weight: 700;
}

.up-page .up-fineprint {
  font-size: 11px !important;
  color: #aab8bc;
}

/* =========================================
   OUR PROCESS
   ========================================= */

.up-page .up-process-wrap {
  background: #041824;
  border-top: 1px solid var(--up-rule);
  border-bottom: 1px solid var(--up-rule);
}

.up-page .up-process-wrap .up-section {
  padding-top: 34px;
  padding-bottom: 38px;
}

.up-page .up-process-wrap h2 {
  margin-bottom: 25px;
}

.up-page .up-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.up-page .up-process article {
  text-align: center;
  padding: 0 5px;
  position: relative;
}

.up-page .up-process article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 9px;
  color: var(--up-gold);
  font-size: 19px;
}

.up-page .up-step {
  display: grid;
  place-items: center;

  border: 1px solid var(--up-gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;

  font:
    18px Georgia,
    serif;
  color: var(--up-gold);
  margin: 0 auto 11px;
}

.up-page .up-process h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 36px;
  margin: 0 0 7px;
}

.up-page .up-process p {
  font-size: 11px;
  line-height: 1.5;
  max-width: 205px;
  margin: auto;
}

/* =========================================
   ENGINEERING & PERMITS
   ========================================= */

.up-page .up-permits {
  background: #102b37;
}

.up-page .up-permits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.up-page .up-permits-text {
  padding: 30px 45px 30px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.up-page .up-permits-text h2 {
  font-size: clamp(27px, 2.2vw, 36px);
}

.up-page .up-permits-text p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 11px;
}

.up-page .up-permits-grid > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 315px;
  min-height: 275px;
  object-fit: cover;
}

.up-page .up-text-link {
  text-decoration: none;
  border-bottom: 1px solid var(--up-gold);
  color: var(--up-gold);

  padding-bottom: 4px;
  margin-top: 5px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

/* =========================================
   OUR WORK IN ACTION
   ========================================= */

.up-page .up-intro {
  max-width: 810px;
  font-size: 13px;
  margin-bottom: 20px;
}

.up-page .up-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 12px;
}

.up-page .up-gallery figure {
  margin: 0;
  background: #102b37;
  border: 1px solid var(--up-rule);
  overflow: hidden;
}

.up-page .up-gallery img {
  width: 100%;
  height: 165px;
  display: block;
  object-fit: cover;
}

.up-page .up-gallery figcaption {
  padding: 10px 11px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.55px;
}

/* =========================================
   FREQUENTLY ASKED QUESTIONS
   ========================================= */

.up-page .up-faq-wrap {
  background: #041824;
  border-top: 1px solid var(--up-rule);
}

.up-page .up-faq-wrap .up-section {
  padding-top: 40px;
  padding-bottom: 45px;
}

.up-page .up-faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 55px;
  align-items: start;
}

.up-page .up-faq-grid > div:first-child p:last-child {
  font-size: 13px;
  max-width: 350px;
}

.up-page .up-faq-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.up-page .up-faq-list details {
  background: #092431;
  border: 1px solid var(--up-rule);
}

.up-page .up-faq-list summary {
  display: block;
  list-style: none;
  cursor: pointer;
  position: relative;

  padding: 10px 36px 10px 13px;

  font-size: 13px;
  line-height: 1.4;
  color: var(--up-ivory);
}

.up-page .up-faq-list summary::-webkit-details-marker {
  display: none;
}

.up-page .up-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);

  color: var(--up-gold);
  font-size: 18px;
}

.up-page .up-faq-list details[open] summary::after {
  content: "−";
}

.up-page .up-faq-list details[open] {
  border-color: var(--up-gold);
}

.up-page .up-faq-list details p {
  padding: 0 13px 12px;
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================
   FINAL CTA
   ========================================= */

.up-page .up-final {
  text-align: center;
  padding: 45px 0;

  background:
    linear-gradient(rgba(4, 19, 28, 0.85), rgba(4, 19, 28, 0.9)),
    url("../assets/Finish basement.png") center / cover;
}

.up-page .up-final h2 {
  margin: 9px 0 10px;
}

.up-page .up-final p:not(.up-eyebrow) {
  max-width: 580px;
  margin: 0 auto 16px;
  font-size: 13px;
}

/* =========================================
   FOOTER
   ========================================= */

.up-page .up-footer {
  background: #03131b;
  border-top: 1px solid var(--up-rule);
  padding: 16px 0;
}

.up-page .up-footer .up-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.up-page .up-footer span,
.up-page .up-footer a {
  text-decoration: none;
  color: #b6c2c5;
  font-size: 10px;
  letter-spacing: 0.7px;
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (max-width: 1050px) {
  .up-page .up-about-grid {
    gap: 28px;
  }

  .up-page .up-process {
    gap: 9px;
  }

  .up-page .up-gallery img {
    height: 135px;
  }

  .up-page .up-process article:not(:last-child)::after {
    right: -10px;
  }
}

@media (max-width: 850px) {
  .up-page .header {
    height: 76px;
  }

  .up-page .up-mobile-contact {
    display: inline-flex;
    color: var(--up-gold);
    border: 1px solid var(--up-gold);
    text-decoration: none;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
  }

  .up-page .up-hero {
    padding-top: 110px;
    min-height: 400px;
  }

  .up-page .up-hero h1 {
    font-size: clamp(34px, 6.2vw, 52px);
  }

  .up-page .up-about-grid {
    grid-template-columns: 1fr;
  }

  .up-page .up-image-frame img {
    height: 300px;
  }

  .up-page .up-process {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }

  .up-page .up-process article::after {
    display: none;
  }

  .up-page .up-permits-grid {
    grid-template-columns: 1fr;
  }

  .up-page .up-permits-text {
    padding: 28px 0;
  }

  .up-page .up-permits-grid > img {
    max-height: 260px;
    min-height: 220px;
  }

  .up-page .up-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .up-page .up-gallery img {
    height: 190px;
  }

  .up-page .up-faq-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */

@media (max-width: 560px) {
  .up-page .header-logo img {
    width: 145px;
  }

  .up-page .up-mobile-contact {
    font-size: 9px;
    padding: 8px;
  }

  .up-page .up-section {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .up-page .up-hero {
    min-height: 460px;
    padding: 104px 0 27px;
    background-position: 60% center;
  }

  .up-page .up-hero h1 {
    font-size: clamp(34px, 8.4vw, 46px);
  }

  .up-page .up-hero-copy {
    font-size: 14px;
  }

  .up-page .up-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .up-page .up-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
  }

  .up-page .up-features > div {
    border-right: none !important;
    font-size: 10px;
  }

  .up-page .up-check-grid {
    grid-template-columns: 1fr;
  }

  .up-page .up-process {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .up-page .up-process h3 {
    min-height: 0;
  }

  .up-page .up-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .up-page .up-gallery img {
    height: 125px;
  }

  .up-page .up-gallery figcaption {
    font-size: 9px;
  }

  .up-page .up-footer .up-container {
    justify-content: center;
    text-align: center;
  }
}

/* ===== PREMIUM VELMIAN FEATURE ICONS ===== */

.up-page .up-features > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 16px 12px;
  text-align: center;
}

.up-page .up-features svg {
  width: 34px;
  height: 34px;
  color: #c6ad83;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.up-page .up-features span {
  color: #f3f0e9;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.7px;
}

.up-page .up-features > div:not(:last-child) {
  border-right: 1px solid rgba(198, 173, 131, 0.25);
}

/* Mobile */

@media (max-width: 600px) {
  .up-page .up-features svg {
    width: 29px;
    height: 29px;
  }

  .up-page .up-features span {
    font-size: 10px;
  }
}
