/* ARC Systems International — shared stylesheet */

:root {
  --navy-950: #0b1f33;
  --navy-900: #0f2a43;
  --navy-800: #16344f;
  --steel-600: #3e6680;
  --steel-500: #4a7c99;
  --steel-100: #e4ecf0;
  --concrete-100: #eeece7;
  --concrete-50: #f7f6f3;
  --gold-500: #b98a2c;
  --gold-600: #9c7423;
  --red-700: #9b1c1c;   /* ARC brand red, from the globe logo / CAI ad */
  --red-800: #7d1515;
  --red-50: #fbf3f2;
  --amex-blue: #006fcf;  /* American Express "Bright Blue" */
  --amex-blue-600: #0059a8;
  --white: #ffffff;
  --ink: #1c2733;
  --ink-soft: #4a5865;

  --font-head: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--steel-600); text-decoration: none; }
a:hover { color: var(--red-700); }

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red-700);
  box-shadow: 0 2px 10px rgba(15,42,67,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* Spinning gear carried over from the original arcsyst.com header */
.brand-gear {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red-700);
  animation: gear-spin 6s linear infinite;
}
@keyframes gear-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-gear { animation: none; } }

.brand .brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: .02em;
  white-space: nowrap;
}

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

.main-nav a {
  display: inline-block;
  padding: 10px 10px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--red-50);
  color: var(--red-700);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-800);
  color: var(--navy-800);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-nav a { display: block; padding: 12px 6px; }
}

@media (max-width: 480px) {
  .brand .brand-name { font-size: 1.05rem; }
  .brand-logo { width: 38px; height: 38px; }
  .brand { gap: 8px; }
}

@media (max-width: 420px) {
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .brand .brand-name { font-size: .95rem; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-gear { width: 16px; height: 16px; }
  .brand { gap: 7px; }
}

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

.hero {
  background: linear-gradient(120deg, var(--navy-800), var(--steel-600) 60%, var(--steel-500));
  color: var(--white);
  padding: 88px 0;
}

/* Photo hero: bright, airy treatment - a soft pale-blue fade on the left (kept cool so it reads apart from the warm sand)
   carries dark text, letting the photo show through on the right. */
.hero.with-photo {
  background-image: linear-gradient(90deg, rgba(214,231,247,0.97) 0%, rgba(214,231,247,0.96) 44%, rgba(214,231,247,0) 58%), var(--hero-photo);
  background-size: cover;
  background-position: center 52%;
  color: var(--navy-900);
}
.hero.with-photo .hero-eyebrow { color: var(--red-700); }
.hero.with-photo h1 { color: var(--navy-900); text-shadow: none; }
.hero.with-photo p.lead { color: var(--ink); text-shadow: none; }
.hero.with-photo .btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: rgba(255,255,255,0.6); }
.hero.with-photo .btn-outline:hover { background: var(--navy-800); color: var(--white); }
@media (max-width: 1100px) {
  .hero.with-photo { background-image: linear-gradient(90deg, rgba(214,231,247,0.97) 0%, rgba(214,231,247,0.96) 62%, rgba(214,231,247,0) 78%), var(--hero-photo); }
}
@media (max-width: 760px) {
  .hero.with-photo { background-image: linear-gradient(rgba(214,231,247,0.88), rgba(214,231,247,0.88)), var(--hero-photo); }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(11,31,51,0.45);
  max-width: 860px;
  font-size: min(2.6rem, calc((100vw - 64px) / 19.5));
}
.hero h1 .hero-line { white-space: nowrap; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.5rem; }
  .hero h1 .hero-line { white-space: normal; }
}

.hero p.lead {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(11,31,51,0.5);
  font-size: 1.15rem;
  max-width: 640px;
}

.hero.with-photo h1 { max-width: 660px; }
.hero-tagline {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  color: var(--red-700);
  font-size: 1.15rem;
  margin: 4px 0 14px;
}

.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-800); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.85);
  color: var(--white);
  background: rgba(15,42,67,0.25);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }

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

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-alt { background: var(--concrete-50); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  color: var(--red-700);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Practice-area cards ---------- */

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

/* Two-across variant, used when a section has an even number of cards */
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--concrete-100);
  border-top: 4px solid var(--steel-500);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.practice-card .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.practice-card h3 { margin-bottom: 10px; }
.practice-card .card-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--red-700);
  margin-bottom: 6px;
}
.practice-card p { flex-grow: 1; }
.practice-card .card-link { font-weight: 700; margin-top: 12px; }

/* Optional photo at the top of a practice card, bleeding to the card edges */
.practice-card .card-photo { margin: -32px -28px 22px; height: 280px; overflow: hidden; }
.practice-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Round headshot at the top of a team bio card */
.practice-card .headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid var(--concrete-100);
}

/* Title + credentials line under a partner name */
.practice-card .bio-role { flex-grow: 0; font-size: .92rem; line-height: 1.5; margin-bottom: 14px; color: var(--ink-soft); }
.practice-card .bio-role strong { color: var(--red-700); }

.practice-card.consulting { border-top-color: var(--steel-500); }
.practice-card.management { border-top-color: var(--red-700); }
.practice-card.construction { border-top-color: var(--navy-800); }

/* ---------- Generic content blocks ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-row .stat { min-width: 120px; }
.stat .stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy-900);
}
.stat .stat-label {
  font-size: .85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

@media (max-width: 640px) {
  .services-list { grid-template-columns: 1fr; }
}

.services-list li {
  background: var(--white);
  border: 1px solid var(--concrete-100);
  border-left: 4px solid var(--steel-500);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy-900);
  border-radius: 4px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.why-grid .why-item {
  padding: 20px;
  background: var(--concrete-50);
  border-radius: 6px;
}
.why-item .why-num {
  font-family: var(--font-head);
  color: var(--red-700);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

/* ---------- Breadcrumb / page header ---------- */

.page-header {
  background: linear-gradient(120deg, var(--amex-blue-600), var(--amex-blue));
  color: var(--white);
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--red-700);
}
.page-header .eyebrow {
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0; }

/* ---------- Projects / Portfolio ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--concrete-100);
  color: var(--navy-900);
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--steel-500); }
.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }

/* Cards without photos: a colored top band marks the practice area,
   matching .practice-card. Add a .project-thumb as the first child to
   show a photo instead. */
.project-card {
  background: var(--white);
  border: 1px solid var(--concrete-100);
  border-top: 4px solid var(--steel-500);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.project-card:hover { box-shadow: 0 8px 24px rgba(15,42,67,0.12); transform: translateY(-2px); }

.project-thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--steel-500), var(--navy-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  padding: 0 12px;
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb:has(img) { padding: 0; }

.project-card.tag-construction .project-thumb { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.project-card.tag-management .project-thumb { background: linear-gradient(135deg, var(--red-700), var(--navy-800)); }
.project-card.tag-consulting .project-thumb { background: linear-gradient(135deg, var(--steel-500), var(--steel-600)); }

.project-card.tag-consulting { border-top-color: var(--steel-500); }
.project-card.tag-management { border-top-color: var(--red-700); }
.project-card.tag-construction { border-top-color: var(--navy-800); }
.project-card:has(.project-thumb) { border-top-width: 1px; border-top-color: var(--concrete-100); }

.project-body { padding: 22px 24px 26px; }
.project-card.tag-management .project-tag { color: var(--red-700); }
.project-card.tag-construction .project-tag { color: var(--navy-800); }
.project-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel-600);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-card h3 a { color: var(--navy-900); }
.project-body p { margin-bottom: 0; font-size: .92rem; }

.project-card.hidden { display: none; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info-list li { margin-bottom: 18px; }
.contact-info-list .label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--steel-600);
  font-weight: 700;
  margin-bottom: 3px;
}

/* QR code under the contact details */
.qr-share { display: flex; gap: 18px; align-items: center; margin-top: 8px; padding: 16px; background: var(--concrete-50); border: 1px solid var(--concrete-100); border-radius: 6px; }
.qr-share img { width: 132px; height: 132px; flex-shrink: 0; border-radius: 4px; }
.qr-share .label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel-600); font-weight: 700; margin-bottom: 4px; }
.qr-share p { font-size: .9rem; margin-bottom: 8px; }
.qr-share a { font-weight: 700; font-size: .9rem; }
@media (max-width: 420px) { .qr-share { flex-direction: column; align-items: flex-start; } }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6db;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form button { align-self: flex-start; margin-top: 6px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--amex-blue);
  color: var(--white);
  border-top: 3px solid var(--red-700);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }

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

.site-footer {
  background: var(--navy-800);
  color: var(--steel-100);
  padding: 48px 0 28px;
  border-top: 3px solid var(--red-700);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h4 {
  color: var(--white);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--steel-100); }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }

.footer-brand .brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-brand p { color: var(--steel-100); }

/* QR code in the footer (white quiet zone is part of the PNG) */
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.footer-qr img { width: 84px; height: 84px; border-radius: 4px; }
.footer-qr span { font-size: .8rem; color: var(--steel-100); line-height: 1.4; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge {
  display: inline-block;
  background: var(--steel-100);
  color: var(--navy-900);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
