/* Sunstone Data Systems — site styles */
:root {
  --navy-900: #061430;
  --navy-800: #0B2350;
  --navy-700: #12306A;
  --blue-600: #1E6FD9;
  --blue-500: #2F86F0;
  --cyan-400: #3FD0FF;
  --amber-500: #F5A524;
  --amber-600: #F28A1C;
  --ink: #0F1B2D;
  --ink-soft: #46546A;
  --line: #DDE4EE;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 35, 80, .08);
  --max: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-800); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #D5E2F5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(180deg, var(--amber-500), var(--amber-600)); color: #1D1203; box-shadow: 0 6px 18px rgba(242, 138, 28, .3); }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--blue-600); color: var(--blue-600); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-600); }
.nav-links .btn { color: #1D1203; padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 22px; gap: 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .brand img { height: 40px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #D5E2F5;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47,134,240,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(245,165,36,.16), transparent 60%),
    var(--navy-900);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("../img/circuit-pattern.svg"); background-size: 420px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, var(--cyan-400), #8CCBFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #B9CBE6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.hero-tags li { font-size: .85rem; padding: 6px 12px; border: 1px solid rgba(140,203,255,.25); border-radius: 999px; color: #B9CBE6; }

.bid-card {
  background: rgba(255,255,255,.97); color: var(--ink); border-radius: 18px; padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); font-size: .88rem; transform: rotate(1.2deg);
}
.bid-card header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy-800); padding-bottom: 12px; margin-bottom: 8px; }
.bid-card header strong { font-family: var(--head); color: var(--navy-800); font-size: 1rem; }
.bid-card .tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); background: #E8F1FD; padding: 4px 8px; border-radius: 6px; }
.bid-card table { width: 100%; border-collapse: collapse; }
.bid-card th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 8px 4px; }
.bid-card td { padding: 9px 4px; border-top: 1px solid var(--line); }
.bid-card td.sheet { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue-600); font-size: .8rem; }
.bid-card td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bid-card footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bid-card footer span { font-size: .75rem; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy-900); color: #B9CBE6; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: url("../img/circuit-pattern.svg"); background-size: 380px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #B9CBE6; }
.page-hero .eyebrow { color: var(--cyan-400); }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scope-list li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.scope-list li span { font-family: var(--head); font-size: .75rem; color: var(--blue-600); background: #E8F1FD; border-radius: 8px; padding: 4px 8px; min-width: 44px; text-align: center; }

/* Cards */
.grid { display: grid; gap: 22px; }
.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: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; text-decoration: none; color: inherit; display: block;
}
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #BFD3EE; }
.card p { color: var(--ink-soft); margin: 0; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); }
.card .icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--blue-600); }

.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(140,203,255,.16); }
.section--dark .card p { color: #A9BCD8; }
.section--dark .card h3 { color: #fff; }
.check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(63,208,255,.12); margin-bottom: 14px; }
.check svg { width: 18px; height: 18px; stroke: var(--cyan-400); fill: none; stroke-width: 2.5; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--head); font-weight: 800; font-size: 2.2rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-600); display: block; margin-bottom: 8px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Markets */
.market { border-radius: var(--radius); padding: 28px; background: linear-gradient(160deg, #fff, var(--bg-soft)); border: 1px solid var(--line); }
.market p { color: var(--ink-soft); margin: 0; }
.market .label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 8px; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: #fff; border-radius: 22px;
  padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: url("../img/sunstone-mark.svg") center/contain no-repeat; opacity: .12; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #D5E2F5; margin: 0; max-width: 560px; }
.cta-band .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* Service detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service aside .icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); margin-bottom: 18px; }
.service aside .icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h2 { font-size: 1.7rem; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.service-cols h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.service-cols ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.service-cols ul li { margin-bottom: 6px; }
.service-cols .excl h4 { color: var(--ink-soft); }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.subnav a { color: #D5E2F5; text-decoration: none; font-size: .88rem; border: 1px solid rgba(140,203,255,.3); border-radius: 999px; padding: 7px 14px; }
.subnav a:hover { background: rgba(255,255,255,.08); }

/* Bid anatomy */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.anatomy ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.anatomy ol li { padding: 18px 20px; border-left: 3px solid var(--blue-600); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.anatomy ol li strong { display: block; font-family: var(--head); color: var(--navy-800); }
.anatomy ol li span { color: var(--ink-soft); font-size: .95rem; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fact h3 { font-size: 1rem; margin-bottom: 6px; }
.fact p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: start; }
form.bid-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.req { color: var(--amber-600); }
input, select, textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid #C8D3E3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,134,240,.25); border-color: var(--blue-500); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin-top: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.checks input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #E7F7EE; color: #145C33; }
.form-status.err { display: block; background: #FDECEC; color: #8A1C1C; }
.side-card { background: var(--navy-900); color: #B9CBE6; border-radius: 18px; padding: 30px; position: sticky; top: 100px; }
.side-card h3 { color: #fff; }
.side-card ul { padding-left: 18px; margin: 0 0 18px; }
.side-card a { color: var(--cyan-400); }

/* Footer */
.site-footer { background: var(--navy-900); color: #8EA3C2; padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 48px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #B9CBE6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(140,203,255,.14); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .bid-card { transform: none; max-width: 560px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .anatomy, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .facts, .service-cols, .form-grid, .checks { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  form.bid-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .bid-card { padding: 18px; font-size: .8rem; }
  .bid-card .hide-sm { display: none; }
}

/* Photography */
.hero--photo {
  background:
    linear-gradient(90deg, rgba(6,20,48,.96) 0%, rgba(6,20,48,.86) 45%, rgba(6,20,48,.55) 100%),
    url("../img/photos/hero-construction.jpg") center/cover no-repeat,
    var(--navy-900);
}
.hero--photo::before { opacity: .25; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card-img { width: 100%; height: 190px; object-fit: cover; transition: transform .4s ease; }
a.card--photo:hover .card-img { transform: scale(1.04); }
.card--photo .card-body { padding: 0 28px 28px; position: relative; }
.card--photo .icon { margin-top: -25px; position: relative; box-shadow: 0 6px 16px rgba(11,35,80,.25); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); }
.gallery .g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; min-height: 260px; max-height: 360px; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(6,20,48,.88));
}
.service-photos { display: grid; gap: 14px; margin-bottom: 22px; }
.service-photos.n2 { grid-template-columns: 1fr 1fr; }
.service-photos img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.service-photos.n2 img { height: 240px; }
@media (max-width: 1000px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: auto; }
  .gallery img { min-height: 220px; }
  .service-photos.n2 { grid-template-columns: 1fr; }
  .service-photos img, .service-photos.n2 img { height: 220px; }
}

/* Parent company line under the header logo */
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; gap: 2px; }
.brand-parent { font-family: var(--head); font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--blue-600); padding-left: 59px; line-height: 1; }
@media (max-width: 920px) { .brand-parent { font-size: .6rem; padding-left: 47px; } }
