/* Connect Property Group — stylesheet
   Edit colours in the :root block below to restyle the whole site. */

:root {
  --green-900: #12261E;
  --green-800: #1B3A2F;
  --green-700: #26503F;
  --green-100: #E4EDE7;
  --cream: #FAF7F0;
  --cream-dark: #F0EADC;
  --brass: #B08D57;
  --brass-dark: #8F7043;
  --ink: #23282A;
  --ink-soft: #55605E;
  --line: #DFD8C8;
  --white: #FFFFFF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

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

a { color: var(--green-700); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }

.btn-outline { background: transparent; color: var(--cream); border-color: rgba(250,247,240,.45); }
.btn-outline:hover { background: rgba(250,247,240,.1); border-color: var(--cream); }

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--green-900);
  color: var(--green-100);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: var(--green-100); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { max-height: 58px; width: auto; }
.logo-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.05;
}
.logo-mark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-800); border-bottom-color: var(--brass); }
.nav a.active { color: var(--green-800); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-900);
  cursor: pointer;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-sand  { background: var(--cream-dark); }
.section-green { background: var(--green-800); color: var(--green-100); }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .eyebrow { color: var(--brass); }

.measure { max-width: 46rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero {
  background: var(--green-800);
  /* To put a photo behind the headline, drop it in as assets/images/hero.jpg
     and uncomment the two lines below. */
  /* background-image:
       linear-gradient(rgba(18,38,30,.72), rgba(18,38,30,.82)),
       url('/assets/images/hero.jpg'); */
  background-size: cover;
  background-position: center;
  color: var(--cream);
  padding: 110px 0 100px;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: var(--brass); }
.hero p { font-size: 1.1rem; color: rgba(250,247,240,.9); }
.hero .btn-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-media {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
}
.hero-media img { width: 100%; height: auto; }

.page-head {
  background: var(--green-800);
  color: var(--cream);
  padding: 72px 0 66px;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(250,247,240,.88); max-width: 40rem; font-size: 1.1rem; }
.page-head .eyebrow { color: var(--brass); }

/* ---------- Lists ---------- */

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.tick-list li {
  position: relative;
  padding-left: 38px;
  line-height: 1.65;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 11px;
  border-left: 2.5px solid var(--brass);
  border-bottom: 2.5px solid var(--brass);
  transform: rotate(-45deg);
}
.section-green .tick-list li::before { border-color: var(--brass); }

/* ---------- Grids ---------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Process steps ---------- */

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
}
.step-num {
  display: block;
  width: 54px;
  height: auto;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Project cards ---------- */

.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-img {
  background: var(--white);
  padding: 18px 18px 0;
}
.project-img img { width: 100%; height: auto; }
.project-body { padding: 26px 26px 30px; flex: 1; }
.project-body .eyebrow { margin-bottom: .5rem; }
.project-body h3 { margin-bottom: .6em; }
.project-body p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Team ---------- */

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.person-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.person-row:last-of-type { margin-bottom: 0; }
.person-row.reverse .person-photo { order: 2; }
.person-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Image sitting beside a block of text */
.media img { width: 100%; height: auto; border-radius: var(--radius); }

.stat {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--brass);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

/* ---------- Contact / form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-detail { margin-bottom: 26px; }
.contact-detail h3 { font-size: 1.05rem; margin-bottom: .25em; }
.contact-detail a { color: inherit; }
.section-green .contact-detail p,
.section-green .contact-detail a { color: rgba(250,247,240,.92); }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px;
  border: 1px solid var(--line);
}
.form-card h3 { margin-bottom: 1rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
.field textarea { min-height: 140px; resize: vertical; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-900);
  color: rgba(228,237,231,.75);
  padding: 54px 0 34px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(228,237,231,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(228,237,231,.18);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(228,237,231,.6);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .person-row, .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 460px; }
  .person-row.reverse .person-photo { order: 0; }
  .person-photo img { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 70px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .site-header .wrap { position: relative; min-height: 70px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar .wrap { justify-content: center; gap: 16px; font-size: 0.8rem; }
}
