/* Conrady Consulting & Technology LLC: site styles */
:root {
  --charcoal: #1e2225;
  --charcoal-2: #2a2f33;
  --slate: #4a5157;
  --concrete: #e9e6e1;
  --concrete-2: #d8d3cc;
  --concrete-3: #b9b2a9;
  --paper: #f7f5f2;
  --white: #ffffff;
  --orange: #e8691e;
  --orange-dark: #a3440d;
  --orange-deeper: #87380a;
  --text: #24292d;
  --muted: #5b6268;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,22,24,.06), 0 8px 24px rgba(20,22,24,.08);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--orange-dark); }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange-dark); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--orange); display: inline-block; }
.eyebrow-light { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-primary { background: var(--orange-dark); color: #fff; }
.btn-primary:hover { background: var(--orange-deeper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-small { padding: .55rem 1rem; font-size: .92rem; background: var(--orange-dark); color: #fff !important; }
.btn-small:hover { background: var(--orange-deeper); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,242,.94); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--concrete-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--charcoal); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); text-decoration: none; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--orange-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2.5px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--concrete) 100%); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-pattern {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--concrete-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--concrete-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.16rem; color: var(--slate); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; max-width: 36rem; border-top: 1px solid var(--concrete-3); padding-top: 1.4rem; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--charcoal); line-height: 1; margin-bottom: .35rem; }
.hero-facts span { font-size: .88rem; color: var(--muted); line-height: 1.35; }

.hero-art { position: relative; }
.block-wall { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(30,34,37,.18)); }
.cmu { fill: #c9c3ba; stroke: #a9a299; stroke-width: 1.5; }
.cmu.dark { fill: #5a6167; stroke: #474d52; }
.cmu.accent { fill: var(--orange); stroke: var(--orange-dark); }
.float-block { animation: settle 3.6s ease-in-out infinite alternate; }
@keyframes settle { from { transform: translate(140px,-14px); } to { transform: translate(140px,-2px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-intro { color: var(--slate); font-size: 1.08rem; }
.section-concrete { background: var(--concrete); }
.section-dark { background: var(--charcoal); color: #d7d3cd; position: relative; overflow: hidden; }
.section-dark::after {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 45%; pointer-events: none; opacity: .07;
  background-image:
    linear-gradient(#fff 2px, transparent 2px),
    linear-gradient(90deg, #fff 2px, transparent 2px);
  background-size: 120px 60px, 120px 60px;
}
.section-dark h2, .section-dark h3 { color: #fff; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--concrete-2); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow); position: relative; transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 48px; background: var(--orange); border-radius: var(--radius) 0 4px 0; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,22,24,.06), 0 14px 32px rgba(20,22,24,.12); }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--concrete); color: var(--charcoal); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; }

/* Sourcing */
.sourcing-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.sourcing-copy p { color: #cfcac3; }
.sourcing-copy .fine { font-size: .92rem; color: #a39d95; border-left: 3px solid var(--orange); padding-left: .9rem; margin: 1.4rem 0 1.8rem; }
.sourcing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sourcing-list li { background: var(--charcoal-2); border: 1px solid #3a4045; border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.sourcing-list h3 { margin-bottom: .35rem; }
.sourcing-list p { margin: 0; color: #bdb7af; font-size: .97rem; }

/* About */
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
.about-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; text-align: center; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.portrait {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; margin-bottom: 1rem;
  background:
    linear-gradient(0deg, var(--orange) 0 10px, transparent 10px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.08) 46px 48px),
    var(--charcoal);
}
.portrait span { font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; color: var(--concrete); letter-spacing: -.02em; }
.about-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--charcoal); margin: 0; }
.about-role { color: var(--muted); margin: 0; font-size: .95rem; }
.about-copy { max-width: 44rem; }
.about-copy p { color: var(--slate); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; margin-bottom: 3.5rem; }
.why-item { border-top: 3px solid var(--charcoal); padding-top: 1.2rem; }
.why-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--orange-dark); margin-bottom: .6rem; }
.why-num-text { font-size: 1.9rem; line-height: 1.58; }
.why-item p { color: var(--muted); font-size: .97rem; margin: 0; }

.career { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; border-top: 1px solid var(--concrete-2); padding-top: 3rem; }
.career-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.career-intro h3 { font-size: 1.5rem; }
.career-intro p { color: var(--slate); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.4rem; display: grid; gap: 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--concrete-3); }
.timeline li { position: relative; }
.tl-dot { position: absolute; top: 3px; left: -2.4rem; width: 20px; height: 20px; border-radius: 4px; background: var(--charcoal); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--charcoal); }
.tl-dot-accent { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.tl-tag { display: inline-block; font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.tl-tag-accent { color: var(--orange-dark); }
.timeline h4 { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; color: var(--charcoal); margin: 0 0 .25rem; line-height: 1.25; }
.timeline p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-copy p { color: var(--slate); }
.contact-details { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-details li { display: flex; flex-direction: column; border-left: 3px solid var(--orange); padding-left: 1rem; }
.cd-label { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 4px solid var(--orange); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--charcoal); margin-bottom: .35rem; }
.optional { color: var(--muted); font-weight: 500; font-size: .85rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper);
  border: 1.5px solid var(--concrete-2); border-radius: 6px; padding: .75rem .85rem; width: 100%;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; background: #fdf3f2; }
.form-note { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-note.error { color: #b03a2e; }

/* Footer */
.site-footer { background: var(--charcoal); color: #bdb7af; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid #3a4045; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-name { font-family: var(--font-head); font-weight: 700; color: #fff; margin: 0; font-size: 1.1rem; }
.footer-tag { margin: 0; font-size: .92rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: #d7d3cd; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--orange); }
.footer-bottom { padding-top: 1.3rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll (enabled only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2rem; }
  .about-inner { grid-template-columns: 240px 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--concrete-2);
    box-shadow: 0 12px 24px rgba(20,22,24,.1);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--concrete-2); }
  .site-nav .btn { margin-top: 1rem; width: 100%; padding: .8rem 1rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .sourcing-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-card { position: static; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 1rem; text-align: left; align-items: center; padding: 1rem; max-width: 420px; }
  .about-card .portrait { grid-row: 1 / 3; margin: 0; }
  .portrait span { font-size: 2rem; }
  .about-name { align-self: end; }
  .about-role { align-self: start; }
  .career { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .career-intro { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: min(1160px, 100% - 2.25rem); }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .64rem; letter-spacing: .1em; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: .75rem; }
  .hero-facts strong { font-size: 1.5rem; }
  .hero-facts span { font-size: .8rem; }
  .card-grid, .why-grid { grid-template-columns: 1fr; }
  .why-grid { row-gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Phone links */
.contact-link { font-weight: 600; color: var(--charcoal); text-decoration: none; font-size: 1.05rem; width: fit-content; }
.contact-link:hover { color: var(--orange-dark); text-decoration: underline; }
.footer-nav a.footer-phone { color: #fff; font-weight: 600; }
.footer-nav a.footer-phone:hover { color: var(--orange); }

@media (max-width: 560px) {
  .hero .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .hero-art { max-width: 320px; }
}
.contact-text { font-weight: 600; color: var(--charcoal); font-size: 1.05rem; }

/* Plant tools & technology */
.tool-visual { height: 92px; border-radius: 8px; background: var(--concrete); color: var(--slate); display: grid; place-items: center; margin-bottom: 1.1rem; padding: 14px 18px; }
.tool-visual svg { width: 100%; height: 100%; }
.tool-visual .tv-accent { fill: var(--orange); }
.tools-note { margin-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--concrete-2); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.tools-note p { margin: 0; color: var(--slate); max-width: 46rem; }
.tools-note strong { color: var(--charcoal); }
@media (max-width: 1000px) { .tools-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tools-note .btn { width: 100%; } }
@media (max-width: 1000px) and (min-width: 861px) { .site-nav ul { gap: 1.1rem; } }
