/* ==========================================================================
   Patchwork — base styles
   Brand palette sourced directly from the Patchwork Company logo:
   navy "COMPANY" bar, teal "patch" block, red-orange "work" block.
   ========================================================================== */

:root {
  --navy: #050533;
  --navy-dark: #030320;
  --blue: #0d698b;       /* brand teal, from the "patch" block */
  --blue-dark: #0a5470;
  --blue-light: #e6f1f4;
  --red: #e34234;        /* brand red-orange, from the "work" block */
  --red-dark: #c73326;
  --red-light: #fbe9e7;
  --slate: #4a5568;
  --slate-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --border: #e0e6e8;
  --success: #1a7f4f;
  --error: #c0392b;
  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(5, 5, 51, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--slate); }

.lead {
  font-size: 1.2rem;
  color: var(--slate);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

/* ---- Header ---- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}

.brand img { height: 34px; width: auto; }

nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
}

nav.main-nav a:hover { color: var(--blue); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 820px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--border); }
  nav.main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(5,5,51,0.80) 0%, rgba(5,5,51,0.55) 45%, rgba(3,3,32,0.32) 100%),
    url("../images/hero-office.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(13,105,139,0.45), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(227,66,52,0.22), transparent 40%);
}

.hero-inner {
  position: relative;
  padding: 110px 24px 90px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: #fff; }
.hero p.lead { color: #cfdcf0; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-art svg { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 24px 60px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: 2rem; }
}

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cfdcf0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }

/* ---- Reference / logo cards ---- */
.reference-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}
.reference-card-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-alt);
  border-style: dashed;
}
.reference-card-cta p {
  margin-bottom: 16px;
}
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--slate);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.88rem;
  text-align: center;
  padding: 0 12px;
  margin-bottom: 18px;
}
/* Once a real logo image is dropped in, swap the markup for:
   <div class="logo-badge logo-badge-photo"><img src="images/logos/x.png" alt="..."></div> */
.logo-badge.logo-badge-photo {
  border-style: solid;
  background: #fff;
  padding: 10px;
}
.logo-badge.logo-badge-photo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.stat {
  text-align: center;
}
.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat .label {
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---- Split content ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.illustration-box {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 40px;
}
.illustration-box svg { width: 100%; height: auto; }

.illustration-box.photo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.illustration-box.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- List with checks ---- */
ul.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--slate);
}
ul.check-list li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 3px;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #fbe4e1; }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c4d9;
  padding: 60px 0 30px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; }
footer.site-footer a { color: #b7c4d9; }
footer.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Page header (non-home pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #cfdcf0; max-width: 600px; margin: 0 auto; }

/* ---- Breadcrumbs-ish ---- */
.tag-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .row .icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .row .icon svg { width: 20px; height: 20px; }
.contact-info-card strong { display: block; color: var(--navy); margin-bottom: 2px; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.92rem;
  color: var(--navy);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-msg {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-msg.success { background: #e6f4ec; color: var(--success); border: 1px solid #b7e0c6; }
.form-msg.error { background: #fbe9e7; color: var(--error); border: 1px solid #f1c3bd; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
