/* Masonboro Flooring: brand tokens */
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --black: #111111;
  --blue: #1F4FD8;
  --blue-dark: #1A42B8;
  --blue-on-dark: #4A78F0;
  --silver-1: #D9DDE2; --silver-2: #C0C4CA; --silver-3: #A7ADB5; --silver-4: #7E858E;
  --silver-grad: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 45%, var(--silver-3) 55%, var(--silver-4) 100%);
  --white: #FFFFFF;
  --paper: #F4F5F7;
  --text: #2B2F36;
  --muted: #555B65;
  --line: #DDE0E5;
  --radius: 12px;
  --head: "Josefin Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); color: var(--black); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.55rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--body); font-weight: 650;
  text-decoration: none; border-radius: 10px; border: 2px solid transparent; line-height: 1.2; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.btn-lg { padding: .95em 1.5em; font-size: 1.05rem; min-height: 56px; }
.btn-xl { padding: 1em 1.6em; font-size: 1.15rem; min-height: 72px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: rgba(17,17,17,.35); color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-silver { background: linear-gradient(180deg, #E6E9EC 0%, var(--silver-1) 40%, var(--silver-2) 100%); color: var(--black); }
.btn-silver:hover { background: var(--silver-1); color: var(--black); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 40px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--black); text-decoration: none; font-family: var(--body); font-weight: 600; font-size: .93rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Hero: dark photo background with overlay */
.hero { position: relative; color: #E4E6EA; text-align: center; padding: 72px 0 84px;
  background: linear-gradient(180deg, rgba(10,10,10,.80) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.86) 100%), url("../img/work/hero-bg.jpg") center 60% / cover no-repeat, var(--black); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--silver-grad); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: auto; max-width: min(460px, 86%); max-height: 230px; object-fit: contain; margin: 0 auto 36px; }
.hero h1 { color: var(--white); max-width: 820px; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: #D5D8DD; max-width: 620px; margin: 0 auto 1.6em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-phone { margin: 1.1em 0 0; font-weight: 650; font-size: 1.15rem; }
.hero-phone a { color: var(--white); text-decoration: none; letter-spacing: .03em; }
.hero-phone a:hover { color: var(--silver-1); text-decoration: underline; }
.hero .btn-primary:focus-visible, .hero .btn-ghost:focus-visible { outline-color: var(--white); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 0 0 .6em; }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

/* Service cards */
.svc-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.svc-icon { width: 44px; height: 44px; padding: 9px; border-radius: 10px; color: var(--blue); background: #EDF1FC; margin-bottom: 14px; display: block; }
.svc h3 { font-size: 1.2rem; margin-bottom: .35em; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
.steps-title { margin: 52px 0 0; font-size: 1.5rem; }

/* Steps */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 20px; position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--silver-grad); }
.step:nth-child(2)::before { background: var(--blue); }
.step:nth-child(3)::before { background: var(--black); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--white);
  font-family: var(--body); font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Recent work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 36px; }
.work-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.work-item a { display: block; height: 100%; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.work-item a:hover img { transform: scale(1.03); }
.work-3 { grid-column: 2; grid-row: 1 / span 2; }
.work-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; color: var(--white); font-size: .95rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%); pointer-events: none; }

/* Colors */
.line { margin-top: 44px; }
.line-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; border-bottom: 2px solid var(--black); padding-bottom: 10px; margin-bottom: 20px; }
.line-head h3 { margin: 0; font-size: 1.35rem; }
.line-specs { margin: 0; color: var(--muted); font-size: .95rem; }
.swatch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.swatch { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.swatch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.swatch-name { display: block; padding: 11px 12px 9px; font-family: var(--head); font-weight: 600; color: var(--black); font-size: 1.08rem; }
.swatch:hover { border-color: var(--silver-3); box-shadow: 0 8px 22px rgba(17,17,17,.12); transform: translateY(-2px); }
.swatch:hover .swatch-name { color: var(--blue); }
.note { margin: 28px 0 0; font-size: .9rem; color: var(--muted); }

/* Area */
.area { display: flex; gap: 22px; align-items: flex-start; }
.area-icon { width: 56px; height: 56px; flex: none; fill: var(--blue); background: var(--paper); border-radius: 50%; padding: 12px; }
.area p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.area h2 { margin-bottom: .35em; }

/* Contact */
.section-dark { background: var(--black); color: #D5D8DD; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--blue-on-dark); }
.section-dark .section-intro { color: #C0C4CA; }
.contact { text-align: center; }
.contact .section-intro { margin: 0 auto; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.contact-buttons .btn { min-width: 300px; }
.contact-buttons .btn span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.contact-buttons small { font-family: var(--body); font-weight: 500; font-size: .8rem; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.section-dark .btn-primary:focus-visible, .section-dark .btn-silver:focus-visible { outline-color: var(--white); }

/* Footer */
.site-footer { background: #0A0A0A; color: #B9BEC6; padding: 40px 0 28px; font-size: .95rem; border-top: 1px solid #262626; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-name { font-family: var(--head); font-weight: 600; font-size: 1.25rem; color: var(--white); margin: 0 0 4px !important; letter-spacing: .01em; }
.footer-inner p { margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--blue-on-dark); text-decoration: underline; }
.footer-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #262626; }
.footer-legal p { margin: 0; font-size: .82rem; color: #9097A1; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10,10,10,.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 20px; }
.lightbox img { max-height: calc(100vh - 130px); max-width: min(92vw, 720px); width: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { color: var(--white); margin-top: 14px; font-size: 1.05rem; text-align: center; max-width: 720px; }
.lightbox figcaption span { color: var(--silver-2); font-family: var(--body); font-size: .95rem; margin-left: .4em; }
.lb-btn { position: fixed; border: 0; background: rgba(255,255,255,.12); color: var(--white); width: 48px; height: 48px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1060px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .brand-logo { height: 32px; max-width: 200px; }
  .hero { padding: 44px 0 56px; }
  .hero-logo { max-height: 170px; margin-bottom: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 16px; }
  .svc-icon { grid-row: 1 / span 2; margin: 0; }
  .svc h3 { font-size: 1.12rem; margin: 2px 0 .25em; }
  .work-3 { grid-column: auto; grid-row: auto; }
  .work-3 img { aspect-ratio: 4 / 5; }
  .btn-row .btn { width: 100%; }
  .section { padding: 56px 0; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .area { flex-direction: column; gap: 14px; }
  .contact-buttons .btn { min-width: 0; width: 100%; }
  .footer-contact { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .swatch { transition: none; }
}

/* Hint under the estimate buttons */
.email-hint { margin: 14px auto 0; max-width: 640px; font-size: .95rem; line-height: 1.5; color: #C9CDD3; }
.hero .email-hint { color: #D5D8DD; }
.hero-phone { margin-top: .8em; }
@media (max-width: 560px) { .email-hint { font-size: .92rem; } }
