/* Carolina Metals — palette after 2advanced.com: near-black, cyan, ice blue */
:root {
  --bg: #05090c;
  --bg-2: #0a1418;
  --panel: rgba(10, 20, 24, 0.72);
  --line: rgba(0, 200, 235, 0.22);
  --line-strong: rgba(0, 200, 235, 0.55);
  --cyan: #00c8e6;
  --cyan-soft: rgba(0, 205, 240, 0.72);
  --ice: #bee4f2;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.55);
  --radius: 4px;
  --max: 1140px;
  --head: "Exo 2", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(0, 160, 200, 0.18), transparent 60%),
    url("../images/hex-pattern.svg");
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.65 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ice); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- top strip + header ---------- */
.topstrip {
  border-bottom: 1px solid var(--line);
  font: 600 11px/1 var(--head);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.topstrip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.topstrip a { color: var(--muted); }
.topstrip a:hover { color: var(--cyan); }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 9, 12, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 56px; width: auto; }

nav.main ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a {
  display: block; padding: 10px 12px;
  font: 600 12px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ice); border: 1px solid transparent; border-radius: var(--radius);
}
nav.main a:hover { color: var(--cyan); border-color: var(--line); }
nav.main a[aria-current="page"] { color: var(--cyan); border-color: var(--line-strong); box-shadow: inset 0 0 18px rgba(0, 200, 230, 0.12); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--cyan); border-radius: var(--radius); padding: 8px 12px; font: 600 12px var(--head); letter-spacing: 0.2em; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/building-hero.jpg") center 35% / cover no-repeat;
  opacity: 0.32; filter: saturate(0.6) contrast(1.1);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.35), var(--bg) 92%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 100px; text-align: center; }
.hero .mark { width: 120px; margin: 0 auto 28px; filter: drop-shadow(0 0 24px rgba(0, 200, 230, 0.45)); }
.eyebrow { font: 600 12px/1.4 var(--head); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan-soft); margin: 0 0 14px; }
.hero h1 { font: 700 clamp(30px, 5vw, 54px)/1.1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.hero p.lead { max-width: 680px; margin: 0 auto 34px; color: var(--ice); font-size: 18px; }

.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 64px; padding-bottom: 44px; }
.page-head h1 { font: 700 clamp(28px, 4vw, 42px)/1.1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; margin: 6px;
  font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 160, 200, 0.08);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn::after { content: "\203A"; font-size: 18px; line-height: 0; }
.btn:hover { color: #fff; background: rgba(0, 200, 230, 0.16); box-shadow: 0 0 22px rgba(0, 200, 230, 0.25); }
.btn.solid { background: var(--cyan); color: #04121a; border-color: var(--cyan); }
.btn.solid:hover { background: var(--ice); border-color: var(--ice); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 700 26px/1.2 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
h3 { font: 600 15px/1.3 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
p { margin: 0 0 16px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.photo { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px; background: var(--panel); box-shadow: 0 0 40px rgba(0, 200, 230, 0.08); }
.photo img { width: 100%; border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 26px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 0 26px rgba(0, 200, 230, 0.1); }
.card .hex { width: 34px; height: 34px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(0, 200, 235, 0.1); }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px;
  background: var(--cyan); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.mission {
  text-align: center; max-width: 820px; margin: 0 auto;
  font: 500 clamp(20px, 2.6vw, 26px)/1.5 var(--head); color: var(--ice);
}
.mission strong { color: var(--cyan); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat b { display: block; font: 700 34px/1.1 var(--head); color: var(--cyan); }
.stat span { font: 600 11px/1.4 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.cta { text-align: center; background: linear-gradient(180deg, rgba(0, 160, 200, 0.08), transparent); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-grid .card .role { font: 600 11px/1.4 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-grid .card .name { font: 600 19px/1.3 var(--head); color: #fff; margin-bottom: 10px; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.info dt { font: 600 11px/2 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
dl.info dd { margin: 0; }

/* ---------- form ---------- */
form.quote fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 24px; background: var(--panel); }
form.quote legend { padding: 0 10px; font: 600 13px var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
label { display: block; font: 600 11px/1.4 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px;
  background: rgba(0, 0, 0, 0.45); color: #fff;
  border: 1px solid rgba(0, 200, 235, 0.25); border-radius: var(--radius);
  font: 15px var(--body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 200, 230, 0.18); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--text); }
.check input { accent-color: var(--cyan); margin-top: 4px; }
.note { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.6); padding: 48px 0 28px; font-size: 14px; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer.site h4 { font: 600 11px/1.4 var(--head); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice); margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--cyan); }
footer.site .legal { border-top: 1px solid var(--line); padding-top: 20px; font: 600 11px/1.6 var(--head); letter-spacing: 0.2em; text-transform: uppercase; }
footer.site .foot-logo { height: 40px; width: auto; margin-bottom: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(5, 9, 12, 0.97); border-bottom: 1px solid var(--line); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 8px 16px 16px; }
}
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  footer.site .cols { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  section { padding: 52px 0; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
}

/* ---------- logo lockup (recreated from the original Carolina Metals logo) ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 50px; height: 50px; filter: drop-shadow(0 0 10px rgba(0, 200, 230, 0.35)); }
.brand .word {
  font: 800 22px/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ec 45%, #9fb0ba 55%, #e9f0f3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .word small { font-size: 0.78em; }
footer.site .brand { margin-bottom: 14px; }
footer.site .brand .mark { width: 40px; height: 40px; }
footer.site .brand .word { font-size: 18px; }
@media (max-width: 860px) {
  .brand .mark { width: 40px; height: 40px; }
  .brand .word { font-size: 18px; }
}
