:root {
  --ink: #151716;
  --muted: #676d69;
  --line: #d9ddda;
  --paper: #ffffff;
  --canvas: #f3f4f2;
  --orange: #d86618;
  --orange-soft: #fff0e5;
  --green: #277a4a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-header {
  height: 88px;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: white;
}
.site-brand, .footer-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.site-brand img { width: 54px; height: 54px; object-fit: contain; }
.site-brand strong, .site-brand small, .footer-brand strong, .footer-brand small { display: block; }
.site-brand strong { font-size: 17px; }
.site-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.desktop-links { display: flex; align-items: center; gap: 28px; }
.desktop-links a, .portal-link, .social-header-link { font-size: 13px; font-weight: 750; text-decoration: none; }
.desktop-links a:hover, .portal-link:hover, .social-header-link:hover { color: var(--orange); }
.social-header-link { display: inline-flex; align-items: center; gap: 7px; }
.social-header-link img { width: 15px; height: 15px; filter: invert(1); }
.header-actions { display: flex; align-items: center; gap: 17px; }
.quote-button {
  padding: 12px 15px;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: transparent; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); }
.mobile-menu {
  position: fixed;
  z-index: 30;
  top: 72px;
  left: 0;
  right: 0;
  display: grid;
  padding: 15px 20px 22px;
  background: var(--ink);
  color: white;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 2px; border-bottom: 1px solid #373a38; text-decoration: none; font-weight: 750; }

.hero {
  min-height: calc(100svh - 88px);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 110px clamp(20px, 7vw, 110px);
  overflow: hidden;
  background: url("assets/millwork-entertainment.jpg") center/cover;
  color: white;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,12,.87) 0%, rgba(11,13,12,.64) 48%, rgba(11,13,12,.12) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 850px; }
.hero-brand-mark {
  display: flex;
  align-items: center;
  gap: 32px;
  width: fit-content;
  margin-bottom: 38px;
}
.hero-brand-mark > img {
  width: clamp(190px, 17vw, 270px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 10px solid white;
  background: white;
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}
.hero-brand-mark strong, .hero-brand-mark small { display: block; }
.hero-brand-mark strong { font-size: clamp(36px, 4vw, 58px); line-height: 1; }
.hero-brand-mark small { margin-top: 12px; color: #dfe3df; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow, .section-label {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffae74; }
.hero h1 { margin: 0; font-size: clamp(58px, 8vw, 112px); line-height: .92; letter-spacing: 0; }
.hero-content > p:not(.eyebrow) { max-width: 720px; margin: 27px 0 0; color: #ecefeb; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button {
  min-height: 47px;
  display: inline-grid;
  place-items: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--orange); color: white; }
.button.ghost { border-color: rgba(255,255,255,.72); color: white; }
.hero-rail {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(520px, 44vw);
  background: white;
  color: var(--ink);
}
.hero-rail span { padding: 19px 13px; border-left: 1px solid var(--line); font-size: 10px; font-weight: 900; text-align: center; text-transform: uppercase; }

.statement {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 55px;
  padding: 100px clamp(20px, 7vw, 110px);
  background: white;
}
.statement h2, .section-heading h2, .work-heading h2, .standards-copy h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(37px, 4.8vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}
.statement div > p { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.services-section { padding: 100px clamp(20px, 7vw, 110px); }
.section-heading {
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 65px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  overflow: hidden;
}
.service-card.featured { grid-row: span 2; min-height: 582px; }
.service-photo { flex: 1; min-height: 245px; background-size: cover; background-position: center; }
.millwork-photo { background-image: url("assets/millwork-doors.jpg"); background-position: 64% center; }
.rail-photo { background-image: url("assets/millwork-stairs.jpg"); background-position: center 58%; }
.service-copy { padding: 22px; }
.service-copy span { color: var(--orange); font-size: 10px; font-weight: 900; }
.service-copy h3 { margin: 12px 0 8px; font-size: 24px; }
.service-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dark-card { background: var(--ink); color: white; }
.dark-card .service-copy p { color: #bec4bf; }
.accent-card { border-color: var(--orange); background: var(--orange); color: white; }
.accent-card .service-copy span { color: #40200b; }
.accent-card .service-copy p { color: white; }
.image-card { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }

.work-section { padding: 105px clamp(20px, 7vw, 110px); background: var(--ink); color: white; }
.work-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 55px; margin-bottom: 50px; }
.work-heading .section-label { color: #ff9f5a; }
.work-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 13px; }
.work-item { position: relative; margin: 0; overflow: hidden; background: #292c2a; }
.work-item.tall { grid-row: span 2; }
.work-item img { width: 100%; height: 330px; object-fit: cover; transition: transform .55s ease; }
.work-item.tall img { height: 673px; }
.work-item:hover img { transform: scale(1.02); }
.work-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 52px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.work-item figcaption span { color: #d6dad6; font-size: 12px; }
.instagram-gallery { margin-top: 80px; }
.instagram-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.instagram-gallery-heading h3 { margin: 0; font-size: clamp(27px, 3.5vw, 46px); }
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.instagram-grid a { position: relative; aspect-ratio: 1; overflow: hidden; background: #292c2a; color: white; text-decoration: none; }
.instagram-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.instagram-grid a:hover img { transform: scale(1.025); }
.instagram-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 55px 16px 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.84));
  font-size: 13px;
  font-weight: 850;
}
.instagram-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid #383c39;
}
.instagram-callout h3 { margin: 0; font-size: clamp(24px, 3vw, 39px); }
.instagram-callout p:not(.section-label) { max-width: 650px; margin: 10px 0 0; color: #bec4bf; line-height: 1.55; }
.instagram-button { flex: 0 0 auto; grid-auto-flow: column; gap: 9px; border-color: white; color: white; }
.instagram-button img { width: 18px; height: 18px; }

.standards-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 105px clamp(20px, 7vw, 110px); background: white; }
.standards-copy > p:last-child { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.standards-list { border-top: 1px solid var(--line); }
.standards-list article { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.standards-list span { color: var(--orange); font-size: 11px; font-weight: 900; }
.standards-list h3 { margin: 0; font-size: 19px; }
.standards-list p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; padding: 105px clamp(20px, 7vw, 110px); background: #e8ebe8; }
.contact-copy > img { width: 88px; height: 88px; margin-bottom: 36px; object-fit: contain; mix-blend-mode: multiply; }
.contact-copy > p:not(.section-label) { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 570px; margin-top: 28px; }
.contact-link {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px 1fr 26px;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(21,23,22,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-link:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(21,23,22,.17); }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.16); }
.contact-icon img { width: 25px; height: 25px; }
.contact-details strong, .contact-details small { display: block; }
.contact-details strong { font-size: 14px; }
.contact-details small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 11px; }
.contact-arrow { color: white; font-size: 20px; transition: transform .2s ease; }
.contact-link:hover .contact-arrow { transform: translateX(3px); }
.whatsapp-link { background: linear-gradient(135deg, #147a46, #25a95f); }
.instagram-link { background: linear-gradient(135deg, #7136a5, #c23b73 58%, #db7239); }
.portal-note { display: inline-block; margin-top: 35px; color: var(--orange); font-weight: 800; }
.quote-form { display: grid; gap: 15px; padding: 28px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd0cb;
  border-radius: 4px;
  background: white;
  outline: none;
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(216,102,24,.11); }
.quote-form textarea { min-height: 125px; resize: vertical; }
.form-button { width: 100%; background: var(--ink); color: white; }
.form-status { min-height: 20px; margin: 0; color: var(--green); font-size: 13px; font-weight: 700; }
.form-status.error { color: #b83b38; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr .7fr;
  align-items: center;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 76px);
  background: var(--ink);
  color: white;
}
.footer-brand img { width: 48px; height: 48px; object-fit: contain; filter: invert(1); mix-blend-mode: screen; }
.footer-brand small { margin-top: 3px; color: #afb5b0; font-size: 9px; text-transform: uppercase; }
.site-footer > p { justify-self: center; color: #afb5b0; font-size: 12px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; }
.footer-links a { color: #d6dad6; font-size: 12px; }
.contact-dock {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.contact-dock a {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  overflow: hidden;
  transition: width .25s ease, border-radius .25s ease, transform .2s ease;
}
.contact-dock a:hover { width: 142px; justify-content: flex-start; padding: 0 17px; border-radius: 28px; transform: translateY(-2px); }
.contact-dock img { flex: 0 0 auto; width: 25px; height: 25px; }
.contact-dock span { display: none; white-space: nowrap; }
.contact-dock a:hover span { display: block; }
.dock-instagram { background: linear-gradient(145deg, #7136a5, #c23b73 58%, #db7239); }
.dock-whatsapp { background: linear-gradient(145deg, #147a46, #25a95f); }

@media (max-width: 1000px) {
  .desktop-links, .portal-link, .social-header-link { display: none; }
  .menu-button { display: block; }
  .statement, .section-heading, .work-heading, .standards-section, .contact-section { grid-template-columns: 1fr; gap: 30px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-row: auto; min-height: 450px; }
  .image-card { grid-column: span 2; }
  .instagram-callout { align-items: flex-start; }
}

@media (max-width: 650px) {
  .site-header { height: 72px; padding: 0 15px; }
  .site-brand img { width: 43px; height: 43px; }
  .site-brand strong { font-size: 14px; }
  .site-brand small { font-size: 8px; }
  .quote-button { display: none; }
  .hero { min-height: calc(100svh - 72px); padding: 58px 18px 118px; background-position: 58% center; }
  .hero-brand-mark { gap: 17px; margin-bottom: 27px; }
  .hero-brand-mark > img { width: 132px; border-width: 6px; }
  .hero-brand-mark strong { font-size: 29px; }
  .hero-brand-mark small { max-width: 175px; font-size: 8px; line-height: 1.4; }
  .hero h1 { font-size: 54px; }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .hero-rail { width: 100%; }
  .hero-rail span { padding: 16px 7px; }
  .statement, .services-section, .work-section, .standards-section, .contact-section { padding: 68px 18px; }
  .service-grid, .work-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: 1fr 1fr; }
  .image-card { grid-column: auto; display: flex; }
  .service-card, .service-card.featured { min-height: 310px; }
  .work-item.tall { grid-row: auto; }
  .work-item img, .work-item.tall img { height: 410px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .quote-form { padding: 18px; }
  .instagram-gallery { margin-top: 55px; }
  .instagram-callout { display: grid; }
  .site-footer { grid-template-columns: 1fr; padding: 34px 18px; }
  .site-footer > p, .footer-links { justify-self: start; text-align: left; }
  .contact-dock { right: 12px; bottom: 12px; }
  .contact-dock a { width: 52px; height: 52px; }
  .contact-dock a:hover { width: 52px; padding: 0; border-radius: 50%; transform: none; }
  .contact-dock a:hover span { display: none; }
}

@media (max-width: 430px) {
  .instagram-grid { grid-template-columns: 1fr; }
}
