/* Black Swan Construction Technology — site stylesheet */

:root {
  --ink: #0b1220;
  --ink-soft: #16202e;
  --navy: #101a26;
  --steel: #4b5a68;
  --steel-light: #7c8a97;
  --paper: #f5f6f7;
  --paper-2: #eceef0;
  --white: #ffffff;
  --accent: #e8b923;
  --accent-dark: #a97c0d;
  --line: #e2e5e8;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, 0.25);
  --maxw: 1180px;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

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

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

.lead {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: #f4cc4a; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-soft); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--steel); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); }
.brand-text span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
footer .brand-text b { color: var(--white); }
footer .brand-text span { color: rgba(255,255,255,0.55); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 38px; margin-bottom: 0; }

nav.main-nav { display: flex; align-items: center; gap: 36px; }
nav.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.35) 35%, rgba(9,13,20,0.92) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 76px; width: 100%; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 560px; }
.hero .eyebrow { color: var(--accent); }
.hero-watermark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: 34%;
  max-width: 420px;
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero-watermark { display: none; }
}

.hero.hero-small { min-height: 46vh; justify-content: center; }
.hero.hero-small .hero-inner { padding-bottom: 0; padding-top: 130px; padding-bottom: 48px; }

.stat-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 44px;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 24px 0;
}
.stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--white); }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: rgba(255,255,255,0.86); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.68); }
.bg-ink .eyebrow { color: var(--accent); }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(232,185,35,0.12);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--steel);
}
.feature-list li:first-child { border-top: none; }
.feature-list b { color: var(--ink); }
.feature-list .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  margin-top: 8px; flex: none;
}

/* Projects gallery */
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow);
}
.project-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 40%, rgba(9,13,20,0.88) 100%);
}
.project-card .pc-body { position: relative; z-index: 2; padding: 22px; }
.project-card .pc-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px; display: block;
}
.project-card h3 { margin: 0; font-size: 1.15rem; color: var(--white); }
.project-card.tall { height: 480px; grid-row: span 2; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 20px;
}

/* Logo / trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
.trust-strip span {
  font-weight: 700;
  color: var(--steel);
  font-size: 0.92rem;
}

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:first-child { border-top: none; }
.spec-table td { padding: 14px 4px; vertical-align: top; }
.spec-table td:first-child {
  width: 42%; font-weight: 700; color: var(--ink); font-size: 0.92rem;
}
.spec-table td:last-child { color: var(--steel); }

.standard-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 8px 8px 0;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #0e2a34 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* Contact */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-card .label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-dark); font-weight: 700; margin-bottom: 8px; display: block;
}
.contact-card .value { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.62);
  padding: 64px 0 28px;
}
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer a { color: rgba(255,255,255,0.62); }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-logo img { height: 34px; margin-bottom: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}

/* Breadcrumb / page intro */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 170px 0 64px;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.68); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
.muted { color: var(--steel-light); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .feature-media { order: -1 !important; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .project-card.tall { grid-row: span 1; height: 300px; }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  nav.main-nav {
    position: fixed; inset: 78px 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 28px 24px;
    gap: 6px; transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-actions .btn-dark.header-cta { display: none; }
  .cta-banner { padding: 36px; }
  .hero { min-height: 78vh; }
}
