/* ============================================================
   First Class Building Supply & Services
   Shared stylesheet — new design (2026 refresh)
   ============================================================ */

:root {
  --navy: #0a2540;
  --navy-2: #102f52;
  --teal: #14b8a6;
  --teal-dark: #0f9b8e;
  --cyan: #38bdf8;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-soft-2: #eef4f7;
  --white: #ffffff;
  --gold: #f5b301;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 12px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dbe6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--cyan); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section--navy .section-head p { color: #aebfce; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #04201c; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eafaf8; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color:#fff; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy); color: #c9d6e3; font-size: .86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #c9d6e3; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { line-height: 1.1; }
.brand-text b { color: var(--navy); font-size: 1.05rem; display: block; font-weight: 800; }
.brand-text span { color: var(--muted); font-size: .74rem; letter-spacing: .04em; }
.brand-logo { height: 58px; width: auto; display: block; }
.footer .brand-logo { height: 50px; }
.brand-tagline { border-left: 2px solid var(--line); margin-left: 14px; padding-left: 14px; line-height: 1.2; max-width: 250px; }
.brand-tagline b { display: block; color: var(--navy); font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.brand-tagline em { display: block; color: var(--muted); font-size: .78rem; font-style: normal; margin-top: 3px; }
@media (max-width: 980px){ .brand-tagline { display: none; } }
@media (max-width: 760px){ .brand-logo { height: 46px; } }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 800; color: var(--navy); white-space: nowrap; }
.nav-phone:hover { color: var(--teal-dark); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 80% -10%, #16406b 0%, var(--navy) 55%, #061a2e 100%);
  color: #e7eef6;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.18rem; color: #b9c9da; max-width: 560px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #cdd9e6; }
.hero-badge svg { flex: none; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: 380px;
  background:
    linear-gradient(160deg, rgba(20,184,166,.18), rgba(56,189,248,.10)),
    #0d2a48;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero-stats {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.hero-stat {
  background: rgba(7,24,42,.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 12px; text-align: center;
}
.hero-stat b { display: block; color: #fff; font-size: 1.35rem; }
.hero-stat span { font-size: .72rem; color: #9fb2c5; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; align-items: center; padding: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--slate); font-weight: 600; font-size: .95rem; }
.trust-item svg { color: var(--teal-dark); flex: none; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #cfe6e2; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e6faf7, #d3f2ed); color: var(--teal-dark);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 16px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--slate); }
.card ul li { margin-bottom: 6px; }
.card-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Robot showcase cards ---------- */
.robot-grid { grid-template-columns: repeat(3, 1fr); }
.robot-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; display: flex; flex-direction: column;
}
.robot-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.robot-photo {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  background: linear-gradient(160deg, #eef5f8, #dbeaf0);
  color: var(--navy);
}
.robot-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.robot-photo .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em;
}
.robot-photo .ph-note {
  position: absolute; bottom: 10px; right: 12px; font-size: .68rem; color: #6b88a0;
}
.robot-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.robot-body h3 { margin-bottom: 4px; }
.robot-body .role { color: var(--teal-dark); font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.robot-body p { color: var(--slate); font-size: .95rem; }
.spec-list { list-style: none; margin: 6px 0 18px; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.robot-body .btn { margin-top: auto; }

/* ---------- Robot slideshow ---------- */
.slideshow { position: relative; max-width: 920px; margin: 0 auto 44px; border-radius: 18px; overflow: hidden; background: #0e2c4b; border: 1px solid #1c3e63; box-shadow: var(--shadow-lg); }
.slides { position: relative; }
.slide { display: none; }
.slide.is-active { display: block; animation: slideFade .5s ease; }
@keyframes slideFade { from { opacity: .25; } to { opacity: 1; } }
.slide-media { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(160deg, #eef5f8, #d7e7ee); }
.slide-media img { max-height: 86%; max-width: 78%; object-fit: contain; }
.slide-cap { padding: 18px 22px 22px; text-align: center; }
.slide-cap .tag { display: inline-block; background: var(--teal); color: #04201c; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.slide-cap h3 { color: #fff; margin: 0 0 4px; }
.slide-cap p { color: #aebfce; margin: 0; font-size: .96rem; }
.slide-arrow { position: absolute; top: 30%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(7,24,42,.55); color: #fff; display: grid; place-items: center; transition: .18s; backdrop-filter: blur(4px); }
.slide-arrow:hover { background: var(--teal); color: #04201c; }
.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }
.slide-dots { display: flex; justify-content: center; gap: 9px; padding: 0 0 18px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #3a5d82; cursor: pointer; transition: .18s; }
.slide-dots button.is-active { background: var(--teal); transform: scale(1.25); }
@media (max-width: 760px){ .slide-arrow { width: 38px; height: 38px; } .slide-media img { max-width: 86%; } }

/* ---------- Pill / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: var(--bg-soft-2); color: var(--navy); font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* ---------- Acquisition options (Buy/Lease/RaaS) ---------- */
.options-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.option {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  position: relative;
}
.option.is-featured { border-color: var(--teal); box-shadow: var(--shadow); }
.option .badge-top {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #04201c; font-size: .74rem; font-weight: 800;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .03em;
}
.option h3 { font-size: 1.35rem; margin-bottom: 4px; }
.option .price { font-size: 1.05rem; color: var(--teal-dark); font-weight: 800; margin-bottom: 4px; }
.option .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.option ul { list-style: none; margin: 0 0 22px; padding: 0; }
.option ul li { position: relative; padding: 8px 0 8px 28px; color: var(--slate); font-size: .95rem; border-bottom: 1px solid var(--bg-soft); }
.option ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.option .btn { margin-top: auto; justify-content: center; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
table.compare tbody th { color: var(--navy); font-weight: 700; }
table.compare tbody tr:nth-child(even) td, table.compare tbody tr:nth-child(even) th { background: var(--bg-soft); }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center;
}
.section--navy .step .num { background: var(--teal); color: #04201c; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--slate); font-size: .92rem; }
.section--navy .step p { color: #aebfce; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: #04201c; border-radius: 22px; padding: 48px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #04201c; }
.cta-band p { color: #06302b; max-width: 620px; margin: 0 auto 26px; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info li { list-style: none; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info ul { padding: 0; margin: 0; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: #e6faf7; color: var(--teal-dark); display: grid; place-items: center; flex: none; }
.contact-info b { display: block; color: var(--navy); }
.contact-info span { color: var(--slate); }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.footer { background: #061a2e; color: #9fb2c5; padding: 64px 0 30px; }
.footer a { color: #c2d2e2; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: .94rem; }
.footer .brand-text b { color: #fff; }
.footer .brand-text span { color: #7d93a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: radial-gradient(900px 500px at 75% -20%, #16406b, var(--navy) 60%, #061a2e); color: #e7eef6; padding: 64px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c9da; max-width: 640px; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: #8fa6bd; margin-bottom: 14px; }
.breadcrumb a { color: #b9c9da; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.note { font-size: .82rem; color: var(--muted); }
.section--navy .note { color: #8fa6bd; }

/* ---------- Robot icon illustration ---------- */
.robot-illu { width: 64%; max-width: 200px; opacity: .92; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .grid-3, .robot-grid, .options-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 14px; position: absolute;
    top: 72px; left: 0; right: 0; background: #fff; padding: 20px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4, .robot-grid, .options-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { position: static; margin-top: 16px; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
