/* ===== QForm Designs — Site Stylesheet ===== */

:root {
  --black: #141212;
  --charcoal: #2b2828;
  --maroon: #3a0a0a;
  --maroon-deep: #2a0606;
  --red: #a01f1f;
  --red-bright: #c0272c;
  --cream: #f4f1ec;
  --grey: #6b6560;
  --grey-light: #ccc4ba;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', Helvetica, Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}

.section {
  padding: 100px 0;
}
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--maroon-deep);
  color: var(--cream);
}
.section--charcoal {
  background: var(--black);
  color: var(--cream);
}
.section--cream { background: var(--cream); }

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 19px;
  color: var(--grey);
  max-width: 640px;
}
.section--dark .lede, .section--charcoal .lede { color: var(--grey-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--charcoal);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--charcoal); color: var(--white); }
.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--black); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(15,12,12,0.45);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(20, 18, 18, 0.96);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nav-list {
  display: flex;
  gap: 36px;
}
.nav-list a {
  color: var(--cream);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover, .nav-list a.active { border-color: var(--red-bright); color: var(--red-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,8,0.6) 0%, rgba(10,8,8,0.5) 35%, rgba(8,4,4,0.94) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .container { padding-bottom: 110px; position: relative; z-index: 2; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--red-bright);
  margin-bottom: 36px;
  display: block;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.08;
  margin-bottom: 26px;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero p {
  font-size: 19px;
  max-width: 540px;
  color: var(--grey-light);
  margin-bottom: 38px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 40px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-light);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: var(--grey-light);
}

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(244,241,236,0.15);
}
.stats div {
  padding: 40px 20px;
  text-align: center;
  border-left: 1px solid rgba(244,241,236,0.15);
}
.stats div:first-child { border-left: none; }
.stats .num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--red-bright);
  display: block;
}
.stats .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-light);
  margin-top: 8px;
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media { overflow: hidden; }

/* ---------- Cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(244,241,236,0.15);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.service-card {
  background: var(--maroon-deep);
  padding: 46px 34px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--grey-light);
  opacity: 0.5;
  margin-bottom: 24px;
}
.service-card h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 14px;
}
.service-card p { color: var(--grey-light); font-size: 15px; margin: 0; }

.value-card {
  padding: 32px 0;
  border-top: 1px solid var(--grey-light);
}
.value-card h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.value-card p { color: var(--grey); font-size: 15px; margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card {
  border-top: 3px solid var(--red);
  padding-top: 22px;
}
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-card .role {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}
.team-card p { color: var(--grey); font-size: 15px; }

/* ---------- Projects grid ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-bar button {
  padding: 10px 22px;
  border: 1px solid var(--grey-light);
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s;
}
.filter-bar button:hover, .filter-bar button.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--charcoal);
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,16,0) 40%, rgba(20,16,16,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--white);
}
.project-card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red-bright);
  margin-bottom: 6px;
}
.project-card h3 { font-size: 24px; margin-bottom: 4px; color: var(--white); }
.project-card .loc { font-size: 13px; color: var(--grey-light); }

/* Project detail */
.project-hero {
  padding-top: 140px;
}
.project-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
  padding: 28px 0;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}
.project-meta div span { display: block; }
.project-meta .k {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 6px;
}
.project-meta .v { font-size: 17px; }
.feature-list {
  columns: 2;
  gap: 40px;
  margin-top: 20px;
}
.feature-list li {
  break-inside: avoid;
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid #e4ddd2;
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px;
  background: var(--red);
}
.project-figure { margin: 60px 0; }
.project-figure img { width: 100%; }
.project-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact-item { margin-bottom: 30px; }
.contact-item .k {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red-bright);
  margin-bottom: 8px;
  display: block;
}
.contact-item .v { font-size: 20px; }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: var(--grey-light);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244,241,236,0.35);
  padding: 12px 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--red-bright);
}
.form-field select option { color: var(--black); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--grey-light);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,241,236,0.12);
}
.footer-grid h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.footer-grid ul li { margin-bottom: 12px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--red-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.social-links { display: flex; gap: 18px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid rgba(244,241,236,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  padding: 200px 0 90px;
  background: var(--charcoal);
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,12,0.88), rgba(15,12,12,0.8));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 10px; }
.breadcrumb {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-light);
}
.breadcrumb a:hover { color: var(--red-bright); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--red);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .feature-list { columns: 1; }
}
@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 44px; }
}
