/* D&G Mechanical Insulation — site styles
   Squarespace 7.1 architecture-template reconstruction
   Cormorant Garamond + Poppins, 1500px max, 4vw gutters
*/

:root {
  --bg: #ffffff;
  --text: #000000;
  --brand: #ba2031;
  --cta: #2b2b2b;
  --cta-alt: #333333;
  --muted: #222222;
  --rule: #000000;
  --font-heading: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1500px;
  --gutter: 4vw;
  --gutter-m: 6vw;
  --section-y: 100px;
  --header-rule: 4px;
  --logo-w: 248px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

p {
  margin: 0 0 1.35em;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.45em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.45rem, 4.4vw, 3.35rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.375rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.cta :focus-visible,
.btn-light:focus-visible {
  outline-color: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32px;
}

.skip-link:focus {
  top: 12px;
}

/* Layout wrap */
.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--section-y) 0;
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
    --gutter: 6vw;
  }
}

/* ========== Header ========== */
.site-header {
  background: #ffffff;
  position: relative;
  z-index: 50;
}

.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2.2vw var(--gutter);
  gap: 12px 32px;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  width: var(--logo-w);
  max-width: min(260px, 72vw);
  height: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3.4rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  padding: 4px 0 6px;
  border-bottom: 1px solid transparent;
  display: inline-block;
}

.site-nav a:hover {
  border-bottom-color: var(--brand);
}

.site-nav a.is-active {
  border-bottom-color: var(--brand);
}

.header-rule {
  height: var(--header-rule);
  background: var(--brand);
  width: 100%;
}

@media (max-width: 767px) {
  .site-header-bar {
    padding: 5vw var(--gutter);
  }

  .logo img {
    width: 200px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 8px 0 12px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .site-nav a.is-active {
    border-bottom-color: #000;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 1.2;
  padding: 16px 44px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-align: center;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn-light {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-light:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .project-card img,
  .project-card:hover img,
  .project-card:focus-visible img {
    transition: none;
    transform: none;
  }
}

.btn-solid {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-solid:hover {
  background: #fff;
  color: #000;
}

/* ========== Home hero ========== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: #000;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.42) 26%,
    rgba(255, 255, 255, 0.08) 52%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 4.8vw;
  width: 100%;
  max-width: none;
}

.hero-content-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.18em;
  font-weight: 500;
}

.hero .hero-kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 0.55em;
}

.hero .hero-lines {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.hero .hero-lines span {
  display: block;
}

.bleed-band {
  line-height: 0;
}

.bleed-band img,
.bleed-photo {
  width: 100%;
  height: 78vh;
  min-height: 460px;
  max-height: 920px;
  object-fit: cover;
  object-position: center;
}

.bleed-mid img {
  height: 56vh;
  min-height: 340px;
  max-height: 640px;
}

/* ========== Two-column copy ========== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.55fr);
  column-gap: 5vw;
  row-gap: 1.5rem;
  align-items: start;
  justify-content: space-between;
}

.split h1,
.split h2 {
  margin: 0;
}

.split-body p {
  margin-bottom: 1.45em;
}

.split-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding-bottom: 10vw;
  }

  .bleed-band img,
  .bleed-photo {
    height: 56vh;
    min-height: 280px;
  }
}

/* ========== Recent projects 2-up ========== */
.projects-head {
  margin-bottom: 3.4rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem 4vw;
}

.project-card {
  display: block;
  color: inherit;
}

.project-card .thumb {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3 / 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s ease, color 0.2s ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.06);
}

.project-card figcaption,
.project-card .caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 0.85rem;
  transition: color 0.2s ease;
}

.project-card:hover figcaption,
.project-card:focus-visible figcaption {
  color: var(--brand);
}

@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .projects-head {
    margin-bottom: 2.2rem;
  }
}

/* ========== CTA band ========== */
.cta {
  background: var(--brand);
  color: #ffffff;
  padding: 100px 0;
}

.cta h2 {
  color: #ffffff;
  margin: 0 0 0.55em;
  font-weight: 500;
}

.cta p {
  color: #ffffff;
  max-width: 38rem;
  margin: 0 0 2.1rem;
}

.cta .btn {
  min-width: 168px;
}

@media (max-width: 767px) {
  .cta {
    padding: 72px 0;
  }
}

/* ========== Footer ========== */
.site-footer {
  background: #ffffff;
  color: #000;
  padding: 96px 0 72px;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(16rem, 22rem);
  gap: 1.5rem 6vw;
  max-width: 46rem;
}

.footer-cols p,
.footer-cols a {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
}

.footer-cols a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 2.75rem;
  font-size: 13px;
  font-weight: 300;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 64px 0 48px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ========== Team ========== */
.team-section {
  padding: 48px 0 100px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 22px;
}

.team-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  background: #eee;
}

.team-card h2 {
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 500;
  margin: 1rem 0 0;
}

.team-card .team-role {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.team-card .team-bio {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }

  .team-card img {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .team-section {
    padding: 32px 0 64px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .team-card img {
    height: 320px;
  }
}

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

  .team-card img {
    height: 420px;
  }
}

/* ========== Contact ========== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem 6vw;
  align-items: start;
}

.page-contact h1 {
  font-size: clamp(2.6rem, 5.2vw, 3.85rem);
  line-height: 1.08;
  max-width: 11.5em;
  margin: 0 0 1.6rem;
}

.contact-copy {
  max-width: 38rem;
}

.contact-rule {
  display: block;
  width: 230px;
  max-width: 50%;
  height: 0;
  border: 0;
  border-top: 1px solid #000;
  margin: 2.4rem 0 2.2rem;
}

.contact-details p {
  margin: 0;
  line-height: 1.8;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-aside {
  padding-top: 0.35rem;
}

.contact-form {
  margin-bottom: 2.2rem;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  appearance: none;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.form-actions {
  margin-top: 1.4rem;
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 1px solid #000;
  background: #f4f4f4;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-note {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.6;
}

.form-status {
  padding: 1.25rem 0 0.5rem;
}

.form-status h2 {
  margin-bottom: 0.6rem;
}

@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .map-embed {
    height: 260px;
  }
}

/* ========== Project pages ========== */
.project-intro {
  padding-top: 92px;
  padding-bottom: 72px;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 72px 0 40px;
}

.pager a {
  display: block;
  max-width: 46%;
}

.pager-next {
  margin-left: auto;
  text-align: right;
}

.pager-prev {
  text-align: left;
}

.pager-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.pager-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.pager a:hover .pager-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pager-arrow {
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 767px) {
  .project-intro {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .pager {
    flex-direction: column;
    padding: 48px 0 16px;
  }

  .pager a {
    max-width: 100%;
  }

  .pager-next,
  .pager-prev {
    text-align: left;
    margin-left: 0;
  }
}

/* Thank-you / PHP result */
.notice {
  padding: var(--section-y) 0;
  min-height: 40vh;
}

.notice h1 {
  margin-bottom: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card img {
    transition: none;
  }
}

/* ========== Services ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
  margin-top: 3.5rem;
}
.service-grid h3 {
  margin-bottom: 0.55rem;
}
.service-grid p {
  margin: 0;
  color: #111;
}
.header-call {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding: 4px 0 6px;
}
.header-call:hover {
  border-bottom-color: var(--brand);
  color: var(--brand);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.call-bar {
  display: none;
}
@media (max-width: 767px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  .header-call {
    display: none;
  }
  .call-bar {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: #ba2031;
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.32px;
    padding: 14px 16px;
  }
  .call-bar:hover {
    color: #fff;
  }
  body {
    padding-bottom: 0;
  }
}

.section-rule-wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}
.section-rule {
  height: 4px;
  background: var(--brand);
}
.footer-creds {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 2.4rem 0 0.85rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Text-only team cards (no photos) */
.team-card--text {
  border-top: 3px solid currentColor;
  padding-top: 0.25rem;
}
.team-card--text h2 {
  margin-top: 0.75rem;
}
/* Team page flair */
.team-banner {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.7) 55%, rgba(186,32,49,.75) 100%), url("../images/about-hero.jpg") center / cover no-repeat;
  padding: 90px 0 80px;
  border-bottom: 4px solid var(--brand);
}
.team-banner h1 { margin: 0 0 .2em; font-weight: 500; color: #fff; }
.team-banner-kicker { font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .8rem; color: #f3c9ce; }
.team-banner-lines { font-weight: 300; font-size: 17px; max-width: 46ch; margin: 0; }
.team-section { background: #f5f3f1; }
.team-section .team-grid { padding-top: 12px; }
.team-card--text {
  background: #fff;
  border-top: 4px solid var(--brand);
  border-radius: 6px;
  padding: 28px 24px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card--text:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.team-card--text h2 { margin-top: 1rem; }
.team-card--text .team-role { color: var(--brand); font-size: 1.15rem; }
.team-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cta); color: #fff;
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em;
  border: 3px solid var(--brand);
}
@media (max-width: 767px) {
  .team-banner { padding: 60px 0 50px; }
  .team-card--text { padding: 22px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) { .team-card--text { transition: none; } .team-card--text:hover { transform: none; } }