/* KL Home Remodeling in the Sonora look: only what the template's stylesheet does not cover. */

.brand>span{font-size:24px;letter-spacing:-.7px;word-spacing:3px;white-space:nowrap}
.footer-brand .brand-letters>span{font-weight:600!important}
.mobile-nav[hidden]{display:none}
.hero-image{object-position:54% 46%}

/* Six services in three columns. */
.service-grid{grid-template-columns:repeat(3,1fr);gap:58px 30px}


/* Meet the owner: bio and numbers beside the portrait. */
.owner-story{display:flex;flex-direction:column;justify-content:center;min-width:0}
.owner-bio{display:flex;flex-direction:column;gap:20px;max-width:570px;padding-bottom:46px}
.owner-bio p{font-size:16px;line-height:1.75;color:#C9CFE5}
.owner-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding-top:36px}
.owner-stat{display:flex;flex-direction:column;gap:14px;min-width:0}
.owner-stat strong{font-size:54px;font-weight:300;line-height:1.05;letter-spacing:-.055em}
.owner-stat .mono{font-size:8px;max-width:150px}
.material-frontplate>img{object-position:50% 12%}
.owner .material-feature-copy>.mono:first-child{position:static;margin-bottom:16px}


/* Footer contact. */
.footer-note p{font-size:18px}
.footer-copy{display:flex;flex-wrap:wrap;gap:8px 26px;margin-top:10px}
.footer-copy .text-link{font-size:11px;gap:14px;padding:0}
.footer-bottom>span:nth-child(2){text-align:center}

/* Estimate form: short fields side by side. */
.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px}

@media(max-width:1023px){
  .service-grid{grid-template-columns:1fr 1fr}
  .owner-stat strong{font-size:42px}
}
@media(max-width:640px){
  .brand>span{font-size:20px;letter-spacing:-.5px;word-spacing:2px}
  .hero-image{object-position:50% 30%}
  .owner-bio{padding-bottom:36px}
  .owner-bio p{font-size:14px}
  .owner-stats{gap:14px;padding-top:28px}
  .owner-stat strong{font-size:36px}
  .owner-stat .mono{font-size:7px}
  .hero-shade{background:linear-gradient(180deg,#0C1330B8 0%,#0C133040 24%,#0C133088 61%,#0C1330F2 100%)}
  .projects-statement p br{display:none}
  .footer-brand,.footer-note{grid-column:1/-1}
  .footer-note p{font-size:17px}
  .footer-bottom>span:nth-child(2){order:3;flex-basis:100%;text-align:left}
  .form-pair{grid-template-columns:1fr;gap:19px}
  /* On a phone the name sits over the shirt collar: a deeper shade keeps it readable. */
  .owner .material-frontplate:after{background:linear-gradient(#131C3F11,#131C3F00 30%,#131C3FA8 58%,#131C3FF0)}
}
/* "30+" is a fixed figure here, not a running counter: normal figures sit tighter. */
.mosaic-count>span:first-child{font-variant-numeric:normal}

/* Our work: the firm's own job photos, under the statement. On a desktop each row is three portrait
   photos and a wide one; on tablets and phones they are plain squares, like the place cards above. */
.work{position:relative;margin-top:64px;padding-top:30px}
.work>.motion-rule{position:absolute;top:0;left:0}
.work-label{padding-bottom:26px}
.work-label h3{font-weight:400}
.work-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:30px 16px}
.work-tile{display:flex;flex-direction:column;min-width:0}
.work-tile.is-wide{grid-column:span 2}
.work-photo{position:relative;overflow:hidden;aspect-ratio:3/4;background:var(--surface)}
.work-tile.is-wide .work-photo{aspect-ratio:auto;flex:1;min-height:0}
.work-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--wide,50% 50%)}
.work-tile figcaption{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.work-tile figcaption>span:first-child{font-size:14px;line-height:1.3;letter-spacing:-.01em}
.work-tile figcaption>.mono{color:var(--muted);font-size:8px}
@media(max-width:1023px){
  .work{margin-top:48px;padding-top:26px}
  .work-grid{grid-template-columns:repeat(4,1fr);gap:24px 12px}
  .work-tile.is-wide{grid-column:auto}
  .work-photo,.work-tile.is-wide .work-photo{aspect-ratio:1;flex:none}
  .work-photo img{object-position:var(--square,50% 50%)}
  .work-tile figcaption{gap:6px;margin-top:11px}
  .work-tile figcaption>span:first-child{font-size:12.5px}
}
@media(max-width:640px){
  .work{margin-top:40px;padding-top:24px}
  .work-label{padding-bottom:20px}
  .work-grid{grid-template-columns:1fr 1fr;gap:22px 13px}
  .work-tile figcaption>span:first-child{font-size:12px;line-height:1.4}
  .work-tile figcaption>.mono{letter-spacing:.025em;font-size:7px}
}

/* Estimate dialog: centred prompt with call and text pills. */
.estimate-content{text-align:center;display:flex;flex-direction:column;align-items:center}
.estimate-icon{width:76px;height:76px;border-radius:50%;background:#3354B8;display:flex;align-items:center;justify-content:center;margin:12px auto 28px}
.estimate-content p{max-width:30ch;margin:14px auto 0}
.estimate-choice{display:flex;flex-direction:column;gap:12px;width:100%;max-width:340px;margin:30px auto 8px}
.choice-pill{display:flex;justify-content:space-between;align-items:center;gap:16px;height:58px;padding:0 7px 0 26px;border-radius:999px;text-decoration:none;font-size:16px;color:#fff;background:#3354B8;transition:background .25s,color .25s}
.choice-pill:hover{background:#4467D1}
.choice-arrow{width:44px;height:44px;border-radius:50%;background:#fff;color:#131C3F;display:flex;align-items:center;justify-content:center;flex:none}
.choice-text{background:#fff;color:#131C3F}
.choice-text:hover{background:#EEF1F7}
.choice-text .choice-arrow{background:#131C3F;color:#fff}

/* Estimate prompt: white panel with navy text. */
.story-dialog.estimate-dialog{background:#fff;color:#131C3F;border-color:#D9DEEA}
.story-dialog.estimate-dialog .dialog-content>h2{color:#131C3F}
.story-dialog.estimate-dialog .dialog-content>p{color:#4A5478}
.story-dialog.estimate-dialog .close-dialog{color:#6B7599}
.story-dialog.estimate-dialog .close-dialog:hover{color:#3354B8}
.story-dialog.estimate-dialog .choice-text{box-shadow:inset 0 0 0 1px #131C3F}
.story-dialog.estimate-dialog{border-radius:28px;overflow:hidden}

/* The small line over the hero is the page heading; the large words keep their look. */
.hero-tags h1{font:inherit;letter-spacing:inherit;text-transform:uppercase}
.hero .hero-title{margin:0}

/* Card numbers stay readable over a pale sky. */
.project-number{text-shadow:0 0 8px #131C3F,0 1px 3px #131C3FCC}

/* The hero photo has a pale ceiling: a deeper band at the top keeps the small lines readable. */
@media(min-width:641px){.hero-shade{background:linear-gradient(#0C1330B8,#0C133066 16%,#0C133000 36%,#0C133022 46%,#0C1330BF 77%,#0C1330F5)}}

/* Arrows are drawn, not typed: phones turn typed arrows into emoji. */
.ar{display:inline-block;width:1em;height:1em;vertical-align:-.16em;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.gallery-cursor .ar{stroke-width:1.1}
.desktop-nav .ar,.material-caption .ar{width:.88em;height:.88em}

/* Footer line: fixed places on every phone. The copyright and "Back to top" share the first row, the place sits below.
   (Touch screens make the link 44px tall; without a set row the link's text dropped below the copyright.) */
.footer-bottom{align-items:center}
@media(max-width:640px){
  .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:18px;row-gap:2px}
  .footer-bottom>span:nth-child(1){grid-column:1;grid-row:1}
  .footer-bottom>a{grid-column:2;grid-row:1;justify-self:end;margin-left:0;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
  .footer-bottom>span:nth-child(2){grid-column:1/-1;grid-row:2;text-align:left}
}
.footer-bottom>a{gap:.6em}
