/* ReconstructX — shared site styles */

:root {
  --navy: #1e1e1e;
  --navy-dark: #0d0d0d;
  --orange: #ff9a00;
  --orange-dark: #cc7a00;
  --gray-100: #f5f6f7;
  --gray-300: #dfe3e6;
  --gray-600: #5a6672;
  --white: #ffffff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #26333f;
  line-height: 1.6;
  background: var(--white);
}

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

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

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

/* Header */
header.site-header {
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo span { color: var(--orange); }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--orange-dark);
  border-bottom-color: transparent !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 80px;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #cfd8e0;
  margin-bottom: 30px;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  margin-left: 14px;
}

.btn-outline:hover { border-color: var(--white); }

/* Page header (non-home pages) */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.page-header h1 { margin: 0 0 10px; font-size: 2.1rem; }
.page-header p { color: #cfd8e0; margin: 0; max-width: 620px; }

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--gray-100); }

h2.section-title {
  font-size: 1.8rem;
  margin: 0 0 12px;
}

p.section-lead {
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 40px;
}

/* Trust bar */
.trust-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  padding: 26px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.card .num {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

/* Services list */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 16px 18px;
}

.service-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 154, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--navy);
}

.service-item p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--gray-600);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    135deg,
    var(--gray-100),
    var(--gray-100) 12px,
    #ebeef0 12px,
    #ebeef0 24px
  );
  border: 1px dashed var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  padding: 16px;
}

.gallery-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.gallery-photo-full {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  display: block;
}

.gallery-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat .num {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--orange);
}

.stat .label {
  color: #cfd8e0;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* CTA band */
.cta-band {
  background: var(--orange);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.cta-band h2 { margin: 0 0 10px; }
.cta-band p { margin: 0 0 24px; color: #fff2ea; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-dark); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-item {
  margin-bottom: 26px;
}

.contact-info-item .label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 18px;
}

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

/* Footer */
footer {
  background: var(--navy-dark);
  color: #a9b4bd;
  padding: 44px 0 28px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #24333f;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Section flag marker (Trusted-style accent) */
.flag-mark {
  display: inline-block;
  width: 15px;
  height: 19px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
  margin-bottom: 8px;
}

h2.section-title.with-mark { display: flex; flex-direction: column; gap: 2px; }

/* Recent work horizontal strip */
.work-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.work-strip::-webkit-scrollbar { height: 8px; }
.work-strip::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.work-strip figure {
  flex: 0 0 280px;
  margin: 0;
  scroll-snap-align: start;
}

.work-strip img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.work-strip figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* About hero — photo + copy */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.about-hero .flag-mark { margin-bottom: 14px; }

.about-hero h2 { font-size: 1.9rem; margin: 0 0 16px; }
.about-hero p { color: var(--gray-600); margin: 0 0 16px; }
.about-hero p:last-of-type { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 860px) {
  nav ul { display: none; }
  .grid, .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  .grid, .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
