/* September review: preserve the design, clarify hierarchy and alignment. */

/* Aligned service titles, descriptions, and links with less space below photos. */
#services-preview .service-card {
  display: flex;
  flex-direction: column;
}
#services-preview .card-body {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(2.3em, auto) 1fr auto;
  gap: 14px;
  padding-top: 18px;
  font-size: clamp(23px, 2vw, 29px);
}
#services-preview .service-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}
#services-preview .service-heading h3 {
  font-size: inherit;
  line-height: 1.15;
  margin: 0;
}
#services-preview .service-heading .icon { margin: 2px 0 0; }
#services-preview .card-body > p { margin: 0; max-width: 36ch; }
#services-preview .text-link { justify-self: start; margin-top: 7px; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 651px) {
    #services-preview .cards { row-gap: 18px; }
    #services-preview .service-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
    }
    #services-preview .card-body { display: contents; }
    #services-preview .service-heading {
      font-size: clamp(23px, 2vw, 29px);
      align-self: start;
    }
    #services-preview .card-body > p { align-self: start; }
    #services-preview .text-link { align-self: end; margin-top: 0; }
  }
}

/* The shared landing-video footer is identical across the site. */
.standard-quote .quote-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(40px, 7vw, 105px);
}
.standard-quote .quote-actions { gap: 20px; }
.standard-quote .quote-actions .btn {
  width: 100%;
  max-width: 370px;
  min-height: 68px;
  padding: 20px 28px;
  font-size: 16px;
}
.standard-quote .phone-link {
  min-height: 44px;
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.025em;
  gap: 14px;
}
.standard-quote .phone-link .icon { width: 25px; height: 25px; }
.standard-quote .email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  max-width: 100%;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.45;
  color: #edf0f2;
}
.standard-quote .email-link .icon { width: 23px; height: 23px; }
.standard-quote .email-link span { overflow-wrap: anywhere; }
.standard-quote .email-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Full-bleed real photography with legible copy. */
.page-hero.full-photo-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 570px;
  padding-block: 100px;
  overflow: hidden;
  background: #10202b;
}
.full-photo-hero .page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.full-photo-hero .page-hero-photo img { filter: none; object-position: 50% 45%; }
.full-photo-hero .page-hero-photo::after { display: none; }
.full-photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 13, 20, .88) 0%, rgba(5, 13, 20, .72) 44%, rgba(5, 13, 20, .12) 100%);
}
.page-hero.full-photo-hero .hero-layout { display: block; }
.page-hero.full-photo-hero .hero-copy-block { max-width: 700px; }
.page-hero.full-photo-hero h1 { font-size: clamp(50px, 6vw, 86px); margin-bottom: 26px; }
.page-hero.full-photo-hero .eyebrow { color: #f3ced9; }
.page-hero.full-photo-hero .hero-copy-block > p:not(.eyebrow) {
  color: #eff2f4;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  max-width: 550px;
}
.contact-hero.full-photo-hero::before {
  background: linear-gradient(90deg, rgba(5, 13, 20, .17) 0%, rgba(5, 13, 20, .67) 45%, rgba(5, 13, 20, .96) 100%);
}
.contact-hero.full-photo-hero .hero-copy-block { margin-left: auto; max-width: 590px; }
.contact-hero.full-photo-hero .page-hero-photo img { object-position: 30% 20%; }

/* Installation emblems share one center line with their labels. */
.installation-stat-grid { padding-block: 52px; gap: 32px; }
.installation-stat { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.installation-stat .stat-emblem {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #58636b;
  border-radius: 50%;
  background: #14222c;
  color: #dc92a9;
}
.stat-emblem .icon { width: 27px; height: 27px; }
.installation-stat > div:last-child { width: 100%; }
.installation-stat strong,
.installation-stat:nth-child(n+3) strong { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.25; margin-bottom: 9px; }
.installation-stat span { max-width: 24ch; margin-inline: auto; font-size: 12px; }

/* Clearly unfinished galleries, without empty image boxes. */
.construction-label { display: inline-flex; align-items: center; gap: 10px; color: #dec697; margin-bottom: 22px; }
.construction-label .icon { width: 18px; height: 18px; }
.construction-label span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.additional-projects h2 { max-width: 800px; margin-bottom: 20px; }
.additional-projects .construction-copy { color: #b8c3cb; font-size: 15px; max-width: 680px; margin-bottom: 38px; }
.pending-project-grid article { grid-template-columns: 58px minmax(0, 1fr); gap: 22px; padding-block: 28px; border-top: 1px solid var(--line); align-items: start; }
.pending-emblem { display: grid; place-items: center; width: 58px; height: 58px; background: #13232e; border: 1px dashed #53636d; color: #99a8b2; }
.pending-project-grid h3 { margin-bottom: 10px; }
.pending-project-grid p { margin-bottom: 14px; }
.gallery-pending-label { display: block; font-size: 11px; color: #b8c3cb; }

/* About has its own identity and a calm, properly fitted brand panel. */
.company-context { border-bottom: 1px solid var(--line); background: #101c25; }
.company-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6vw; padding-block: 42px; }
.company-context-label { display: block; color: #b5c0c7; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.company-context h2 { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.company-context p { font-size: 13px; color: #aebcc5; margin: 0; max-width: 34ch; }
.story-image.story-logo { display: grid; place-items: center; height: auto; min-height: 430px; aspect-ratio: 1; padding: 50px; background: #e0e6e3; border: 1px solid #cbd4cf; }
.story-image.story-logo img { width: 100%; max-width: 400px; height: auto; object-fit: contain; }
.values-heading { display: block; max-width: 850px; margin-bottom: 50px; }
.values-heading .eyebrow { margin-bottom: 20px; }
.values-heading h2 { margin-bottom: 0; }
.value-grid { gap: 34px; }
.value-item { padding-top: 28px; }
.value-item h3 { margin-bottom: 17px; line-height: 1.2; }
.value-item .icon { display: block; margin-bottom: 23px; }
.value-item p { font-size: 14px; line-height: 1.8; max-width: 30ch; }
.contact-info-card { display: block; }
.photo-credit { padding-block: 0 24px; color: #8fa1ad; font-size: 10px; }
.photo-credit summary { cursor: pointer; padding-block: 12px; min-height: 44px; width: fit-content; }
.photo-credit p { max-width: 850px; margin-bottom: 8px; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .contact-hero.full-photo-hero .hero-copy-block { max-width: 520px; }
  .story-image.story-logo { min-height: 350px; padding: 36px; }
  .company-context-grid { gap: 30px; }
}
@media (max-width: 900px) {
  .standard-quote .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .standard-quote .quote-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .standard-quote .quote-actions .btn { margin-bottom: 6px; }
  .installation-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .company-context-grid { gap: 28px; }
  .contact-hero.full-photo-hero .hero-copy-block { margin-left: 0; max-width: 640px; }
  .contact-hero.full-photo-hero::before { background: rgba(5, 13, 20, .76); }
  .contact-hero.full-photo-hero .page-hero-photo img { object-position: 38% 25%; }
  .contact-info-card { display: block; }
  .contact-info-card .contact-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .story-image.story-logo { min-height: 0; max-height: 500px; width: 100%; aspect-ratio: 1.25; }
}
@media (max-width: 650px) {
  #services-preview .card-body { grid-template-rows: auto 1fr auto; gap: 13px; padding-top: 17px; font-size: 26px; }
  #services-preview .text-link { margin-top: 0; }
  .page-hero.full-photo-hero { min-height: 500px; padding-block: 70px; }
  .page-hero.full-photo-hero h1 { font-size: clamp(43px, 10vw, 60px); }
  .page-hero.full-photo-hero .hero-copy-block > p:not(.eyebrow) { font-size: 16px; }
  .service-hero.full-photo-hero::before { background: linear-gradient(90deg, rgba(5, 13, 20, .85), rgba(5, 13, 20, .55)); }
  .service-hero.full-photo-hero .page-hero-photo img { object-position: 55% 50%; }
  .standard-quote .quote-actions .btn { min-height: 64px; font-size: 15px; padding-inline: 20px; }
  .standard-quote .quote-grid h2 { font-size: clamp(36px, 9vw, 46px); }
  .standard-quote .phone-link { font-size: 27px; }
  .standard-quote .email-link { font-size: 15px; gap: 11px; }
  .installation-stat-grid { padding-block: 38px; }
  .installation-stat { gap: 16px; }
  .installation-stat .stat-emblem { width: 58px; height: 58px; }
  .installation-stat strong, .installation-stat:nth-child(n+3) strong { font-size: clamp(20px, 5vw, 28px); }
  .installation-stat span { font-size: 10px; }
  .additional-projects h2 { font-size: 32px; }
  .additional-projects .construction-copy { font-size: 14px; margin-bottom: 30px; }
  .pending-project-grid { gap: 0; }
  .pending-project-grid article { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
  .pending-emblem { width: 48px; height: 48px; }
  .pending-project-grid h3 { font-size: 24px; }
  .company-context-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 34px; }
  .company-context-grid > div + div { padding-top: 25px; border-top: 1px solid var(--line); }
  .company-context-label { margin-bottom: 10px; }
  .company-context h2 { font-size: 24px; margin-bottom: 8px; }
  .company-context p { max-width: 42ch; }
  .story-image.story-logo { padding: 35px; aspect-ratio: 1.15; }
  .values-heading { margin-bottom: 35px; }
  .values-heading h2 { font-size: 38px; }
  .value-grid { gap: 32px 22px; }
  .value-item h3 { font-size: 22px; }
  .value-item p { font-size: 13px; }
  .contact-info-card .contact-detail-list { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .service-card:hover .card-image img,
  .project-image-link:hover > img,
  .text-link:hover .icon,
  .small-link:hover .icon { transform: none; }
}

/* Supplied Zenith photographs: keep the technician clear of the Contact copy. */
.contact-hero.full-photo-hero { min-height: 640px; }
.contact-hero.full-photo-hero .hero-copy-block { margin-left: 0; max-width: 590px; }
.contact-hero.full-photo-hero .page-hero-photo img { object-position: 65% 15%; }
.contact-hero.full-photo-hero::before {
  background: linear-gradient(90deg, rgba(5,13,20,.91), rgba(5,13,20,.77) 38%, rgba(5,13,20,.12) 72%);
}
.install-hero.full-photo-hero { min-height: 650px; }
.install-hero.full-photo-hero .page-hero-photo { height: 100%; }
.install-hero.full-photo-hero .page-hero-photo img { object-position: 50% 67%; }
.install-hero.full-photo-hero .hero-copy-block { max-width: 820px; }
.install-hero.full-photo-hero h1 { font-size: clamp(46px, 5.5vw, 79px); }
.install-hero.full-photo-hero::before {
  background: linear-gradient(90deg, rgba(5,13,20,.88), rgba(5,13,20,.64) 45%, rgba(5,13,20,.17));
}
@media (max-width: 900px) {
  .contact-hero.full-photo-hero .hero-copy-block { max-width: 540px; }
  .contact-hero.full-photo-hero::before {
    background: linear-gradient(90deg, rgba(5,13,20,.88), rgba(5,13,20,.58));
  }
}
@media (max-width: 650px) {
  .contact-hero.full-photo-hero, .install-hero.full-photo-hero { min-height: 550px; }
  .contact-hero.full-photo-hero .page-hero-photo img { object-position: 72% 30%; }
  .install-hero.full-photo-hero .page-hero-photo img { object-position: 60% 60%; }
  .install-hero.full-photo-hero h1 { font-size: clamp(40px, 9.8vw, 58px); }
  .install-hero.full-photo-hero::before { background: rgba(5,13,20,.72); }
}

/* Netlify submission confirmation. */
.submission-success { min-height: 65svh; display: flex; align-items: center; }
.submission-success-copy { max-width: 800px; }
.submission-success-copy h1 { font-size: clamp(42px, 6vw, 80px); }
.submission-success-copy > p:not(.eyebrow) { max-width: 640px; color: #c0cbd2; font-size: 16px; }
.submission-success-copy > p a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.submission-success .success-actions { margin-top: 32px; }
