/* Braid Contracting — lean static CSS (Bedford-like), bust v=20260914-braid7 */

@font-face {
  font-family: "futura-pt";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/futura-pt-400.woff2") format("woff2");
}
@font-face {
  font-family: "futura-pt";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/futura-pt-700.woff2") format("woff2");
}
@font-face {
  font-family: "futura-pt";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/futura-pt-800.woff2") format("woff2");
}
@font-face {
  font-family: "aaux-next";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/aaux-next-800.woff2") format("woff2");
}

:root {
  --braid-yellow: #ffc500;
  --braid-yellow-text: #fdc200;
  --braid-coral: #ff6c45;
  --braid-dark: #1a1a1a;
  --braid-footer: #262626;
  --braid-text: #333333;
  --braid-muted: #888888;
  --braid-label: #444444;
  --braid-border: #d4d4d4;
  --braid-divider: #e8b4b8;
  --braid-bg-contact: #ffffff;
  --braid-white: #ffffff;
  --font-display: "futura-pt", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading-alt: "aaux-next", "futura-pt", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-nav: "Agdasima", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 930px;
  --header-h: 72px;
  --mobile-bar-h: 50px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--braid-text);
  background: var(--braid-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h2, h3 {
  font-family: var(--font-heading-alt);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* —— Desktop header (scrolls away; overlay on home) —— */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  pointer-events: none;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 930px;
  width: 100%;
  margin: 0 auto;
  padding: 45px 0 18px;
  padding-inline: 0; /* logo left edge = (viewport-930)/2 → 175 on 1280 */
  pointer-events: auto;
}
.site-header--solid {
  position: relative;
  background: var(--braid-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo-link { display: inline-block; line-height: 0; }
.logo-link img {
  width: 304px;
  max-width: 304px;
  height: auto;
}
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--braid-yellow);
}
.site-header--solid .nav-link { color: #666666; }
.nav-link.is-active { opacity: 1; }

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--mobile-bar-h);
  background: var(--braid-white);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.mobile-bar .logo-link img {
  width: 80px;
  max-width: 80px;
  height: auto;
}
.hamburger {
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #111;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20,20,20,0.96);
  flex-direction: column;
  padding: 24px;
}
.mobile-overlay.is-open { display: flex; }
.mobile-overlay-close {
  align-self: flex-end;
  background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
}
.mobile-overlay nav {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 48px; padding-left: 12px;
}
.mobile-overlay .nav-link {
  color: var(--braid-yellow);
  font-size: 16px;
  letter-spacing: 0.03em;
}

/* —— Index / parallax hero —— */
.parallax-section {
  position: relative;
  min-height: 752px;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--braid-white);
}
.parallax-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.parallax-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 1;
  pointer-events: none;
}
.parallax-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1874.109375px;
  height: 1054px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  object-fit: fill;
  object-position: 50% 50%;
  will-change: transform;
  z-index: 0;
}
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 28px 72px;
  max-width: 720px;
}
#introduction .hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 46.8px;
  letter-spacing: 0;
  color: var(--braid-yellow-text);
  margin: 0 0 0.55em;
}
#introduction .hero-sub {
  font-family: "aaux-next", var(--font-heading-alt);
  font-size: 19px;
  font-weight: 800;
  line-height: 20.9px;
  color: var(--braid-white);
  margin: 0;
  letter-spacing: 0.02em;
}
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  opacity: 0.9;
  pointer-events: none;
}
.scroll-indicator svg { width: 36px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.25; }

/* —— Content sections —— */
.section {
  padding: 72px 0 88px;
  background: var(--braid-white);
}
#expertise1 {
  /* target heading y~876 after hero end */
  padding: 76px 0 120px;
}

.section-inner { max-width: 949px; margin: 0 auto; width: 100%; padding-inline: 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--braid-yellow);
  text-align: center;
  margin: 0 0 36px;
}
/* Expertise H1: 52px futura, ~770 max → 2-line wrap (~94px tall) */
#expertise1 .section-title {
  font-size: 52px;
  line-height: 46.8px;
  max-width: 770px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 316.33px);
  gap: 0;
  justify-content: start;
  width: 949px; /* 158→1107 on 1265 content */
  max-width: 100%;
  margin: 0 auto;
}
.service-card {
  width: 316.33px;
  box-sizing: border-box;
  padding: 0 17px; /* images 282.33 centered in col */
}
.service-card img {
  width: 282.33px;
  height: 282.33px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--braid-muted);
  margin: 0 0 8px;
}
.service-card p {
  font-size: 15px;
  color: var(--braid-text);
  margin: 0;
  line-height: 1.5;
}

#expertise2 {
  /* target ~621 desktop (was ~516) */
  padding-top: 48px;
  padding-bottom: 120px;
}
#expertise2 .section-title { display: none; }

/* Gold container — target ~919 desktop (was ~719) */
#goldcontainerhome { padding-top: 140px; padding-bottom: 160px; }
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}
.featured-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.featured-copy h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
  margin: 0 0 12px;
}
.featured-copy p { font-size: 15px; color: var(--braid-text); }
.featured-copy a {
  color: var(--braid-text);
  text-decoration: underline;
}

/* HQ — taller rhythm; dark map on light section */
#projectsandlocations {
  background: var(--braid-white);
  padding-top: 96px;
  padding-bottom: 104px;
}
#projectsandlocations .section-title { margin-bottom: 28px; }
.hq-address {
  text-align: center;
  margin: 0 auto 28px;
  color: var(--braid-text);
  font-size: 15px;
  line-height: 1.6;
}
.map-wrap {
  position: relative;
  width: 949px;
  max-width: 100%;
  margin: 0 auto;
  background: #1a1a1a;
  overflow: hidden;
  padding: 17px;
  box-sizing: border-box; /* outer 949×442 → iframe 915×408 */
}
.map-embed {
  width: 915px;
  max-width: 100%;
  height: 408px;
  border: 0;
  display: block;
  background: #1a1a1a;
  /* approximate Squarespace map style 5 (dark) without a Maps JS key */
  filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.95);
}

/* Footer — dark, ~527px desktop; left 2-line H+ROC, right coral CTA */
.site-footer {
  background: var(--braid-footer);
  color: #ccc;
  text-align: left;
  min-height: 527px;
  padding: 160px 24px 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* H2 + CTA share same top y */
  justify-content: flex-start;
  gap: 0;
  max-width: 949px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 80px;
}
.footer-copy {
  flex: 0 0 599px;
  width: 599px;
  max-width: 599px;
  min-width: 0;
  text-align: center;
  margin-left: 165px; /* → H2 ~x333 on 1265 layout */
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: absolute;
  right: 47px; /* ~x850 on 1265 (inner x167.5 + 682.5) */
  top: 0;
  margin: 0;
  width: 197.53px;
  height: 47px;
  padding: 13px 26px;
  border: 2px solid rgb(255, 108, 69);
  color: var(--braid-coral);
  font-family: var(--font-nav);
  font-size: 13.95px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1;
}
.footer-cta:hover { background: rgba(255,108,69,0.08); opacity: 1; }
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 39px;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
}
.site-footer .roc-line {
  font-size: 15px;
  color: #bbb;
  margin: 0;
}

/* —— Contact page —— */
.page-contact { background: var(--braid-bg-contact); min-height: 70vh; }
.contact-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  grid-template-areas:
    "project aside"
    "form aside";
  gap: 28px 56px;
  align-items: start;
}
.contact-project { grid-area: project; }
.contact-aside { grid-area: aside; }
.contact-form-block { grid-area: form; }

.contact-wrap h2 {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 12px;
}
.contact-divider {
  height: 1px;
  width: 100%;
  background: var(--braid-divider);
  border: 0;
  margin: 0 0 18px;
}
.contact-intro {
  color: #666;
  font-size: 15px;
  margin: 0;
}
.contact-aside .contact-people {
  font-weight: 700;
  color: #555;
  font-size: 16px;
  margin: 0;
  font-family: var(--font-body);
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--braid-label);
  margin: 0 0 6px;
}
.contact-form .req {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--braid-border);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #222;
  border-radius: 0;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 1px solid #aaa;
  border-color: #aaa;
}
.btn-submit {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--braid-yellow-text);
  border: 1px solid var(--braid-yellow-text);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-submit:hover { background: rgba(253,194,0,0.08); }
.form-success {
  display: none;
  padding: 20px;
  background: #eef7ee;
  border: 1px solid #b7d7b7;
  color: #1a5c1a;
  margin-bottom: 20px;
  font-size: 15px;
}
.form-success.is-visible { display: block; }
.mailto-fallback {
  margin-top: 18px;
  font-size: 13px;
  color: #666;
}
.mailto-fallback a { color: #333; text-decoration: underline; }

/* —— Responsive —— */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .site-header { display: none; }
  .mobile-bar { display: flex; }
  .logo-link img {
    width: 80px;
    max-width: 80px;
    height: auto;
  }
  /* Hero under 50px mobile bar like SQSP (#introduction y=50 h=625) */
  .parallax-section,
  #introduction.parallax-section {
    margin-top: 50px;
    min-height: 625px;
    height: 625px;
    align-items: flex-start;
    justify-content: center;
  }
  .parallax-content {
    /* title absolute y≈221 = 50 + 171 relative to section */
    padding-top: 171px;
    padding-bottom: 72px;
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Rope crop: fill 1648×927; nudge +22px so absolute y≈-79 (not -126) */
  .parallax-img {
    width: 1648.28125px !important;
    height: 927px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    object-fit: fill !important;
    object-position: 50% 50% !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, calc(-50% + 22px)) !important;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 369px;
    max-width: 369px;
    margin: 0 auto;
    justify-content: center;
  }
  .service-card {
    width: 369px;
    max-width: 369px;
    padding: 0 17px;
    box-sizing: border-box;
  }
  .service-card img {
    width: 335px;
    height: 335px;
    max-width: 100%;
  }
  .featured-grid { grid-template-columns: 1fr; }
  .page-contact {
    padding-top: var(--mobile-bar-h);
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "project"
      "aside"
      "form";
    gap: 28px;
    padding: 28px 20px 64px;
  }
  .contact-wrap h2 { font-size: 28px; }
  .contact-form .name-row { grid-template-columns: 1fr; }
  .map-wrap {
    width: 369px;
    padding: 17px;
    box-sizing: border-box;
  }
  .map-embed { width: 335px; height: 408px; filter: none; }
  .section { padding: 48px 20px 56px; }
  #expertise1 {
    padding: 72px 3px 96px; /* cards x=3 w=369 like SQSP */
  }
  #projectsandlocations {
    padding-left: 3px;
    padding-right: 3px;
  }
  #expertise2 {
    padding-top: 24px;
    padding-bottom: 88px;
  }
  #goldcontainerhome {
    padding-top: 72px;
    padding-bottom: 96px;
  }
  .section-title { font-size: 28px; margin-bottom: 28px; }
  #expertise1 .section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 28.8px;
    max-width: 335px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }
  .site-footer {
    min-height: 329px;
    height: auto;
    padding: 40px 20px 48px;
    text-align: center;
    display: block;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 34px;
    min-height: 0;
    max-width: 335px;
    position: static;
  }
  .footer-copy {
    text-align: center;
    width: 100%;
    max-width: 335px;
    margin-left: 0;
    flex: 0 0 auto; /* kill desktop flex-basis 599px (was becoming height) */
    height: auto;
    order: 2; /* prod: CTA above H2 */
  }
  .footer-cta {
    position: static;
    right: auto;
    top: auto;
    margin: 0 auto;
    order: 1;
    font-size: 12px;
    padding: 0 10px;
  }
  .site-footer h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 28px;
  }
}


@media (max-width: 640px) {
  #introduction .hero-title {
    font-size: 32px;
    line-height: 28.8px;
  }
  .parallax-section,
  #introduction.parallax-section {
    margin-top: 50px;
    min-height: 625px;
    height: 625px;
    align-items: flex-start;
  }
}

@media (min-width: 861px) {
  .mobile-bar { display: none !important; }
  .mobile-overlay { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-img { transform: translate(-50%, -50%) !important; }
  html { scroll-behavior: auto; }
}
