/* Aris Construction, Inc. — site styles */
:root {
  --ink: #16202b;        /* drawing-set dark slate */
  --steel: #4d5b69;      /* conduit grey */
  --line: #cfd6dc;       /* hairline */
  --paper: #f3f5f6;      /* cool sheet white */
  --white: #ffffff;
  --signal: #f2b705;     /* safety yellow */
  --signal-dark: #b98b00;
  --live: #2f7d4f;       /* ongoing status */

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

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

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 4px solid var(--signal);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
  background: var(--signal); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 1.6rem;
}
.brand-name { font-family: var(--head); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 400; color: #b9c3cc; margin-top: 3px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: #dfe5ea;
  padding: 8px 12px; font-weight: 600; font-size: .98rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); }
.nav .nav-call {
  background: var(--signal); color: var(--ink);
}
.nav .nav-call:hover { background: #ffd23f; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 64px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: end;
}
.hero p.lead { font-size: 1.2rem; color: #cfd8df; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border: 2px solid var(--signal);
  background: var(--signal); color: var(--ink); font-size: 1rem;
}
.btn:hover { background: #ffd23f; border-color: #ffd23f; }
.btn.ghost { background: transparent; color: var(--white); border-color: #6e7c89; }
.btn.ghost:hover { border-color: var(--white); background: transparent; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--steel); border-color: var(--steel); }

/* Title block: modeled on a drawing sheet title block */
.title-block {
  border: 2px solid #8795a2;
  font-size: .95rem;
  background: #1c2835;
}
.title-block .tb-row {
  display: grid; grid-template-columns: 120px 1fr;
  border-bottom: 1px solid #56636f;
}
.title-block .tb-row:last-child { border-bottom: 0; }
.title-block .tb-k {
  padding: 10px 12px; color: #9fadba; font-size: .82rem;
  border-right: 1px solid #56636f;
}
.title-block .tb-v { padding: 10px 14px; font-weight: 600; }
.title-block .tb-v a { text-decoration: none; }
.title-block .tb-v a:hover { color: var(--signal); }
.title-block .tb-head {
  background: var(--signal); color: var(--ink);
  font-family: var(--head); font-weight: 700; font-size: 1.35rem;
  padding: 8px 14px; border-bottom: 2px solid #8795a2;
}

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--steel); }

/* Services: a schedule-style list, not cards */
.schedule { border-top: 2px solid var(--ink); }
.schedule-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.schedule-row h3 { margin: 0; }
.schedule-row p { margin: 0; color: #33404c; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--white); }
.sector { padding: 28px 26px; border-right: 1px solid var(--line); }
.sector:last-child { border-right: 0; }
.sector h3 { font-size: 1.7rem; }
.sector p { margin: 0; color: #33404c; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.facts { border: 2px solid var(--ink); background: var(--white); }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { padding: 12px 14px; color: var(--steel); font-size: .92rem; border-right: 1px solid var(--line); }
.facts dd { margin: 0; padding: 12px 14px; font-weight: 600; }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 8px 16px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink);
}
.filters button[aria-pressed="true"], .filters button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabs { margin-bottom: 28px; }

.project-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project {
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.project-photo { aspect-ratio: 4 / 3; background: #dde3e7; overflow: hidden; position: relative; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-photo.empty {
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box;
  display: flex; align-items: flex-end; padding: 18px;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: var(--ink);
  color: #9fadba; font-family: var(--head); font-size: 1.1rem;
}
.project-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.status {
  align-self: flex-start; font-size: .82rem; font-weight: 700;
  padding: 3px 10px; margin-bottom: 12px;
}
.status.ongoing { background: #e3f1e8; color: var(--live); }
.status.completed { background: var(--ink); color: var(--white); }
.project h3 { font-size: 1.55rem; margin-bottom: .3em; }
.project .where { color: var(--steel); font-size: .95rem; margin-bottom: .8em; }
.project .desc { font-size: 1rem; margin-bottom: 1em; }
.project dl { margin: auto 0 0; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 12px; }
.project dl div { display: flex; gap: 8px; }
.project dt { color: var(--steel); min-width: 72px; }
.project dd { margin: 0; font-weight: 600; }

.empty-note { grid-column: 1 / -1; padding: 40px; border: 2px dashed var(--line); text-align: center; color: var(--steel); }

/* ---------- Contact ---------- */
.contact { background: var(--signal); color: var(--ink); padding: 72px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.contact-lines { font-size: 1.2rem; }
.contact-lines a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); }
.contact-lines p { margin: 0 0 .7em; }
.contact-lines span { display: block; font-size: .9rem; color: #5a4600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab6c1; padding: 28px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Page header for inner pages */
.page-head { background: var(--ink); color: var(--white); padding: 56px 0 48px; }
.page-head p { color: #cfd8df; font-size: 1.15rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .about-grid, .contact .wrap { grid-template-columns: 1fr; gap: 36px; }
  .project-list { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: 1fr; }
  .sector { border-right: 0; border-bottom: 1px solid var(--line); }
  .sector:last-child { border-bottom: 0; }
  .schedule-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .project-list { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  .title-block .tb-row, .facts div { grid-template-columns: 100px 1fr; }
  .nav a { padding: 6px 8px; }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 400; color: var(--steel); font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 12px; border: 1px solid #9aa6b1; background: var(--white);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.contact-form .btn { cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 16px 18px; margin-bottom: 20px; border-left: 5px solid; }
.form-note.ok { background: #e3f1e8; border-color: var(--live); }
.form-note.err { background: #fbeaea; border-color: #b3261e; }
.contact-card dd a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.facts dd { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
}
.nav .nav-call[aria-current="page"] { color: var(--ink); }

/* ---------- Logo ---------- */
.brand-logo { height: 44px; width: auto; flex: none; }
.brand { gap: 14px; }
.site-footer .wrap { align-items: center; }
.footer-logo { width: 130px; height: auto; opacity: .9; }
@media (max-width: 600px) { .brand-logo { height: 36px; } }

.tab-note {
  margin: -8px 0 28px; padding: 16px 20px 16px 22px;
  background: var(--signal); color: var(--ink);
  font-size: 1.15rem; font-weight: 700; line-height: 1.4;
  max-width: none;
}
